commit 88b79d8ff4c22496a35ef836d9d2b77f65a89e94 Author: John Bintz Date: Sat Jun 13 07:58:02 2009 -0400 initial commit of 2.7.1 diff --git a/1.gif b/1.gif new file mode 100644 index 0000000..737e841 Binary files /dev/null and b/1.gif differ diff --git a/2.gif b/2.gif new file mode 100644 index 0000000..3234ca1 Binary files /dev/null and b/2.gif differ diff --git a/2a.gif b/2a.gif new file mode 100644 index 0000000..5c059b8 Binary files /dev/null and b/2a.gif differ diff --git a/3.gif b/3.gif new file mode 100644 index 0000000..d0dbea1 Binary files /dev/null and b/3.gif differ diff --git a/3a.gif b/3a.gif new file mode 100644 index 0000000..647c3c7 Binary files /dev/null and b/3a.gif differ diff --git a/4.gif b/4.gif new file mode 100644 index 0000000..43bc18f Binary files /dev/null and b/4.gif differ diff --git a/404.php b/404.php new file mode 100644 index 0000000..23ed79e --- /dev/null +++ b/404.php @@ -0,0 +1,16 @@ + + +
+
+
+

Page Not Found

+

Click here to return to the home page or try a search:

+

+
+
+
+
+ + + + \ No newline at end of file diff --git a/README b/README new file mode 100644 index 0000000..663c1ed --- /dev/null +++ b/README @@ -0,0 +1,17 @@ +ComicPress is the WordPress Comic Pubishing Theme + +Copyright 2005-2009 Tyler Martin +Copyright 2008-2009 John Bintz + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . diff --git a/archive-comic-calendar.php b/archive-comic-calendar.php new file mode 100644 index 0000000..5e50ad4 --- /dev/null +++ b/archive-comic-calendar.php @@ -0,0 +1,171 @@ + + + + + + +query('&showposts=1000&cat='.get_all_comic_categories_as_cat_string().'&year='.$archive_year); +while ($comicArchive->have_posts()) : $comicArchive->the_post(); + $calTitle = get_the_title(); + $calLink = get_permalink(); + $calDay = get_the_time('j'); + $calMonth = get_the_time('F'); + $calComic[$calMonth.$calDay] = array('link' => $calLink, 'title' => $calTitle); +endwhile; +$post = $tempPost; + +function leapYear($yr) { + if ($yr % 4 != 0) { + return 28; + } else { + if ($yr % 100 != 0) { + return 29; + } else { + if ($yr % 400 != 0) { + return 28; + } else { + return 29; + } + } + } +} +$leapYear = leapYear($archive_year); + +$month['1'] = array('month' => 'January', 'days' => '31'); +$month['2'] = array('month' => 'February', 'days' => $leapYear); +$month['3'] = array('month' => 'March', 'days' => '31'); +$month['4'] = array('month' => 'April', 'days' => '30'); +$month['5'] = array('month' => 'May', 'days' => '31'); +$month['6'] = array('month' => 'June', 'days' => '30'); +$month['7'] = array('month' => 'July', 'days' => '31'); +$month['8'] = array('month' => 'August', 'days' => '31'); +$month['9'] = array('month' => 'September', 'days' => '30'); +$month['10'] = array('month' => 'October', 'days' => '31'); +$month['11'] = array('month' => 'November', 'days' => '30'); +$month['12'] = array('month' => 'December', 'days' => '31'); + +?> + +
+ +
+
+ +

+ +
+ +
+ +
| + get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC"); + foreach ( $years as $year ) { + if ($year != (0) ) { ?> + | + +
+ + +
+
+ +
+ +
+ +
+ +
+ + + +
+ +
+ + +
+ +
+
+ +
+ + + + \ No newline at end of file diff --git a/archive-comic-storyline-thumbs.php b/archive-comic-storyline-thumbs.php new file mode 100644 index 0000000..e24afbd --- /dev/null +++ b/archive-comic-storyline-thumbs.php @@ -0,0 +1,131 @@ + + + + + + + +
+ +
+
+

+
+ +
+
    + description; + $first_comic_in_category = get_terminal_post_in_category($category_id); + $first_comic_permalink = get_permalink($first_comic_in_category->ID); + $archive_image = null; + foreach (array("archive", "rss", "comic") as $type) { + if (($requested_archive_image = get_comic_url("archive", $first_comic_in_category)) !== false) { + $archive_image = $requested_archive_image; break; + } + } + if ($target_depth < $current_depth) { + echo str_repeat("
", ($current_depth - $target_depth)); + } + if ($target_depth > $current_depth) { + for ($i = $current_depth; $i < $target_depth; ++$i) { + $next_i = $i + 1; + echo "
    • "; + } + } ?> + +
    • > + + + + cat_name ?> + +
      + +
      +
    • + + 0) { + echo str_repeat("
  • ", $current_depth); + } + } + } else { ?> +
  • Storyline Support is not currently enabled on this site.



    Note to the Administrator:
    To enable storyline support and manage storyline categories make sure you are running the latest version of the ComicPress Manager plugin and check your storyline settings from it's administration menu.
  • + + +
    +
    +
    + +
    + + + + \ No newline at end of file diff --git a/archive-comic-storyline.php b/archive-comic-storyline.php new file mode 100644 index 0000000..9dc383f --- /dev/null +++ b/archive-comic-storyline.php @@ -0,0 +1,133 @@ + + + + + + + +
    + +
    +
    +

    +
    + +
    +
      + description; + $first_comic_in_category = get_terminal_post_in_category($category_id); + $first_comic_permalink = get_permalink($first_comic_in_category->ID); + $archive_image = null; + foreach (array("archive", "rss", "comic") as $type) { + if (($requested_archive_image = get_comic_url("archive", $first_comic_in_category)) !== false) { + $archive_image = $requested_archive_image; break; + } + } + if ($target_depth < $current_depth) { + echo str_repeat("
    ", ($current_depth - $target_depth)); + } + if ($target_depth > $current_depth) { + for ($i = $current_depth; $i < $target_depth; ++$i) { + $next_i = $i + 1; + echo "
  • ", $current_depth); + } + } + } else { ?> +
  • Storyline Support is not currently enabled on this site.



    Note to the Administrator:
    To enable storyline support and manage storyline categories make sure you are running the latest version of the ComicPress Manager plugin and check your storyline settings from it's administration menu.
  • + + +
    +
    +
    + +
    + + + + \ No newline at end of file diff --git a/archive-comic-year.php b/archive-comic-year.php new file mode 100644 index 0000000..ef36d82 --- /dev/null +++ b/archive-comic-year.php @@ -0,0 +1,63 @@ + + + + + + + + +
    + +
    +
    + +

    + +
    + +
    + +
    | + get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC"); + foreach ( $years as $year ) { + if ($year != (0) ) { ?> + | + +
    + + + query('showposts=10000&cat='.get_all_comic_categories_as_cat_string().'&year='.$archive_year); + while ($comicArchive->have_posts()) : $comicArchive->the_post() ?> + + +
    + +
    + +
    +
    + +
    + + + + \ No newline at end of file diff --git a/archive-comic.php b/archive-comic.php new file mode 100644 index 0000000..2b65947 --- /dev/null +++ b/archive-comic.php @@ -0,0 +1,57 @@ + + + + + + +
    + +
    +
    +

    +
    + +
    + + + get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date DESC"); + foreach ( $years as $year ) { + if ($year != (0) ) { ?> +

    + + query('showposts=10000&cat='.get_all_comic_categories_as_cat_string().'&year='.$year); + while ($comicArchive->have_posts()) : $comicArchive->the_post() ?> + + +
    + + +
    + +
    +
    + +
    + + + + \ No newline at end of file diff --git a/archive.php b/archive.php new file mode 100644 index 0000000..2a6147c --- /dev/null +++ b/archive.php @@ -0,0 +1,90 @@ + + +
    + + + +
    +
    + + + +

    Archive for ‘

    + +

    Posts Tagged ‘

    + +

    Archive for

    + +

    Archive for

    + +

    Archive for

    + +

    Author Archive

    + +

    Archives

    + +
    +
    +
    + + + + + +
    +
    +
    + <?php the_title() ?>
    +

    +
    +
    +
    +
    +
    + + + +
    +
    +

    + +
    +
    + +
    + +
    +
    +
    + + + + + + + + + +
    +
    +

    No entries found.

    +

    Try another search?

    +

    +
    +
    +
    + + + +
    + + + + \ No newline at end of file diff --git a/archives.php b/archives.php new file mode 100644 index 0000000..c76596b --- /dev/null +++ b/archives.php @@ -0,0 +1,23 @@ + + + + +
    +
    +
    +

    Archives by Month:

    +
    +

    Archives by Subject:

    +
    +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/comicpress-config.php b/comicpress-config.php new file mode 100644 index 0000000..cbee123 --- /dev/null +++ b/comicpress-config.php @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..35f217f --- /dev/null +++ b/comments.php @@ -0,0 +1,91 @@ +
    + + +

    This post is password protected. Enter the password to view comments.

    + + +

    + +
      + 64)); ?> +
    + + + + comment_status) : ?> + + + + +

    Comments are closed.

    + + + + + +comment_status) : ?> + +
    + +

    + +
    + +
    + + +

    You must be logged in to post a comment.

    + + +
    + + + +

    Logged in as . Log out »

    + + + + +

    +

    + +

    +

    + +

    +

    + + + + + +

    + +

    + +

    + +
    + +ID); ?> + +
    + + +
    + + + +
    \ No newline at end of file diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..5406591 --- /dev/null +++ b/footer.php @@ -0,0 +1,17 @@ +
    + + + + + + + + + + \ No newline at end of file diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..74363bc --- /dev/null +++ b/functions.php @@ -0,0 +1,635 @@ + +// +// Note that it's quite possible to slurp up the wrong file if your expressions are too broad. + +$comic_filename_filters = array(); +$comic_filename_filters['default'] = "{date}*.*"; + +// load all of the comic & non-comic category information +add_action('init', 'get_all_comic_categories'); + +function get_first_comic() { + return get_terminal_post_in_category(get_all_comic_categories_as_cat_string()); +} + +function get_last_comic() { + return get_terminal_post_in_category(get_all_comic_categories_as_cat_string(), false); +} + +/** +* Get the hyperlink to the first comic post in the database. +* @return string The hyperlink to the first comic post, or false. +*/ +function get_first_comic_permalink() { + $terminal = get_first_comic(); + return !empty($terminal) ? get_permalink($terminal->ID) : false; +} + +/** +* Get the hyperlink to the last comic post in the database. +* @return string The hyperlink to the first comic post, or false. +*/ +function get_last_comic_permalink() { + $terminal = get_last_comic(); + return !empty($terminal) ? get_permalink($terminal->ID) : false; +} + +/** + * Given a category ID or an array of category IDs, create an exclusion string that will + * filter out every category but the provided ones. + */ +function get_string_to_exclude_all_but_provided_categories($category) { + $category_ids = array_keys(get_all_category_objects_by_id()); + if (!is_array($category)) { $category = array($category); } + return implode(",", array_diff($category_ids, $category)); +} + +/** + * Get the link to the previous comic from the current one. + */ +function previous_comic_link($format, $link) { + global $non_comic_categories; + previous_post_link($format, $link, false, $non_comic_categories); +} + +/** + * Get the link to the next comic from the current one. + */ +function next_comic_link($format, $link) { + global $non_comic_categories; + next_post_link($format, $link, false, $non_comic_categories); +} + +/** + * Get the previous comic from the current one. + */ +function get_previous_comic($category = null) { return get_adjacent_comic($category); } + +/** + * Get the next comic from the current one. + */ +function get_next_comic($category = null) { return get_adjacent_comic($category, true); } + +/** + * Get the adjacent comic from the current one. + */ +function get_adjacent_comic($category, $next = false) { + global $non_comic_categories; + + $categories_to_exclude = $non_comic_categories; + if (!is_null($category)) { + $categories_to_exclude = get_string_to_exclude_all_but_provided_categories(); + } + + return get_adjacent_post(false, $categories_to_exclude, $next); +} + +/** + * Find the terminal post in a specific category. + */ +function get_terminal_post_in_category($categoryID, $first = true) { + global $post; + + $temp = $wp_query; $wp_query = null; + $sortOrder = $first ? "asc" : "desc"; + $terminalComicQuery = new WP_Query(); $terminalComicQuery->query("showposts=1&order=${sortOrder}&cat=${categoryID}"); + $terninalPost = false; + if ($terminalComicQuery->have_posts()) { + $terminalPost = reset($terminalComicQuery->posts); + } + + $wp_query = null; $wp_query = $temp; + return $terminalPost; +} + +/** +* Find a comic file in the filesystem. +* @param string $folder The folder name to search. +* @param string $override_post A WP Post object to use in place of global $post. +* @param string $filter The $comic_filename_filters to use. +* @return string The relative path to the comic file, or false if not found. +*/ +function get_comic_path($folder = 'comic', $override_post = null, $filter = 'default') { + global $post, $comic_filename_filters, $comic_folder, $archive_comic_folder, $rss_comic_folder, $comic_pathfinding_errors; + + if (isset($comic_filename_filters[$filter])) { + $filter_to_use = $comic_filename_filters[$filter]; + } else { + $filter_to_use = '{date}*.*'; + } + + switch ($folder) { + case "rss": $folder_to_use = $rss_comic_folder; break; + case "archive": $folder_to_use = $archive_comic_folder; break; + case "comic": default: $folder_to_use = $comic_folder; break; + } + + $post_to_use = (is_object($override_post)) ? $override_post : $post; + $post_date = mysql2date(CP_DATE_FORMAT, $post_to_use->post_date); + + $filter_with_date = str_replace('{date}', $post_date, $filter_to_use); + + if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) { + return reset($results); + } + + $comic_pathfinding_errors[] = sprintf(__("Unable to find the file in the %s folder that matched the pattern %s. Check your WordPress and ComicPress settings.", 'comicpress'), $folder, $filter_with_date); + return false; +} + +/** +* Find a comic file in the filesystem and return an absolute URL to that file. +* @param string $folder The folder name to search. +* @param string $override_post A WP Post object to use in place of global $post. +* @param string $filter The $comic_filename_filters to use. +* @return string The absolute URL to the comic file, or false if not found. +*/ +function get_comic_url($folder = 'comic', $override_post = null, $filter = 'default') { + if (($result = get_comic_path($folder, $override_post, $filter)) !== false) { + return get_option('home') . '/' . $result; + } + + return false; +} + +/** + * Turn the tree of comics categories into a string to be fed into wp_query functions. + */ +function get_all_comic_categories_as_cat_string() { + global $all_comic_categories_as_string, $category_tree; + if (empty($all_comic_categories_as_string)) { + $categories = array(); + foreach ($category_tree as $node) { + $parts = explode("/", $node); + $categories[] = end($parts); + } + $all_comic_categories_as_string = implode(",", $categories); + } + return $all_comic_categories_as_string; +} + +/** + * Turn the list of categories into a hash table of category objects. + */ +function get_all_category_objects_by_id() { + global $categories_by_id; + if (empty($categories_by_id)) { + $categories_by_id = array(); + foreach (get_categories("hide_empty=0") as $category_object) { + $categories_by_id[$category_object->term_id] = $category_object; + } + } + return $categories_by_id; +} + +/** + * Parse all categories and sort them into comics and non-comics categories. + */ +function get_all_comic_categories() { + global $comiccat, $category_tree, $non_comic_categories; + + $categories_by_id = get_all_category_objects_by_id(); + + foreach (array_keys($categories_by_id) as $category_id) { + $category_tree[] = $categories_by_id[$category_id]->parent . '/' . $category_id; + } + + do { + $all_ok = true; + for ($i = 0; $i < count($category_tree); ++$i) { + $current_parts = explode("/", $category_tree[$i]); + if (reset($current_parts) != 0) { + + $all_ok = false; + for ($j = 0; $j < count($category_tree); ++$j) { + $j_parts = explode("/", $category_tree[$j]); + + if (end($j_parts) == reset($current_parts)) { + $category_tree[$i] = implode("/", array_merge($j_parts, array_slice($current_parts, 1))); + break; + } + } + } + } + } while (!$all_ok); + + $non_comic_tree = array(); + + if (get_option('comicpress-enable-storyline-support') == 1) { + $result = get_option("comicpress-storyline-category-order"); + if (!empty($result)) { + $category_tree = explode(",", $result); + } + $non_comic_tree = array_keys($categories_by_id); + foreach ($category_tree as $node) { + $parts = explode("/", $node); + $category_id = end($parts); + if ($parts[1] == $comiccat) { + if (($index = array_search($category_id, $non_comic_tree)) !== false) { + array_splice($non_comic_tree, $index, 1); + } + } + } + } else { + $new_category_tree = array(); + foreach ($category_tree as $node) { + $parts = explode("/", $node); + if ($parts[1] == $comiccat) { + $new_category_tree[] = $node; + } else { + $non_comic_tree[] = end($parts); + } + } + $category_tree = $new_category_tree; + } + + $non_comic_categories = implode(" and ", $non_comic_tree); +} + +/** + * Return true if the current post is in the comics category or a child category. + */ +function in_comic_category() { + global $post, $category_tree; + + $comic_categories = array(); + foreach ($category_tree as $node) { + $comic_categories[] = end(explode("/", $node)); + } + + return (count(array_intersect($comic_categories, wp_get_post_categories($post->ID))) > 0); +} + +// ComicPress Template Functions + +function the_comic($filter = 'default') { echo get_comic_url('comic', null, $filter); } + //The following is deprecated... + function comic_display($filter = 'default') { echo get_comic_url('comic', null, $filter); } + +function the_comic_archive($filter = 'default') { echo get_comic_url('archive', null, $filter); } + //The following is deprecated... + function comic_archive($filter = 'default') { echo get_comic_url('archive', null, $filter); } + +function the_comic_rss($filter = 'default') { echo get_comic_url('rss', null, $filter); } + //The following is deprecated... + function comic_rss($filter = 'default') { echo get_comic_url('rss', null, $filter); } + +/** + * Display the list of Storyline categories. + */ +function comicpress_list_storyline_categories($args = "") { + global $category_tree; + + $defaults = array( + 'style' => 'list', 'title_li' => __('Storyline') + ); + + $r = wp_parse_args($args, $defaults); + + extract($r); + + $categories_by_id = get_all_category_objects_by_id(); + + $output = ''; + if ($style == "list") { $output .= '
  • '; } + if ($title_li && ($style == "list")) { $output .= $title_li; } + if ($style == "list") { $output .= "
      "; } + $current_depth = 0; + foreach ($category_tree as $node) { + $parts = explode("/", $node); + $category_id = end($parts); + $target_depth = count($parts) - 2; + if ($target_depth > $current_depth) { + $output .= str_repeat("
      • ", ($target_depth - $current_depth)); + } + if ($target_depth < $current_depth) { + $output .= str_repeat("
    • ", ($current_depth - $target_depth)); + } + $output .= '
    • '; + $output .= $categories_by_id[$category_id]->cat_name; + $output .= "
    • "; + $current_depth = $target_depth; + } + if ($current_depth > 0) { + $output .= str_repeat("
  • ", $current_depth); + } + if ($style == "list") { $output .= ""; } + echo $output; +} + +/** +* Display text when image (comic) is hovered +* Text is taken from a custom field named "hovertext" +*/ +function the_hovertext() { + $hovertext = get_post_meta( get_the_ID(), "hovertext", true ); + echo (empty($hovertext)) ? get_the_title() : $hovertext; +} + +/** +* Display the comic transcript +* Transcript must be entered into a custom field named "transcript" +* @param string $displaymode, "raw" (straight from the field), "br" (includes html line breaks), "styled" (fully css styled with JavaScript expander) +*/ +function the_transcript($displaymode = 'raw') { + $transcript = get_post_meta( get_the_ID(), "transcript", true ); + switch ($displaymode) { + case "raw": + echo $transcript; + break; + case "br": + echo nl2br($transcript); + break; + case "styled": + if (!empty($transcript)) { ?> + + + +

    <?php the_title() ?>

    query('showposts=1&orderby=rand&cat='.get_all_comic_categories_as_cat_string()); + while ($randomComicQuery->have_posts()) : $randomComicQuery->the_post(); + $random_comic_id = get_the_ID(); + endwhile; + wp_redirect( get_permalink( $random_comic_id ) ); + exit; +} + +if ( isset( $_GET['randomcomic'] ) ) + add_action( 'template_redirect', 'random_comic' ); + + +// Register Sidebar and Define Widgets + +if ( function_exists('register_sidebar') ) + register_sidebar(); + +function widget_comicpress_calendar() { ?> +
  • + +
  • + +
  • + +
  • + +
  • + +
  • + +
  • +

    Latest Comics

    +
      + +
    • + +
    +
  • + +
  • +

    ? Random Comic

    +
  • + +
  • + +
  • + +
    + +
    + postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id "; + } + return $join; +} +add_filter('posts_join', 'szub_search_custom_join'); + +function szub_search_custom_where($where) { + global $wp_query, $wp_version, $wpdb; + if( !empty($wp_query->query_vars['s']) && szub_is_search_key() ) { + $search = $wp_query->query_vars['s']; + $key = $_GET['key']; + $status = ($wp_version >= 2.1) ? 'post_type = \'post\' AND post_status = \'publish\'' : 'post_status = \'publish\''; + $where = " AND $wpdb->postmeta.meta_key = '$key' AND $wpdb->postmeta.meta_value LIKE '%$search%' AND $status "; + } + return $where; +} +add_filter('posts_where', 'szub_search_custom_where'); + +function szub_search_custom_template($template) { + if( is_search() && szub_is_search_key() && file_exists(TEMPLATEPATH . '/search-transcript.php') ) + $template = TEMPLATEPATH . '/search-transcript.php'; + + if( !$template ) + $template = get_query_template('search'); + return $template; +} +add_filter('search_template', 'szub_search_custom_template'); + +function szub_is_search_key($key='') { + if( isset($_GET['key']) ) { + if( !empty($_GET['key']) || (!empty($key) && ($key = $_GET['key'])) ) + return true; + } + return false; +} + +?> \ No newline at end of file diff --git a/header.php b/header.php new file mode 100644 index 0000000..4c99436 --- /dev/null +++ b/header.php @@ -0,0 +1,49 @@ + +> + + + <?php bloginfo('name') ?> <?php if ( is_single() ) { ?> » Archive <?php } wp_title() ?> + + + + + + + + + + + +
    + + + + \ No newline at end of file diff --git a/ie6submenus.js b/ie6submenus.js new file mode 100644 index 0000000..72fd283 --- /dev/null +++ b/ie6submenus.js @@ -0,0 +1,14 @@ +//Suckerfish Dropdown for IE6 + +sfHover = function() { +var sfEls = document.getElementById("menu").getElementsByTagName("LI"); +for (var i=0; i + +
    + + + +
    +
    +

    + post_parent) ?> +

    + + +
    +
    +
    + +
    +
    + ‹ +
    + +
    + +
    +
    + +
    +
    + › +
    + +
    +
    +
    + +
    +
    +
    + + + + + +
    +
    +

    Sorry, no image matched your criteria.

    +
    +
    +
    + + + +
    + + + + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..62beae4 --- /dev/null +++ b/index.php @@ -0,0 +1,90 @@ + + + + + in_the_loop = true; $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string()); + while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?> +
    +
    + <?php the_title() ?> +
    +
    + + +
    + + have_posts()) : $comicFrontpage->the_post() ?> +
    +
    + +
    + +
    +
    + +
    • ', multiple) ?>
    + +

    + +

    +
    + +
    + +
    + +
    + +
    +
    +
    + + +
    + + + +
    + + + + query('showposts='.$blog_postcount.'&cat='.$blogcat.'&paged='.$paged); + while ($wp_query->have_posts()) : $wp_query->the_post() ?> +
    +
    +

    + +

    + +
    + +
    +
    + +
    + +

    +
    +
    + + + + +
    + + + + \ No newline at end of file diff --git a/links.php b/links.php new file mode 100644 index 0000000..2ce6ffb --- /dev/null +++ b/links.php @@ -0,0 +1,25 @@ + + + + +
    + +
    +
    +

    +
      + +
    +
    +
    +
    + +
    + + + + \ No newline at end of file diff --git a/page.php b/page.php new file mode 100644 index 0000000..10789eb --- /dev/null +++ b/page.php @@ -0,0 +1,21 @@ + + +
    + +
    +
    +

    +
    + + '

    Pages: ', 'after' => '

    ', 'next_or_number' => 'number')) ?> +
    + ', '

    ') ?> +
    +
    +
    + +
    + + + + \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..2171d35 Binary files /dev/null and b/screenshot.png differ diff --git a/search-transcript.php b/search-transcript.php new file mode 100644 index 0000000..e21d77b --- /dev/null +++ b/search-transcript.php @@ -0,0 +1,67 @@ + + +
    + +
    +
    +

    Transcript Search for ‘

    +
    +
    + + + + + + + +
    +
    +
    + <?php the_title() ?>
    +

    +
    +
    +
    +
    +
    + + + +
    +
    +

    + + +
    +
    +
    + + + + + + + + + +
    +
    +

    No transcripts found.

    +

    Try another search?

    +

    +
    +
    +
    + + + +
    + + + + \ No newline at end of file diff --git a/search.php b/search.php new file mode 100644 index 0000000..4b5f07e --- /dev/null +++ b/search.php @@ -0,0 +1,67 @@ + + +
    + +
    +
    +

    Search Results for ‘

    +
    +
    + + + + + + + +
    +
    +
    + Click for full size.
    +

    +
    +
    +
    +
    +
    + + + +
    +
    +

    + + +
    +
    +
    + + + + + + + + + +
    +
    +

    No entries found.

    +

    Try another search?

    +

    +
    +
    +
    + + + +
    + + + + \ No newline at end of file diff --git a/searchform-transcript.php b/searchform-transcript.php new file mode 100644 index 0000000..d884da1 --- /dev/null +++ b/searchform-transcript.php @@ -0,0 +1,6 @@ +
    +
    + + +
    +
    \ No newline at end of file diff --git a/searchform.php b/searchform.php new file mode 100644 index 0000000..c1e57c1 --- /dev/null +++ b/searchform.php @@ -0,0 +1,6 @@ +
    +
    + + +
    +
    \ No newline at end of file diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..2781df8 --- /dev/null +++ b/sidebar.php @@ -0,0 +1,41 @@ + \ No newline at end of file diff --git a/single.php b/single.php new file mode 100644 index 0000000..3cdacac --- /dev/null +++ b/single.php @@ -0,0 +1,85 @@ + + + +
    +
    + <?php the_title() ?> +
    +
    + + +
    + + + + +
    +
    +
    + + +
    + +
    • ', 'multiple') ?>
    + +

    +
    + + +
    + +
    + '

    Pages: ', 'after' => '

    ', 'next_or_number' => 'number')) ?> +
    +
    +
    +
    + + + +
    +
    + +
    +

    + +
    + + +
    + +
    + '

    Pages: ', 'after' => '

    ', 'next_or_number' => 'number')) ?> +
    +
    +
    +
    + + + + + + + +
    +
    +

    Sorry, no posts matched your criteria.

    +
    +
    +
    + + + +
    + + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..b8efbe8 --- /dev/null +++ b/style.css @@ -0,0 +1,884 @@ + /* +Theme Name: ComicPress +Theme URI: http://comicpress.org +Description: Publish a comic with WordPress. Standard Edition. Visit the ComicPress Website. +Author: Tyler Martin +Author URI: http://mindfaucet.com/ +Version: 2.7.1 +. +The CSS, XHTML and design is released under GPL v3: +http://www.opensource.org/licenses/gpl-3.0.html +. +*/ + + + +/* STANDARD TAGS */ + +body { + margin: 0; + color: #000; + font-size: 12px; + font-family: 'Arial', sans-serif; + text-shadow: #000 0 0 0; /* Lighten Safari's heavy fonts */ + } + +a { + color: #800; + text-decoration: none; + } + + a:hover { + color: #f00; + } + + a:focus { + outline: none; + } + + a img { + border: none; + } + +p { + margin: 12px 0; + } + +img { + max-width: 100%; + padding: 0; + } + +small { + font-size: 11px; + } + +hr { + height: 1px; + color: #000; + background-color: #000; + border: 0px; + } + +blockquote { + margin: 10px; + padding: 5px 10px 5px 20px; + border-width: 1px 1px 1px 5px; + border-style: solid; + border-color: #000; + } + + blockquote cite { + margin: 5px 0 0; + display: block; + } + +cite { + font-size: 13px; + font-weight: bold; + font-style: normal; + } + +code { + padding: 10px; + display: block; + font-family: 'Courier New', monospace; + border: 1px dotted #000; + overflow: scroll; + } + +acronym, abbr, span.caps { + cursor: help; + } + + acronym, abbr { + border-bottom: 1px dashed #000; + } + +form { + margin: 0; + } + + + +/* HEADINGS */ + +h1, h1 a, h1 a:hover { + padding: 10px 0 0 0; + margin: 0; + color: #000; + font-size: 60px; + font-family: 'Georgia', serif; + font-weight: normal; + line-height: 50px; + text-decoration: none; + letter-spacing: -4px; + font-variant: small-caps; + } + +h2, h2 a, h2 a:hover { + margin: 0; + color: #000; + font-weight: bold; + letter-spacing: -1px; + font-size: 24px; + } + + h2.pagetitle, h2.pagetitle a { + padding: 0 0 5px 0; + margin: 0 0 20px 0; + font-family: 'Georgia', serif; + font-size: 32px; + font-weight: normal; + letter-spacing: -2px; + } + +h3, h3 a, h3 a:hover { + padding: 0; + margin: 0; + font-size: 20px; + font-weight: bold; + text-align: left; + color: #000; + text-decoration: none; + clear: both; + letter-spacing: -1px; + } + + + +/* THE PAGE WRAPPER */ +/* Change this width to set the entire site's width - increase/reduce #column width by the same amount */ + +#page { + width: 760px; + margin: 0px auto; + } + + + +/* THE HEADER */ + +#header { + text-align: center; + } + + .description { + padding: 0 0 10px 0; + font-size: 14px; + font-style: italic; + letter-spacing: 2px; + } + + + +/* THE MENU */ + +#menubar { + background: #000; + zoom: 1; /* IE fix, allows for variable height menu */ + } + +#menunav { + float: right; + } + + #menunav a { + width: 25px; + height: 25px; + display: block; + float: left; + color: #fff; + font-size: 19px; + font-weight: bold; + line-height: 25px; + text-align: center; + border-left: 1px solid #fff; + } + + #menunav a:hover { + background: #800; + } + +#menu { + padding: 0; + margin: 0; + list-style: none; + float: left; + line-height: 25px; + font-size: 12px; + text-transform: uppercase; + } + + #menu a { + padding: 0px 5px; + display: block; + color: #fff; + text-decoration: none; + border-right: 1px solid #fff; + } + + #menu li { + float: left; + } + + #menu li:hover a, #menu li.sfhover a { + color: #fff; /* Main menu highlighted text color */ + } + + #menu li:hover, #menu li.sfhover { + background: #800; /* Main menu highlighted background color */ + } + + /* For submenu dropdowns - this order must be maintained */ + + #menu ul { + padding: 0; + margin: 0; + list-style: none; + position: absolute; + left: -9999px; + width: 151px; + line-height: 1; + border-top: 1px solid #fff; + } + #menu li li { + width: 150px; + margin: 0 0 0 -1px; + border-width: 0 1px 1px 1px; + border-color: #fff; + border-style: solid; + } + #menu li li a { + width: 139px; + padding: 4px 5px; + color: #fff; + border: none; + } + #menu li ul ul { + margin: -21px 0 0 151px; + } + #menu li ul li:hover a, #menu li ul li li:hover a, #menu li ul li li li:hover a, #menu li ul li li li:hover a { + color: #fff; /*Submenu highlighted text color */ + } + #menu li:hover li a, #menu li li:hover li a, #menu li li li:hover li a, #menu li li li li:hover li a { + color: #fff; /*Submenu text color */ + } + #menu li li:hover { + background: #f00; /*Submenu highlighted background color */ + } + #menu li:hover ul ul, #menu li:hover ul ul ul, #menu li:hover ul ul ul ul, #menu li.sfhover ul ul, #menu li.sfhover ul ul ul, #menu li.sfhover ul ul ul ul { + left: -9999px; + } + #menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li li li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul, #menu li li li.sfhover ul, #menu li li li li.sfhover ul { + left: auto; + background: #222; /*Submenu background color */ + text-transform: none; + } + + + +/* THE COMIC */ + +#comic { + padding: 10px 0; + text-align: center; + } + + + +/* THE FOOTER */ + +#footer { + padding: 20px 0; + text-align: center; + } + + + +/* NAVIGATION */ + +.nav { + float: right; + font-size: 12px; + font-weight: bold; + } + + .nav-first { + padding: 0 5px 0 0; + float: left; + border-right: 1px solid #000; + } + + .nav-previous { + padding: 0 5px; + float: left; + } + + .nav-next { + padding: 0 5px; + float: left; + border-right: 1px solid #000; + border-left: 1px solid #000; + } + + .nav-last { + padding: 0 0 0 5px; + float: left; + } + +.nav-blog { + color: #000; + font-size: 12px; + font-weight: bold; + float: right; + } + + .nav-blog-previous { + padding: 0 5px 0 0; + float: left; + } + + .nav-blog-next { + padding: 0 0 0 5px; + float: left; + border-left: 1px solid #000; + } + +.pagenav { + padding: 40px 20px 0 20px; + color: #000; + font-size: 12px; + font-weight: bold; + clear: both; + } + + .pagenav-left { + float: left; + } + + .pagenav-right { + float: right; + } + +.nav a, .pagenav a, .nav-blog a { + display: block; + float: left; + color: #000; + } + + .nav a:hover, .pagenav a:hover, .nav-blog a:hover { + color: #800; + } + + + +/* POSTS - PAGES */ + +#column { + width: 560px; + padding: 5px 0 20px 0; + float: left; + overflow: hidden; + } + +.post, .post-comic, .post-page { + padding: 0 20px; + } + +.post-head, .post-page-head, .post-comic-head { + } + +.post-foot, .post-comic-foot, .post-page-foot { + margin: 0 0 40px 0; + height: 10px; + overflow: hidden; + } + + .comicdate { + font-size: 14px; + } + + .postdate { + font-size: 11px; + } + +.more-link { + border-top: 1px dashed #000; + font-style: italic; + display: block; + clear: both; + } + +.tags { + font-size: 11px; + clear: both; + } + +.comment-link { + font-family: 'Georgia', serif; + font-size: 16px; + text-align: right; + } + + + +/* THE BLOG HEADER */ + +#blogheader { + font-family: 'Georgia', serif; + padding: 25px 0 25px 20px; + font-size: 32px; + letter-spacing: -2px; + border-top: 1px solid #000; + } + + + +/* COMMENTS */ + +.comment-wrap{ + padding: 0 20px; + } + + .comment-wrap h3 { + margin: 0; + padding: 20px 0 0 0; + font-weight: normal; + font-size: 20px; + clear: both; + font-family: 'Georgia', serif; + } + +.comment { + padding: 10px; + margin: 10px 0 0 0; + clear: both; + border: 1px solid #000; + min-height: 64px; + } + + .comment .comment { + border: 1px dotted #000; + } + +.comment-author { + display: inline; + } + +.comment-meta { + display: inline; + padding: 0 0 0 5px; + margin: 0 0 0 2px; + border-left: 1px solid #000; + } + +.says { + display:none; + } + +.avatar { + margin: 0 10px 0 0; + float: left; + } + +#comment { + width: 100%; + font-size: 12px; + font-family: 'Arial', sans-serif; + } + +#author, #email, #url { + width: 200px; + font-size: 12px; + font-family: 'Arial', sans-serif; + } + +#submit { + margin: 0 0 20px 0; + float: right; + } + +ol.commentlist { + margin: 0; + padding: 0; + font-size: 11px; + list-style: none; + } + + ol.commentlist p { + margin: 10px 0 0 74px; + } + +ul.children { + margin: 0; + padding: 0; + list-style: none; + } + +.reply { + padding: 10px 0 0 0; + text-align: right; + } + + + +/* ARCHIVE */ +/* For the built-in WordPress archive pages (by month or category) as well as search result pages */ + +.comicarchiveframe { + padding: 5px; + border: 1px solid #000; + background: #fff; + opacity: 0.99; + filter: alpha(opacity=99); + } + + .comicarchiveframe:hover { + opacity: 0.70; + filter: alpha(opacity=70); + } + + .comicarchiveframe h3 { + margin: 0; + } + + .comicarchiveframe a small { + display: block; + color: #000; + } + +.archive-year { + font-size: 48px; + } + +.archive-yearlist { + padding: 0 0 10px 0; + font-size: 14px; + } + + + +/* SIDEBAR */ + +#sidebar { + width: 200px; + padding: 5px 0; + float: left; + font-size: 11px; + overflow: hidden; + } + +#sidebar h2, #sidebar h2 a { + font-size: 16px; + } + +#sidebar ul { + margin: 0; + padding: 0; + list-style: none; + } + + #sidebar ul li { + margin: 0 0 10px 10px; + padding: 0; + } + + #sidebar ul li ul li { + margin: 0 0 0 10px; + padding: 0; + } + + + +/* WIDGETS */ + +.random-comic-icon { + padding: 0 5px; + color: #fff; + background: #000; + } + +.comic-bookmark { + margin: 0 0 10px 5px; + } + +.archive-dropdown { + max-width: 100%; + } + + + +/* CALENDAR */ + +#wp-calendar { + width: 165px; + margin: 0 0 0 5px; + } + +#wp-calendar th { + font-size: 10px; + font-weight: normal; + text-align: center; + } + +#wp-calendar caption { + font-family: 'Georgia', sans-serif; + font-size: 18px; + letter-spacing: -1px; + font-variant: small-caps; + } + +#wp-calendar td { + min-width: 20px; + padding: 0; + text-align: center; + border: 1px solid #000; + } + +#wp-calendar a { + display: block; + text-decoration: none; + font-weight: bold; + } + + #wp-calendar a:hover { + color: #fff; + background: #000; + } + + + +/* SEARCH */ + +#s { + width: 140px; + margin: 0; + padding: 2px; + font-size: 12px; + font-family: 'Arial', sans-serif; + } + +#searchsubmit { + padding: 0 5px; + font-size: 12px; + font-family: 'Arial', sans-serif; + } + + + +/* GALLERY */ + +.gallery-image { + width: 518px; + border: 1px solid #000; + overflow: hidden; + background: #000; +} + +.gallery-caption { + font-size: 11px; + } + + .gallery-caption p { + width: 510px; + padding: 5px; + margin: 0; + text-align: center; + color: #fff; + background: #000; + } + +.imagenav-wrap { + margin: 5px 0 0 0; + } + +.imagenav { + width: 77px; + height: 77px; + float: left; + overflow: hidden; + } + +.imagenav-center { + width: 344px; + height: 65px; + margin: 0 5px; + padding: 10px 5px 0 5px; + float: left; + color: #000; + text-align: center; + border: 1px solid #000; + overflow: hidden; + } + +.imagetitle { + color: #000; + font-size: 18px; + } + +.imagenav-bg { + width: 75px; + height: 75px; + position: absolute; + z-index: 0; + background: #ddd; + border: 1px solid #000; + overflow: hidden; + } + + .imagenav-bg img { + width: 75px; + height: 75px; + } + +.imagenav-arrow { + width: 75px; + height: 75px; + position: absolute; + z-index: 1; + color: #fff; + font-size: 80px; + font-weight: bold; + line-height:75px; + text-align: center; + border: 1px solid #000; + float: left; + } + +.imagenav-link { + width: 75px; + height: 75px; + position: absolute; + z-index: 2; + border: 1px solid #000; + float: left; + overflow: hidden; + } + + .imagenav-link img { + width: 75px; + height: 75px; + opacity: 0.50; + filter: alpha(opacity=50); + } + + .imagenav-link img:hover { + opacity: 0.00; + filter: alpha(opacity=0); + } + + + +/* POSTED IMAGES */ + +.wp-caption p { + margin: 5px 0; + line-height: 11px; + font-size: 11px; + } + +.aligncenter { + margin: 0 auto; + display: block; + } + +.alignright { + margin: 10px 0 10px 10px; + display: inline; + float: right; + } + +.alignleft { + margin: 10px 10px 10px 0; + display: inline; + float: left + } + + + +/* TRANSCRIPT */ + +#transcript { + padding: 0 10px; + font-size: 11px; + border-left: 4px dotted #000; + border-right: 4px dotted #000; + } + + .transcript-border { + padding: 0 5px; + margin: 15px 0; + border: 1px solid #000; + background: #fff; + clear: both; + } + + a.transcript-title { + padding: 0 0 5px 0; + margin: 0 0 5px 0; + display: block; + font-family: 'Georgia', serif; + font-style: italic; + font-size: 16px; + letter-spacing: -1px; + border-bottom: 1px dashed #000; + } + + #transcript-content { + font-family: 'Courier New', monospace; + overflow: hidden; + } + +#s-transcript { + width: 140px; + margin: 0; + padding: 2px; + font-size: 12px; + font-family: 'Georgia', serif; + font-style: italic; + } + + #searchsubmit-transcript { + padding: 0 5px; + font-size: 12px; + font-family: 'Arial', sans-serif; + } + + + +/* STORYLINES */ + +.storyline-cats { + padding: 0; + margin: 0; + list-style: none; + } + +.storyline-cats li { + display: inline; + } + + li.storyline-root { + display: none; + } + + + +/* CLEAR FLOATS */ + +.clear { + clear: both; + } + + + +/* CLEAR MARGINS */ +/* Used with BR for clearing paragraph margins for Safari, Chrome - avoid background gaps */ + +.clear-margins { + clear: both; + height: 0; + line-height: 0; + font-size: 0; + } \ No newline at end of file