diff --git a/404.php b/404.php index 0ee7cbe..46b61f5 100644 --- a/404.php +++ b/404.php @@ -1,47 +1,47 @@ - - - - - -
-
- - - -
- - - -
- - - - - -
-
- - -
-
-

Page Not Found

-

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

-

-
-
-
-
-
-
- - - - - -
-
- - + + + + + +
+
+ + + +
+ + + +
+ + + + + +
+
+ + +
+
+

Page Not Found

+

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

+

+
+
+
+
+
+
+ + + + + +
+
+ + \ No newline at end of file diff --git a/archive-blog-calendar.php b/archive-blog-calendar.php index 777815c..6256cc0 100644 --- a/archive-blog-calendar.php +++ b/archive-blog-calendar.php @@ -1,153 +1,153 @@ - - - - -query('&showposts=1000&cat=-'.exclude_comic_categories().'&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) ) { ?> - | - -
- - -
-
- -
- -
- -
- -
- - - -
- -
- - -
- -
-
-comment_status) { - comments_template('', true); - } ?> -
-
- - - - -
-
- - + + + + +query('&showposts=1000&cat=-'.exclude_comic_categories().'&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) ) { ?> + | + +
+ + +
+
+ +
+ +
+ +
+ +
+ + + +
+ +
+ + +
+ +
+
+comment_status) { + comments_template('', true); + } ?> +
+
+ + + + +
+
+ + \ No newline at end of file diff --git a/archive-blog-year.php b/archive-blog-year.php index b0e6195..2349274 100644 --- a/archive-blog-year.php +++ b/archive-blog-year.php @@ -1,82 +1,82 @@ - - - - - - - - - -
-
- - - -
- - - -
- - - - - -
-
- - -
-
- -
-

- -
- - -
| - 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=-'.exclude_comic_categories().'&year='.$archive_year); - while ($comicArchive->have_posts()) : $comicArchive->the_post() ?> - - -
- -
- -
-
-
-
- - - - -
-
- - + + + + + + + + + +
+
+ + + +
+ + + +
+ + + + + +
+
+ + +
+
+ +
+

+ +
+ + +
| + 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=-'.exclude_comic_categories().'&year='.$archive_year); + while ($comicArchive->have_posts()) : $comicArchive->the_post() ?> + + +
+ +
+ +
+
+
+
+ + + + +
+
+ + \ No newline at end of file diff --git a/archive-comic-calendar.php b/archive-comic-calendar.php index 544a7ac..a1f7032 100644 --- a/archive-comic-calendar.php +++ b/archive-comic-calendar.php @@ -1,155 +1,155 @@ - - - - -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) ) { ?> - | - -
- - -
-
- -
- -
- -
- -
- - - -
- -
- - -
- -
-
-comment_status) { - comments_template('', true); - } ?> -
-
- - - - -
-
- - + + + + +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) ) { ?> + | + +
+ + +
+
+ +
+ +
+ +
+ +
+ + + +
+ +
+ + +
+ +
+
+comment_status) { + comments_template('', true); + } ?> +
+
+ + + + +
+
+ + \ No newline at end of file diff --git a/archive-comic-storyline-thumbs.php b/archive-comic-storyline-thumbs.php index ce35fb2..fc8014d 100644 --- a/archive-comic-storyline-thumbs.php +++ b/archive-comic-storyline-thumbs.php @@ -1,105 +1,105 @@ - - - - - - -
-
- - - -
- - - -
- - - - - -
-
- - -
-
- -
-

- -
- -
    -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.
  • - - -
    -
    -
    -
    -
    - - - - -
    -
    - - + + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + +
    +
    + +
    +

    + +
    + +
      +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 index 9ff62f6..bb3d02c 100644 --- a/archive-comic-storyline.php +++ b/archive-comic-storyline.php @@ -1,107 +1,107 @@ - - - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - -
    -
    - -
    -

    - -
    - -
      - 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.
  • - - -
    -
    -
    -
    -
    - - - - -
    -
    - + + + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + +
    +
    + +
    +

    + +
    + +
      + 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 index 9221ac9..341c590 100644 --- a/archive-comic-year.php +++ b/archive-comic-year.php @@ -1,82 +1,82 @@ - - - - - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - -
    -
    - -
    -

    - -
    - - -
    | - 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() ?> - - -
    - -
    - -
    -
    -
    -
    - - - - -
    -
    - - + + + + + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + +
    +
    + +
    +

    + +
    + + +
    | + 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 index fe6a226..1607ad6 100644 --- a/archive-comic.php +++ b/archive-comic.php @@ -1,69 +1,69 @@ - - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - -
    -
    - -
    -

    - -
    - - - 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() ?> - - -
    - - -
    - -
    -
    -
    -
    -
    - - - - -
    -
    - - + + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + +
    +
    + +
    +

    + +
    + + + 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 index c466c6d..ab7e6c8 100644 --- a/archive.php +++ b/archive.php @@ -1,153 +1,153 @@ - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - -post_count; - ?> - -
    Found result.
    - - - -
    -
    - - - -

    Archive for ‘

    - -

    Posts Tagged ‘

    - -

    Archive for

    - -

    Archive for

    - -

    Archive for

    - -

    Author Archive

    - -

    Archives

    - -
    -
    -
    - - - - - - - -
    -
    - -
    -
    - '); ?> Posted in: -
    -
    -
    -
    - <?php the_title() ?>
    -
    -
    -
    -
    - - - -
    -
    - - -
    -
    -
    - ');?> Posted in: -
    -
    -
    -
    -
    - - - - - - - -
    -
    -

    No entries found.

    -

    Try another search?

    -

    -
    -
    -
    - - - - -
    - -
    - - - -
    -
    - - - - -
    -
    - - + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + +post_count; + ?> + +
    Found result.
    + + + +
    +
    + + + +

    Archive for ‘

    + +

    Posts Tagged ‘

    + +

    Archive for

    + +

    Archive for

    + +

    Archive for

    + +

    Author Archive

    + +

    Archives

    + +
    +
    +
    + + + + + + + +
    +
    + +
    +
    + '); ?> Posted in: +
    +
    +
    +
    + <?php the_title() ?>
    +
    +
    +
    +
    + + + +
    +
    + + +
    +
    +
    + ');?> Posted in: +
    +
    +
    +
    +
    + + + + + + + +
    +
    +

    No entries found.

    +

    Try another search?

    +

    +
    +
    +
    + + + + +
    + +
    + + + +
    +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/archives.php b/archives.php index e3689cd..8e6d296 100644 --- a/archives.php +++ b/archives.php @@ -1,53 +1,53 @@ - - - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - -
    -
    -

    Archives by Month:

    -
    -

    Archives by Subject:

    -
    -
    -
    -
    -
    -
    - - - - -
    -
    - - + + + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + +
    +
    +

    Archives by Month:

    +
    +

    Archives by Subject:

    +
    +
    +
    +
    +
    +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/author.php b/author.php index ce55101..a1021ee 100644 --- a/author.php +++ b/author.php @@ -1,103 +1,103 @@ - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - - -

    No such author.

    - -
    -
    -
    -
    - display_name, 1)."' title='".wp_specialchars($curauth->display_name, 1), get_avatar($curauth->user_email, 64)); ?> -
    -
    -
    -

    display_name; ?>

    - Registered on user_registered)); ?>
    -
    - user_url)) { ?>Website: user_url; ?>
    - aim)) { ?>AIM: aim; ?>
    - jabber)) { ?>Jabber/Google Talk: jabber; ?>
    - yim)) { ?>Yahoo IM: jabber; ?>
    - -
    - description)) { ?> -
    - description; ?> -
    - -
    -
    -
    - -

    Posts by nickname; ?> (ID); ?>) ¬

    - -
      - - - - -
      -
    - - -
    - -
    - - - - -
    - -
    -
    -
    -
    -
    -
    - - - - - -
    -
    - - + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + + +

    No such author.

    + +
    +
    +
    +
    + display_name, 1)."' title='".wp_specialchars($curauth->display_name, 1), get_avatar($curauth->user_email, 64)); ?> +
    +
    +
    +

    display_name; ?>

    + Registered on user_registered)); ?>
    +
    + user_url)) { ?>Website: user_url; ?>
    + aim)) { ?>AIM: aim; ?>
    + jabber)) { ?>Jabber/Google Talk: jabber; ?>
    + yim)) { ?>Yahoo IM: jabber; ?>
    + +
    + description)) { ?> +
    + description; ?> +
    + +
    +
    +
    + +

    Posts by nickname; ?> (ID); ?>) ¬

    + +
      + + + + +
      +
    + + +
    + +
    + + + + +
    + +
    +
    +
    +
    +
    +
    + + + + + +
    +
    + + \ No newline at end of file diff --git a/blog.php b/blog.php index d7a3ad0..39d71c7 100644 --- a/blog.php +++ b/blog.php @@ -1,71 +1,71 @@ - - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - - - -
    - -
    - - - -
    - - - - -
    -
    - - - - -
    -
    - - + + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + + + +
    + +
    + + + +
    + + + + +
    +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/buystrip.php b/buystrip.php index e0429fc..689a41b 100644 --- a/buystrip.php +++ b/buystrip.php @@ -1,136 +1,136 @@ - - - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - - - - -
    -
    -
    -
    - Powered by Paypal
    -
    -
    -

    Buy Print!

    -
    -
    - Comic ID - #
    - Title:
    -
    - -
    - <?php the_title(); ?>
    -
    - - - - - - -
    -
    - - - - - - - - - - - - - - US/Canada
    - $ + $ shipping
    - -
    -
    - -
    - - - - - - - - - - - - - - International
    - $ + $ shipping
    - -
    -
    -
    -
    - The purchase of this strip is based on availability. A Print of this strip is what you are purchasing.
    -
    - -
    -
    - - -
    -
    -

    -
    - - '

    Pages: ', 'after' => '

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

    ') ?> -
    -
    -
    - - -
    -
    - - - - -
    -
    - - - + + + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + + + + +
    +
    +
    +
    + Powered by Paypal
    +
    +
    +

    Buy Print!

    +
    +
    + Comic ID - #
    + Title:
    +
    + +
    + <?php the_title(); ?>
    +
    + + + + + + +
    +
    + + + + + + + + + + + + + + US/Canada
    + $ + $ shipping
    + +
    +
    + +
    + + + + + + + + + + + + + + International
    + $ + $ shipping
    + +
    +
    +
    +
    + The purchase of this strip is based on availability. A Print of this strip is what you are purchasing.
    +
    + +
    +
    + + +
    +
    +

    +
    + + '

    Pages: ', 'after' => '

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

    ') ?> +
    +
    +
    + + +
    +
    + + + + +
    +
    + + + diff --git a/chrome_style.css b/chrome_style.css index 053ada8..0b0c65a 100644 --- a/chrome_style.css +++ b/chrome_style.css @@ -1,19 +1,19 @@ -/* ComicPress Custom CSS over-rides for [ chrome ]: ComicPress - 2.8 */ - -html { overflow-y: scroll; } - -.comicarchiveframe { - opacity:0.99; /* firefox, opera, safari, chrome */ -} - - .comicarchiveframe:hover { - opacity:0.70; /* firefox, opera, safari, chrome */ - } - - .imagenav-link img { - opacity:0.5; /* firefox, opera, safari, chrome */ - } - - .imagenav-link img:hover { - opacity:0.5; /* firefox, opera, safari, chrome */ +/* ComicPress Custom CSS over-rides for [ chrome ]: ComicPress - 2.8 */ + +html { overflow-y: scroll; } + +.comicarchiveframe { + opacity:0.99; /* firefox, opera, safari, chrome */ +} + + .comicarchiveframe:hover { + opacity:0.70; /* firefox, opera, safari, chrome */ + } + + .imagenav-link img { + opacity:0.5; /* firefox, opera, safari, chrome */ + } + + .imagenav-link img:hover { + opacity:0.5; /* firefox, opera, safari, chrome */ } \ No newline at end of file diff --git a/comicpress-options-config.php b/comicpress-options-config.php index 2617565..31f1664 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -1,139 +1,139 @@ - "open"), - - array( - "id" => "comicpress-disable_comic_frontpage", - "default" => "no", - "type" => "comicpress-disable_comic_frontpage"), - - array( - "id" => "comicpress-disable_comic_blog_frontpage", - "default" => "no", - "type" => "comicpress-disable_comic_blog_frontpage"), - - array( - "id" => "comicpress-disable_blog_frontpage", - "default" => "no", - "type" => "comicpress-disable_blog_frontpage"), - - array( - "id" => "comicpress-custom_css", - "default" => "", - "type" => "comicpress-custom_css"), - - array( - "id" => "comicpress-cp_theme_style", - "default" => "standard", - "type" => "comicpress-cp_theme_style"), - - array( - "id" => "comicpress-buy_print_email", - "default" => "youremail@youremail.com", - "type" => "comicpress-buy_print_email"), - - array( - "id" => "comicpress-buy_print_url", - "default" => "/shop/", - "type" => "comicpress-buy_print_url"), - - array( - "id" => "comicpress-buy_print_us_amount", - "default" => "19.95", - "type" => "comicpress-buy_print_us_amount"), - - array( - "id" => "comicpress-buy_print_int_amount", - "default" => "29.95", - "type" => "comicpress-buy_print_int_amount"), - - array( - "id" => "comicpress-buy_print_us_ship", - "default" => "4.95", - "type" => "comicpress-buy_print_us_ship"), - - array( - "id" => "comicpress-buy_print_int_ship", - "default" => "9.95", - "type" => "comicpress-buy_print_int_ship"), - - array( - "id" => "comicpress-transcript_in_posts", - "default" => "no", - "type" => "comicpress-transcript_in_posts"), - - array( - "id" => "comicpress-enable_widgetarea_use_sidebar_css", - "default" => "no", - "type" => "comicpress-enable_widgetarea_use_sidebar_css"), - - array( - "id" => "comicpress-contact_in_menubar", - "default" => "no", - "type" => "comicpress-contact_in_menubar"), - - array( - "id" => "comicpress-disable_extended_comments", - "default" => "no", - "type" => "comicpress-disable_extended_comments"), - - array( - "id" => "comicpress-enable_custom_image_header", - "default" => "no", - "type" => "comicpress-enable_custom_image_header"), - - array( - "id" => "comicpress-custom_image_header_width", - "default" => "780", - "type" => "comicpress-custom_image_header_width"), - - array( - "id" => "comicpress-custom_image_header_height", - "default" => "120", - "type" => "comicpress-custom_image_header_height"), - - array( - "id" => "comicpress-enable_numbered_pagination", - "default" => "no", - "type" => "comicpress-enable_numbered_pagination"), - - array( - "id" => "comicpress-disable_page_restraints", - "default" => "no", - "type" => "comicpress-disable_page_restraints"), - - array( - "id" => "comicpress-enable_dropdown_sidebar", - "default" => "no", - "type" => "comicpress-enable_dropdown_sidebar"), - - array( - "id" => "comicpress-enable_related_comics", - "default" => "no", - "type" => "comicpress-enable_related_comics"), - - array( - "id" => "comicpress-enable_related_posts", - "default" => "no", - "type" => "comicpress-enable_related_posts"), - - array( - "id" => "comicpress-comic_clicks_next", - "default" => "no", - "type" => "comicpress-comic_clicks_next"), - - array( - "id" => "comicpress-anomaly_says", - "default" => "no", - "type" => "comicpress-anomaly_says"), - - array( - "id" => "comicpress-disable_css_style_editor", - "default" => "no", - "type" => "comicpress-disable_css_style_editor"), - - array("type" => "close") - ); + "open"), + + array( + "id" => "comicpress-disable_comic_frontpage", + "default" => "no", + "type" => "comicpress-disable_comic_frontpage"), + + array( + "id" => "comicpress-disable_comic_blog_frontpage", + "default" => "no", + "type" => "comicpress-disable_comic_blog_frontpage"), + + array( + "id" => "comicpress-disable_blog_frontpage", + "default" => "no", + "type" => "comicpress-disable_blog_frontpage"), + + array( + "id" => "comicpress-custom_css", + "default" => "", + "type" => "comicpress-custom_css"), + + array( + "id" => "comicpress-cp_theme_style", + "default" => "standard", + "type" => "comicpress-cp_theme_style"), + + array( + "id" => "comicpress-buy_print_email", + "default" => "youremail@youremail.com", + "type" => "comicpress-buy_print_email"), + + array( + "id" => "comicpress-buy_print_url", + "default" => "/shop/", + "type" => "comicpress-buy_print_url"), + + array( + "id" => "comicpress-buy_print_us_amount", + "default" => "19.95", + "type" => "comicpress-buy_print_us_amount"), + + array( + "id" => "comicpress-buy_print_int_amount", + "default" => "29.95", + "type" => "comicpress-buy_print_int_amount"), + + array( + "id" => "comicpress-buy_print_us_ship", + "default" => "4.95", + "type" => "comicpress-buy_print_us_ship"), + + array( + "id" => "comicpress-buy_print_int_ship", + "default" => "9.95", + "type" => "comicpress-buy_print_int_ship"), + + array( + "id" => "comicpress-transcript_in_posts", + "default" => "no", + "type" => "comicpress-transcript_in_posts"), + + array( + "id" => "comicpress-enable_widgetarea_use_sidebar_css", + "default" => "no", + "type" => "comicpress-enable_widgetarea_use_sidebar_css"), + + array( + "id" => "comicpress-contact_in_menubar", + "default" => "no", + "type" => "comicpress-contact_in_menubar"), + + array( + "id" => "comicpress-disable_extended_comments", + "default" => "no", + "type" => "comicpress-disable_extended_comments"), + + array( + "id" => "comicpress-enable_custom_image_header", + "default" => "no", + "type" => "comicpress-enable_custom_image_header"), + + array( + "id" => "comicpress-custom_image_header_width", + "default" => "780", + "type" => "comicpress-custom_image_header_width"), + + array( + "id" => "comicpress-custom_image_header_height", + "default" => "120", + "type" => "comicpress-custom_image_header_height"), + + array( + "id" => "comicpress-enable_numbered_pagination", + "default" => "no", + "type" => "comicpress-enable_numbered_pagination"), + + array( + "id" => "comicpress-disable_page_restraints", + "default" => "no", + "type" => "comicpress-disable_page_restraints"), + + array( + "id" => "comicpress-enable_dropdown_sidebar", + "default" => "no", + "type" => "comicpress-enable_dropdown_sidebar"), + + array( + "id" => "comicpress-enable_related_comics", + "default" => "no", + "type" => "comicpress-enable_related_comics"), + + array( + "id" => "comicpress-enable_related_posts", + "default" => "no", + "type" => "comicpress-enable_related_posts"), + + array( + "id" => "comicpress-comic_clicks_next", + "default" => "no", + "type" => "comicpress-comic_clicks_next"), + + array( + "id" => "comicpress-anomaly_says", + "default" => "no", + "type" => "comicpress-anomaly_says"), + + array( + "id" => "comicpress-disable_css_style_editor", + "default" => "no", + "type" => "comicpress-disable_css_style_editor"), + + array("type" => "close") + ); ?> \ No newline at end of file diff --git a/comicpress-options.php b/comicpress-options.php index 12bd151..ef2d9b2 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -1,481 +1,481 @@ - -
    -

    ComicPress Options

    - - ComicPress - - -
    - - -

    Options/Settings SAVED!

    - -

    Options/Settings RESET!

    - -
    - - -
    -

    -
    -
    - - - - - - - - - - - -
    Choose which theme style you want to use.

    This is the style in which your theme will be presented.

    - - - ComicPress Theme Style - -

    (Check the vaildity of your theme's HTML & CSS using the links below. Stock ComicPress is XHTML 1.0 and CSS 2 compliant.)

    - Valid XHTML 1.0 Transitional - - Valid CSS! - -
    - - -
    -
    -
    - -
    - -
    -

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - To enable the drop down widget area choose [yes] here.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Disable Comic On Frontpage?

    Set to "Yes" and the comic will not display on the index page/front page of your site.
    - -    -
    -
    - Note: You can use the Latest Thumbnail widget to display your comic in a sidebar. Make sure you set the archive-thumbnail size to under 200px. - Turning this off and using the GN style turns ComicPress into a Blog. -
    Disable Comic Blog On Frontpage?

    Set to "Yes" and the blog portion of the comic will not display on the index page/front page of your site.
    - -    -
    -
    Disable Blog On Frontpage?

    Set to "Yes" and the blog area will not display on the index page/front page of your site.
    - -    -
    -
    Disable Extra Comment Code?

    Set to "Yes" and the extended comment code will be disabled.
    - -    -
    -
    Show transcript in post area?

    When enabled, if the comic has a transcript, the transcript will be displayed inside the post for the comic.
    - -    - -
    Disable showing the post for the comic?

    Setting to "Yes" will disable showing the blog post of the comic on the home page and single pages.
    - -    - -
    Contact Link in Menubar

    Setting to "Yes" will put [ CONTACT ] in the menubar and associate it with your admin's email.
    - -    - -
    Enable Sidebar CSS?

    Enabling this will use the standard CSS styling of the sidebars for all the widget areas.

    If not enabled it will use the .customwidgetarea user made styling only and only the Sidebar-left and Sidebar-right will use sidebar styling.
    - -    - -
    Enable Custom Image Header panel?

    Setting to "Yes" will set a new option in your Dashboard -> Appearance menu.

    After saving the settings 2 new options will appear to set the height and width of the image that you want to use.
    - -    - -
    Enable numbered pagination?

    Setting to "Yes" will make the Previous Entries and Next Entries turn into numbered pages to click on.
    - -    - -
    Disable the #page / #page-wide restraints?
    -
    - Turning this option to Yes will make it so that the divs for #page and #page-wide will not load.
    -
    - What you can do with this is use the entire *page* for your canvas instead of the 780px/980px that the two elements keep you in.
    - -    - -
    Enable the Dropbar Widget area?
    - -    - -
    Put Related Comics in comic posts?
    - -    - -
    Put Related Posts in blog posts?

    - -    - -
    Make the comic an Href that goes to next comic?

    In doing this if someone clicks the comic it will go to the next comic (if possible)
    - -    - -
    Request Anomaly to comment?

    Enabling this option will summon Anomaly to your comic's universe and say what you request Anomaly to say by modifying the "Hovertext" in the comic post.
    - -    - -
    Disable the styling in ComicPress CSS Editor?

    This will let you disable the colored, styling CSS editor and be a normal form.
    - -    - -
    - -
    -
    - -
    -

    -
    - - - - - - - - - - - - - - - -
    Header Image Height

    Set the height of the image you want to use in the Custom Image Header panel.
    - -
    Header Image Width

    Set the width of the image you want to use in the Custom Image Header panel.
    - - - The Standard and V styles use 760 px width, while the 3C, GN and V3C use 980 px width. This is configurable in case you set the #page, #page-width widths in the CSS to something different than the default while using the Custom Header panel. -
    -
    -
    - -
    -

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Paypal Email Address*

    The Email address you registered with Paypal and that your store is associated with.
    - -
    Url Page of the Template*

    The URL address to which you associated the buy print template.
    - -
    Print Cost (US/Canada)

    How much does a print cost for people in the United State and Canada?
    - -
    Shipping Cost (US/Canada)

    - -
    Print Cost (International)

    How much does a print cost for people *NOT* in the United States and Canda (International)
    - -
    Shipping Cost (International)

    - -
    -
    -
    - -
    - - - -
    -
    -
    - - - -
    -
    -
    -
    - ComicPress, created by Tyler Martin, with John Bintz and Philip M. Hofer (Frumph)
    - If you like the ComicPress theme, please donate. It will help in creating new versions.
    - -
    - - - - -
    -
    -
    -
    - +
    +

    ComicPress Options

    + + ComicPress + + +
    + + +

    Options/Settings SAVED!

    + +

    Options/Settings RESET!

    + +
    + + +
    +

    +
    +
    + + + + + + + + + + + +
    Choose which theme style you want to use.

    This is the style in which your theme will be presented.

    + + + ComicPress Theme Style + +

    (Check the vaildity of your theme's HTML & CSS using the links below. Stock ComicPress is XHTML 1.0 and CSS 2 compliant.)

    + Valid XHTML 1.0 Transitional + + Valid CSS! + +
    + + +
    +
    +
    + +
    + +
    +

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + To enable the drop down widget area choose [yes] here.
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Disable Comic On Frontpage?

    Set to "Yes" and the comic will not display on the index page/front page of your site.
    + +    +
    +
    + Note: You can use the Latest Thumbnail widget to display your comic in a sidebar. Make sure you set the archive-thumbnail size to under 200px. + Turning this off and using the GN style turns ComicPress into a Blog. +
    Disable Comic Blog On Frontpage?

    Set to "Yes" and the blog portion of the comic will not display on the index page/front page of your site.
    + +    +
    +
    Disable Blog On Frontpage?

    Set to "Yes" and the blog area will not display on the index page/front page of your site.
    + +    +
    +
    Disable Extra Comment Code?

    Set to "Yes" and the extended comment code will be disabled.
    + +    +
    +
    Show transcript in post area?

    When enabled, if the comic has a transcript, the transcript will be displayed inside the post for the comic.
    + +    + +
    Disable showing the post for the comic?

    Setting to "Yes" will disable showing the blog post of the comic on the home page and single pages.
    + +    + +
    Contact Link in Menubar

    Setting to "Yes" will put [ CONTACT ] in the menubar and associate it with your admin's email.
    + +    + +
    Enable Sidebar CSS?

    Enabling this will use the standard CSS styling of the sidebars for all the widget areas.

    If not enabled it will use the .customwidgetarea user made styling only and only the Sidebar-left and Sidebar-right will use sidebar styling.
    + +    + +
    Enable Custom Image Header panel?

    Setting to "Yes" will set a new option in your Dashboard -> Appearance menu.

    After saving the settings 2 new options will appear to set the height and width of the image that you want to use.
    + +    + +
    Enable numbered pagination?

    Setting to "Yes" will make the Previous Entries and Next Entries turn into numbered pages to click on.
    + +    + +
    Disable the #page / #page-wide restraints?
    +
    + Turning this option to Yes will make it so that the divs for #page and #page-wide will not load.
    +
    + What you can do with this is use the entire *page* for your canvas instead of the 780px/980px that the two elements keep you in.
    + +    + +
    Enable the Dropbar Widget area?
    + +    + +
    Put Related Comics in comic posts?
    + +    + +
    Put Related Posts in blog posts?

    + +    + +
    Make the comic an Href that goes to next comic?

    In doing this if someone clicks the comic it will go to the next comic (if possible)
    + +    + +
    Request Anomaly to comment?

    Enabling this option will summon Anomaly to your comic's universe and say what you request Anomaly to say by modifying the "Hovertext" in the comic post.
    + +    + +
    Disable the styling in ComicPress CSS Editor?

    This will let you disable the colored, styling CSS editor and be a normal form.
    + +    + +
    + +
    +
    + +
    +

    +
    + + + + + + + + + + + + + + + +
    Header Image Height

    Set the height of the image you want to use in the Custom Image Header panel.
    + +
    Header Image Width

    Set the width of the image you want to use in the Custom Image Header panel.
    + + + The Standard and V styles use 760 px width, while the 3C, GN and V3C use 980 px width. This is configurable in case you set the #page, #page-width widths in the CSS to something different than the default while using the Custom Header panel. +
    +
    +
    + +
    +

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Paypal Email Address*

    The Email address you registered with Paypal and that your store is associated with.
    + +
    Url Page of the Template*

    The URL address to which you associated the buy print template.
    + +
    Print Cost (US/Canada)

    How much does a print cost for people in the United State and Canada?
    + +
    Shipping Cost (US/Canada)

    + +
    Print Cost (International)

    How much does a print cost for people *NOT* in the United States and Canda (International)
    + +
    Shipping Cost (International)

    + +
    +
    +
    + +
    + + + +
    +
    +
    + + + +
    +
    +
    +
    + ComicPress, created by Tyler Martin, with John Bintz and Philip M. Hofer (Frumph)
    + If you like the ComicPress theme, please donate. It will help in creating new versions.
    + +
    + + + + +
    +
    +
    +
    + \ No newline at end of file diff --git a/comments.php b/comments.php index b159fc1..e731962 100644 --- a/comments.php +++ b/comments.php @@ -1,134 +1,134 @@ -
    > - - -

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

    - - - - -

    - -
      - 'comment', - 'reply_text' => 'Reply to %s¬', - 'callback' => 'comicpress_comments_callback', - 'end-callback' => 'comicpress_comments_end_callback', - 'avatar_size'=>64 - ) - ); - } else { - wp_list_comments(array('type' => 'comment', 'avatar_size'=>64)); - }?> -
    - - - -

    Pings & Trackbacks ¬

    -
      -
        - 'pings', - 'callback' => 'comicpress_comments_callback', - 'end-callback' => 'comicpress_comments_end_callback', - 'avatar_size'=>32 - ) - ); - } else { - wp_list_comments(array('type' => 'pings', 'avatar_size'=>64)); - }?> -
      -
    - - - -
    - -
    - -
    -
    -
    -
    -
    - - - - - -comment_status) : ?> - - - - -

    Comments are closed.

    - - - - - -comment_status) : ?> - -
    - -

    - -
    - -
    - - -

    You must be logged in to post a comment.

    - - -
    - - - -

    Logged in as . Log out »

    - - - - -

    -

    - -

    -

    - -

    -

    - - -ID); ?> -

    - -

    NOTE - You can use these tags:

    - -

    - - -
    - - - -
    - - -
    - - - -
    +
    > + + +

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

    + + + + +

    + +
      + 'comment', + 'reply_text' => 'Reply to %s¬', + 'callback' => 'comicpress_comments_callback', + 'end-callback' => 'comicpress_comments_end_callback', + 'avatar_size'=>64 + ) + ); + } else { + wp_list_comments(array('type' => 'comment', 'avatar_size'=>64)); + }?> +
    + + + +

    Pings & Trackbacks ¬

    +
      +
        + 'pings', + 'callback' => 'comicpress_comments_callback', + 'end-callback' => 'comicpress_comments_end_callback', + 'avatar_size'=>32 + ) + ); + } else { + wp_list_comments(array('type' => 'pings', 'avatar_size'=>64)); + }?> +
      +
    + + + +
    + +
    + +
    +
    +
    +
    +
    + + + + + +comment_status) : ?> + + + + +

    Comments are closed.

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

    + +
    + +
    + + +

    You must be logged in to post a comment.

    + + +
    + + + +

    Logged in as . Log out »

    + + + + +

    +

    + +

    +

    + +

    +

    + + +ID); ?> +

    + +

    NOTE - You can use these tags:

    + +

    + + +
    + + + +
    + + +
    + + + +
    diff --git a/footer.php b/footer.php index 4c7d437..2be69c1 100644 --- a/footer.php +++ b/footer.php @@ -1,28 +1,28 @@ -
    - - - - -
    - - - - - - +
    + + + + +
    + + + + + + \ No newline at end of file diff --git a/functions.php b/functions.php index 2c5ecfc..cd9127c 100644 --- a/functions.php +++ b/functions.php @@ -1,689 +1,689 @@ - 'comiccat', - 'blogcat' => 'blogcat', - 'comics_path' => 'comic_folder', - 'comicsrss_path' => 'rss_comic_folder', - 'comicsarchive_path' => 'archive_comic_folder', - 'archive_comic_width' => 'archive_comic_width', - 'rss_comic_width' => 'rss_comic_width', - 'blog_postcount' => 'blog_postcount') as $option => $variable_name) { - $variables_to_extract[$variable_name] = get_option("comicpress-${option}"); - } - - extract($variables_to_extract); - } - -} else { - require_once(get_template_directory() . '/comicpress-config.php'); -} - - -if (get_option('upload_path') !== false) { - $variables_to_extract = array(); - - foreach (array( - 'disable_comic_frontpage' => 'disable_comic_frontpage', - 'disable_comic_blog_frontpage' => 'disable_comic_blog_frontpage', - 'disable_blog_frontpage' => 'disable_blog_frontpage', - 'disable_extended_comments' => 'disable_extended_comments', - 'buy_print_email' => 'buy_print_email', - 'buy_print_url' => 'buy_print_url', - 'buy_print_us_amount' => 'buy_print_us_amount', - 'buy_print_int_amount' => 'buy_print_int_amount', - 'buy_print_us_ship' => 'buy_print_us_ship', - 'buy_print_int_ship' => 'buy_print_int_ship', - 'custom_css' => 'custom_css', - 'cp_theme_style' => 'cp_theme_style', - 'transcript_in_posts' => 'transcript_in_posts', - 'enable_widgetarea_use_sidebar_css' => 'enable_widgetarea_use_sidebar_css', - 'enable_custom_image_header' => 'enable_custom_image_header', - 'custom_image_header_width' => 'custom_image_header_width', - 'custom_image_header_height' => 'custom_image_header_height', - 'enable_numbered_pagination' => 'enable_numbered_pagination', - 'disable_page_restraints' => 'disable_page_restraints', - 'enable_dropdown_sidebar' => 'enable_dropdown_sidebar', - 'enable_related_comics' => 'enable_related_comics', - 'enable_related_posts' => 'enable_related_posts', - 'comic_clicks_next' => 'comic_clicks_next', - 'anomaly_says' => 'anomaly_says', - 'disable_css_style_editor' => 'disable_css_style_editor', - 'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) { - $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); - } - - extract($variables_to_extract); -} - -function is_cp_theme_style($choices) { -global $cp_theme_style; - - $choices = explode(",", $choices); - foreach ($choices as $choice) { - - if ($choice == $cp_theme_style) { - return true; - } - } - return false; -} - -require_once(get_template_directory() . '/functions/userpages.php'); - -// WIDGETS WP 2.8 compatible ONLY, no backwards compatibility here. - -require_once(get_template_directory() . '/widgets/control-panel.php'); -require_once(get_template_directory() . '/widgets/graphical-navigation.php'); -require_once(get_template_directory() . '/widgets/buythisprint.php'); -require_once(get_template_directory() . '/widgets/bookmark.php'); -require_once(get_template_directory() . '/widgets/transcription.php'); -require_once(get_template_directory() . '/widgets/latestthumb.php'); -require_once(get_template_directory() . '/widgets/latestcomics.php'); -require_once(get_template_directory() . '/widgets/scheduledposts.php'); -require_once(get_template_directory() . '/widgets/calendar.php'); -require_once(get_template_directory() . '/widgets/randomcomic.php'); -require_once(get_template_directory() . '/widgets/randompost.php'); -require_once(get_template_directory() . '/widgets/searchtranscript.php'); -require_once(get_template_directory() . '/widgets/latestcomicjump.php'); -require_once(get_template_directory() . '/widgets/permalink.php'); -require_once(get_template_directory() . '/widgets/comicdate.php'); -require_once(get_template_directory() . '/widgets/comictitle.php'); -require_once(get_template_directory() . '/widgets/comiccomments.php'); -require_once(get_template_directory() . '/widgets/menubar.php'); -require_once(get_template_directory() . '/widgets/keenspotnewsbox.php'); - -// FUNCTIONS & Extra's - -require_once(get_template_directory() . '/functions/displaycomic.php'); -require_once(get_template_directory() . '/functions/displaycomicpost.php'); -require_once(get_template_directory() . '/functions/displayblogpost.php'); -require_once(get_template_directory() . '/functions/adminnotes.php'); -require_once(get_template_directory() . '/functions/checkbrowser.php'); -require_once(get_template_directory() . '/functions/searchcustomfields.php'); -require_once(get_template_directory() . '/functions/multicomics.php'); -require_once(get_template_directory() . '/functions/rawformatting.php'); -require_once(get_template_directory() . '/functions/relatedposts.php'); -require_once(get_template_directory() . '/functions/relatedcomics.php'); -require_once(get_template_directory() . '/functions/membersonly.php'); -require_once(get_template_directory() . '/functions/syndication.php'); - - -if ($enable_dropdown_sidebar == 'yes') { - require_once(get_template_directory() . '/functions/dropbar.php'); -} - -if ($enable_numbered_pagination == 'yes') { - require_once(get_template_directory() . '/functions/wp-pagenavi.php'); -} - -if ($disable_extended_comments == 'no') { - require_once(get_template_directory() . '/functions/comment-functions.php'); -} - -// Dashboard Menu Comicpress Options and ComicPress CSS - -require_once(get_template_directory() . '/comicpress-options.php'); - -if ($enable_custom_image_header == 'yes') { - require_once(get_template_directory() . '/functions/custom-image-header.php'); -} - -// If any errors occur while searching for a comic file, the error messages will be pushed into here. -$comic_pathfinding_errors = array(); - -// If ComicPress Manager is installed, use the date format defined there. If not, default to -// Y-m-d.. It's best to use CPM's date definition for improved operability between theme and plugin. - -if (defined("CPM_DATE_FORMAT")) { - define("CP_DATE_FORMAT", CPM_DATE_FORMAT); -} else { - define("CP_DATE_FORMAT", "Y-m-d"); -} - -// If you want to run multiple comics on a single day, define your additional filters here. -// Example: you want to run an additional comic with the filename 2008-01-01-a-my-new-years-comic.jpg. -// Define an additional filter in the list below: -// -// $comic_filename_filters['secondary'] = "{date}-a*.*"; -// -// Then show the second comic on your page by calling the_comic with your filter name (PHP tags munged -// to maintain valid file syntax): -// -// < ?php the_comic('secondary'); ? > -// -// 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(" and ", 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,true); } - -/** - * Get the next comic from the current one. - */ -function get_next_comic($category = null) { return get_adjacent_comic($category); } - - - -/** - * This is function get_next_comic_permalink - * - * @return mixed false if no next comic permalink, else return the permalink - * - */ -function get_next_comic_permalink() { - $next_comic = get_next_comic(); - if (is_object($next_comic)) { - if (isset($next_comic->ID)) { - return get_permalink($next_comic->ID); - } - } - return false; -} - - -/** - * This is function get_previous_comic_permalink - * - * @return mixed false if there is no permalink or next previous comic - * - */ -function get_previous_comic_permalink() { - $prev_comic = get_previous_comic(); - if (is_object($prev_comic)) { - if (isset($prev_comic->ID)) { - return get_permalink($prev_comic->ID); - } - } - return false; -} - -/** - * Get the adjacent comic from the current one. - * @param int $category The category to use. - * @param boolean $next True if the next chronological comic should be retrieved. - * @return array The WordPress post object for the comic post. - */ -function get_adjacent_comic($category, $next = false) { - global $non_comic_categories; - -// get_all_comic_categories(); - - $categories_to_exclude = $non_comic_categories; - if (!empty($category)) { - $categories_to_exclude = get_string_to_exclude_all_but_provided_categories($category); - } - - 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. -*/ -if (!function_exists('get_comic_path')) { - function get_comic_path($folder = 'comic', $override_post = null, $filter = 'default', $multi = null) { - 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); - - $results = array(); - - if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) { - if (!empty($multi)) { - return $results; - } else { - 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; - } else { - if (($folder == 'archive' || $folder == 'rss')) { - if (($result = get_comic_path('comic', $override_post, $filter)) !== false) { - return get_option('home') . '/' . $result; - } - } - } - return false; -} - -/** - * get_comic_filename - * returns the filename of the comic for the individual date. - * - */ -function get_comic_filename($folder = 'comic', $override_post = null, $filter = 'default') { - if (($result = get_comic_path($folder, $override_post, $filter)) !== false) { - return $result; - } -} - -/** - * Return a list of the comic categories with a negative value for exclusions - * NOTE: need a pre - negative for the first one - */ -function exclude_comic_categories() { - global $all_comic_categories_as_string; - if (empty($all_comic_categories_as_string)) get_all_comic_categories_as_cat_string(); - $returnstring = str_replace(",",",-",$all_comic_categories_as_string); - return $returnstring; -} - -/** - * 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_filename($filter = 'default') { return get_comic_filename('comic',null, $filter); } - -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() ?>

    'Left Sidebar','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Right Sidebar','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Above Header','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Header','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Menubar','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Over Comic','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Left of Comic','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Right of Comic','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Under Comic','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Over Blog','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Blog','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Under Blog','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Footer','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); - register_sidebar(array('name'=>'Drop Bar','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); -} - - -function widget_comicpress_archive_dropdown() { ?> -
      -
    • - -
    • -
    - ", "
      » ", $listcats); - echo $listcats; -} - - -/** - * This is function comicpress_current_theme_version - * - * @return mixed return straight current theme version # - * - */ -function comicpress_current_theme_version() { - $themes = get_themes(); - $current_theme = get_current_theme(); - return $themes[$current_theme]['Version']; -} - - -/** - * This is function comicpress_is_active_sidebar - * - * @param $name - sidebar name made with register_sidebar(array('name'=>'Name of Sidebar'), - * use 'Sidebar 1' .. # if no sidebar names specified. - * @return true if sidebar with $name has widgets, false if not. - * - */ -function comicpress_is_active_sidebar( $name ) { - global $wp_registered_sidebars, $_wp_sidebars_widgets; - $i = 1; - foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) { - if ( $name == $registered_sidebar['name'] && !empty($_wp_sidebars_widgets[sanitize_title("sidebar-$i")]) ) - return true; - $i++; - } - return false; -} - + 'comiccat', + 'blogcat' => 'blogcat', + 'comics_path' => 'comic_folder', + 'comicsrss_path' => 'rss_comic_folder', + 'comicsarchive_path' => 'archive_comic_folder', + 'archive_comic_width' => 'archive_comic_width', + 'rss_comic_width' => 'rss_comic_width', + 'blog_postcount' => 'blog_postcount') as $option => $variable_name) { + $variables_to_extract[$variable_name] = get_option("comicpress-${option}"); + } + + extract($variables_to_extract); + } + +} else { + require_once(get_template_directory() . '/comicpress-config.php'); +} + + +if (get_option('upload_path') !== false) { + $variables_to_extract = array(); + + foreach (array( + 'disable_comic_frontpage' => 'disable_comic_frontpage', + 'disable_comic_blog_frontpage' => 'disable_comic_blog_frontpage', + 'disable_blog_frontpage' => 'disable_blog_frontpage', + 'disable_extended_comments' => 'disable_extended_comments', + 'buy_print_email' => 'buy_print_email', + 'buy_print_url' => 'buy_print_url', + 'buy_print_us_amount' => 'buy_print_us_amount', + 'buy_print_int_amount' => 'buy_print_int_amount', + 'buy_print_us_ship' => 'buy_print_us_ship', + 'buy_print_int_ship' => 'buy_print_int_ship', + 'custom_css' => 'custom_css', + 'cp_theme_style' => 'cp_theme_style', + 'transcript_in_posts' => 'transcript_in_posts', + 'enable_widgetarea_use_sidebar_css' => 'enable_widgetarea_use_sidebar_css', + 'enable_custom_image_header' => 'enable_custom_image_header', + 'custom_image_header_width' => 'custom_image_header_width', + 'custom_image_header_height' => 'custom_image_header_height', + 'enable_numbered_pagination' => 'enable_numbered_pagination', + 'disable_page_restraints' => 'disable_page_restraints', + 'enable_dropdown_sidebar' => 'enable_dropdown_sidebar', + 'enable_related_comics' => 'enable_related_comics', + 'enable_related_posts' => 'enable_related_posts', + 'comic_clicks_next' => 'comic_clicks_next', + 'anomaly_says' => 'anomaly_says', + 'disable_css_style_editor' => 'disable_css_style_editor', + 'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) { + $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); + } + + extract($variables_to_extract); +} + +function is_cp_theme_style($choices) { +global $cp_theme_style; + + $choices = explode(",", $choices); + foreach ($choices as $choice) { + + if ($choice == $cp_theme_style) { + return true; + } + } + return false; +} + +require_once(get_template_directory() . '/functions/userpages.php'); + +// WIDGETS WP 2.8 compatible ONLY, no backwards compatibility here. + +require_once(get_template_directory() . '/widgets/control-panel.php'); +require_once(get_template_directory() . '/widgets/graphical-navigation.php'); +require_once(get_template_directory() . '/widgets/buythisprint.php'); +require_once(get_template_directory() . '/widgets/bookmark.php'); +require_once(get_template_directory() . '/widgets/transcription.php'); +require_once(get_template_directory() . '/widgets/latestthumb.php'); +require_once(get_template_directory() . '/widgets/latestcomics.php'); +require_once(get_template_directory() . '/widgets/scheduledposts.php'); +require_once(get_template_directory() . '/widgets/calendar.php'); +require_once(get_template_directory() . '/widgets/randomcomic.php'); +require_once(get_template_directory() . '/widgets/randompost.php'); +require_once(get_template_directory() . '/widgets/searchtranscript.php'); +require_once(get_template_directory() . '/widgets/latestcomicjump.php'); +require_once(get_template_directory() . '/widgets/permalink.php'); +require_once(get_template_directory() . '/widgets/comicdate.php'); +require_once(get_template_directory() . '/widgets/comictitle.php'); +require_once(get_template_directory() . '/widgets/comiccomments.php'); +require_once(get_template_directory() . '/widgets/menubar.php'); +require_once(get_template_directory() . '/widgets/keenspotnewsbox.php'); + +// FUNCTIONS & Extra's + +require_once(get_template_directory() . '/functions/displaycomic.php'); +require_once(get_template_directory() . '/functions/displaycomicpost.php'); +require_once(get_template_directory() . '/functions/displayblogpost.php'); +require_once(get_template_directory() . '/functions/adminnotes.php'); +require_once(get_template_directory() . '/functions/checkbrowser.php'); +require_once(get_template_directory() . '/functions/searchcustomfields.php'); +require_once(get_template_directory() . '/functions/multicomics.php'); +require_once(get_template_directory() . '/functions/rawformatting.php'); +require_once(get_template_directory() . '/functions/relatedposts.php'); +require_once(get_template_directory() . '/functions/relatedcomics.php'); +require_once(get_template_directory() . '/functions/membersonly.php'); +require_once(get_template_directory() . '/functions/syndication.php'); + + +if ($enable_dropdown_sidebar == 'yes') { + require_once(get_template_directory() . '/functions/dropbar.php'); +} + +if ($enable_numbered_pagination == 'yes') { + require_once(get_template_directory() . '/functions/wp-pagenavi.php'); +} + +if ($disable_extended_comments == 'no') { + require_once(get_template_directory() . '/functions/comment-functions.php'); +} + +// Dashboard Menu Comicpress Options and ComicPress CSS + +require_once(get_template_directory() . '/comicpress-options.php'); + +if ($enable_custom_image_header == 'yes') { + require_once(get_template_directory() . '/functions/custom-image-header.php'); +} + +// If any errors occur while searching for a comic file, the error messages will be pushed into here. +$comic_pathfinding_errors = array(); + +// If ComicPress Manager is installed, use the date format defined there. If not, default to +// Y-m-d.. It's best to use CPM's date definition for improved operability between theme and plugin. + +if (defined("CPM_DATE_FORMAT")) { + define("CP_DATE_FORMAT", CPM_DATE_FORMAT); +} else { + define("CP_DATE_FORMAT", "Y-m-d"); +} + +// If you want to run multiple comics on a single day, define your additional filters here. +// Example: you want to run an additional comic with the filename 2008-01-01-a-my-new-years-comic.jpg. +// Define an additional filter in the list below: +// +// $comic_filename_filters['secondary'] = "{date}-a*.*"; +// +// Then show the second comic on your page by calling the_comic with your filter name (PHP tags munged +// to maintain valid file syntax): +// +// < ?php the_comic('secondary'); ? > +// +// 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(" and ", 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,true); } + +/** + * Get the next comic from the current one. + */ +function get_next_comic($category = null) { return get_adjacent_comic($category); } + + + +/** + * This is function get_next_comic_permalink + * + * @return mixed false if no next comic permalink, else return the permalink + * + */ +function get_next_comic_permalink() { + $next_comic = get_next_comic(); + if (is_object($next_comic)) { + if (isset($next_comic->ID)) { + return get_permalink($next_comic->ID); + } + } + return false; +} + + +/** + * This is function get_previous_comic_permalink + * + * @return mixed false if there is no permalink or next previous comic + * + */ +function get_previous_comic_permalink() { + $prev_comic = get_previous_comic(); + if (is_object($prev_comic)) { + if (isset($prev_comic->ID)) { + return get_permalink($prev_comic->ID); + } + } + return false; +} + +/** + * Get the adjacent comic from the current one. + * @param int $category The category to use. + * @param boolean $next True if the next chronological comic should be retrieved. + * @return array The WordPress post object for the comic post. + */ +function get_adjacent_comic($category, $next = false) { + global $non_comic_categories; + +// get_all_comic_categories(); + + $categories_to_exclude = $non_comic_categories; + if (!empty($category)) { + $categories_to_exclude = get_string_to_exclude_all_but_provided_categories($category); + } + + 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. +*/ +if (!function_exists('get_comic_path')) { + function get_comic_path($folder = 'comic', $override_post = null, $filter = 'default', $multi = null) { + 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); + + $results = array(); + + if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) { + if (!empty($multi)) { + return $results; + } else { + 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; + } else { + if (($folder == 'archive' || $folder == 'rss')) { + if (($result = get_comic_path('comic', $override_post, $filter)) !== false) { + return get_option('home') . '/' . $result; + } + } + } + return false; +} + +/** + * get_comic_filename + * returns the filename of the comic for the individual date. + * + */ +function get_comic_filename($folder = 'comic', $override_post = null, $filter = 'default') { + if (($result = get_comic_path($folder, $override_post, $filter)) !== false) { + return $result; + } +} + +/** + * Return a list of the comic categories with a negative value for exclusions + * NOTE: need a pre - negative for the first one + */ +function exclude_comic_categories() { + global $all_comic_categories_as_string; + if (empty($all_comic_categories_as_string)) get_all_comic_categories_as_cat_string(); + $returnstring = str_replace(",",",-",$all_comic_categories_as_string); + return $returnstring; +} + +/** + * 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_filename($filter = 'default') { return get_comic_filename('comic',null, $filter); } + +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() ?>

    'Left Sidebar','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Right Sidebar','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Above Header','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Header','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Menubar','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Over Comic','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Left of Comic','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Right of Comic','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Under Comic','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Over Blog','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Blog','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Under Blog','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Footer','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); + register_sidebar(array('name'=>'Drop Bar','before_widget' => '
    • ','after_widget' => '
    ','before_title' => '

    ', 'after_title' => '

    ' )); +} + + +function widget_comicpress_archive_dropdown() { ?> +
      +
    • + +
    • +
    + ", "
      » ", $listcats); + echo $listcats; +} + + +/** + * This is function comicpress_current_theme_version + * + * @return mixed return straight current theme version # + * + */ +function comicpress_current_theme_version() { + $themes = get_themes(); + $current_theme = get_current_theme(); + return $themes[$current_theme]['Version']; +} + + +/** + * This is function comicpress_is_active_sidebar + * + * @param $name - sidebar name made with register_sidebar(array('name'=>'Name of Sidebar'), + * use 'Sidebar 1' .. # if no sidebar names specified. + * @return true if sidebar with $name has widgets, false if not. + * + */ +function comicpress_is_active_sidebar( $name ) { + global $wp_registered_sidebars, $_wp_sidebars_widgets; + $i = 1; + foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) { + if ( $name == $registered_sidebar['name'] && !empty($_wp_sidebars_widgets[sanitize_title("sidebar-$i")]) ) + return true; + $i++; + } + return false; +} + ?> \ No newline at end of file diff --git a/functions/adminnotes.php b/functions/adminnotes.php index 875a673..c553f62 100644 --- a/functions/adminnotes.php +++ b/functions/adminnotes.php @@ -1,20 +1,20 @@ -'.$content.'
    '; - return ''; -} - - +'.$content.'
    '; + return ''; +} + + ?> \ No newline at end of file diff --git a/functions/checkbrowser.php b/functions/checkbrowser.php index 006c6c7..2cf6561 100644 --- a/functions/checkbrowser.php +++ b/functions/checkbrowser.php @@ -1,37 +1,37 @@ - tag where you can then do .ie #page and do things specific - * for each browser type. - * - * The second is you can write code specific for a particular browser. - * - * example: if (reset(browser_body_class()) == 'ie') { - * - * the reset() portion resets the array to a string. - * - */ - -add_filter('body_class','browser_body_class'); - -function browser_body_class($classes = '') { - global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; - - if($is_lynx) $classes[] = 'lynx'; - elseif($is_gecko) $classes[] = 'gecko'; - elseif($is_opera) $classes[] = 'opera'; - elseif($is_NS4) $classes[] = 'ns4'; - elseif($is_safari) $classes[] = 'safari'; - elseif($is_chrome) $classes[] = 'chrome'; - elseif($is_IE) $classes[] = 'ie'; - else $classes[] = 'unknown'; - - if($is_iphone) $classes[] = 'iphone'; - return $classes; -} - - + tag where you can then do .ie #page and do things specific + * for each browser type. + * + * The second is you can write code specific for a particular browser. + * + * example: if (reset(browser_body_class()) == 'ie') { + * + * the reset() portion resets the array to a string. + * + */ + +add_filter('body_class','browser_body_class'); + +function browser_body_class($classes = '') { + global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; + + if($is_lynx) $classes[] = 'lynx'; + elseif($is_gecko) $classes[] = 'gecko'; + elseif($is_opera) $classes[] = 'opera'; + elseif($is_NS4) $classes[] = 'ns4'; + elseif($is_safari) $classes[] = 'safari'; + elseif($is_chrome) $classes[] = 'chrome'; + elseif($is_IE) $classes[] = 'ie'; + else $classes[] = 'unknown'; + + if($is_iphone) $classes[] = 'iphone'; + return $classes; +} + + ?> \ No newline at end of file diff --git a/functions/comment-functions.php b/functions/comment-functions.php index beddf39..9424b0c 100644 --- a/functions/comment-functions.php +++ b/functions/comment-functions.php @@ -1,242 +1,242 @@ -'; - - if(function_exists('get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { - echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), get_avatar(get_comment_author_email(), 64)); - } else { - if ($comment_type == 'pingback' || $comment_type == 'trackback') { - echo ''; - } else { - echo ''; - } - } - - if($url == true && $url != 'http://') - echo ''; -} - -/** -* Properly displays comment author name/link -* bbPress and other external systems sometimes don't set a display name for registrations -* WP has problems if no display name is set -* WP gives registered users URL of 'http://' if none is set -* -* @since 0.2.2 -*/ -function comicpress_comment_author() { - global $comment; - - $author = get_comment_author(); - $url = get_comment_author_url(); - - /* - * Registered members w/o URL defaults to 'http://' - */ - if($url == 'http://') - $url = false; - - /* - * Registered through bbPress sometimes leaves no display name - * Bug with bbPress 0.9 series and WP 2.5 (no later testing) - * 'Anonymous' should be localized according to WP, not the theme - */ - if($comment->user_id > 0) : - $user = get_userdata($comment->user_id); - if($user->display_name) - $author = $user->display_name; - elseif($user->user_nickname) - $author = $user->nickname; - elseif($user->user_nicename) - $author = $user->user_nicename; - else - $author = $user->user_login; - endif; - - /* - * Display link and cite if URL is set - * Also properly cites trackbacks/pingbacks - */ - if($url) : - $output = ''; - $output .= '' . $author . ''; - $output .= ''; - else : - $output = ''; - $output .= $author; - $output .= ''; - endif; - - echo $output; -} - -/** -* Displays individual comments -* Uses the callback parameter for wp_list_comments -* Overwrites the default display of comments -* -* @since 0.2.3 -* -* @param $comment The comment variable -* @param $args Array of arguments passed from wp_list_comments -* @param $depth What level the particular comment is -*/ -function comicpress_comments_callback($comment, $args, $depth) { - $GLOBALS['comment'] = $comment; - $GLOBALS['comment_depth'] = $depth; - ?> - -
  • - - - - - - -
    - -
    - -
    - '; -} - -/** -* Sets a class for each comment -* Sets alt, odd/even, and author/user classes -* Adds author, user, and reader classes -* -* @since 0.2 -*/ -function comicpress_comment_class() { - global $comment; - static $comment_alt; - $classes = array(); - - if(function_exists('get_comment_class')) - $classes = get_comment_class(); - - $classes[] = get_comment_type();; - - /* - * User classes - */ - if($comment->user_id > 0 && $user = get_userdata($comment->user_id)) : - - $classes[] = 'user user-' . $user->user_nicename; - - if($post = get_post($post_id)) : - if($comment->user_id === $post->post_author) - $classes[] = 'author author-' . $user->user_nicename; - endif; - else : - $classes[] = 'reader'; - endif; - - /* - * Alt classes - */ - if($comment_alt++ % 2) : - $classes[] = 'even'; - $classes[] = 'alt'; - else : - $classes[] = 'odd'; - endif; - - /* - * http://microid.org - */ - $email = get_comment_author_email(); - $url = get_comment_author_url(); - if(!empty($email) && !empty($url)) { - $microid = 'microid-mailto+http:sha1:' . sha1(sha1('mailto:'.$email).sha1($url)); - $classes[] = $microid; - } - $classes = join(' ', $classes); - echo $classes; -} - -function list_pings($comment, $args, $depth) { - $GLOBALS['comment'] = $comment; ?> -
  • -
  • -'; + + if(function_exists('get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { + echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), get_avatar(get_comment_author_email(), 64)); + } else { + if ($comment_type == 'pingback' || $comment_type == 'trackback') { + echo ''; + } else { + echo ''; + } + } + + if($url == true && $url != 'http://') + echo ''; +} + +/** +* Properly displays comment author name/link +* bbPress and other external systems sometimes don't set a display name for registrations +* WP has problems if no display name is set +* WP gives registered users URL of 'http://' if none is set +* +* @since 0.2.2 +*/ +function comicpress_comment_author() { + global $comment; + + $author = get_comment_author(); + $url = get_comment_author_url(); + + /* + * Registered members w/o URL defaults to 'http://' + */ + if($url == 'http://') + $url = false; + + /* + * Registered through bbPress sometimes leaves no display name + * Bug with bbPress 0.9 series and WP 2.5 (no later testing) + * 'Anonymous' should be localized according to WP, not the theme + */ + if($comment->user_id > 0) : + $user = get_userdata($comment->user_id); + if($user->display_name) + $author = $user->display_name; + elseif($user->user_nickname) + $author = $user->nickname; + elseif($user->user_nicename) + $author = $user->user_nicename; + else + $author = $user->user_login; + endif; + + /* + * Display link and cite if URL is set + * Also properly cites trackbacks/pingbacks + */ + if($url) : + $output = ''; + $output .= '' . $author . ''; + $output .= ''; + else : + $output = ''; + $output .= $author; + $output .= ''; + endif; + + echo $output; +} + +/** +* Displays individual comments +* Uses the callback parameter for wp_list_comments +* Overwrites the default display of comments +* +* @since 0.2.3 +* +* @param $comment The comment variable +* @param $args Array of arguments passed from wp_list_comments +* @param $depth What level the particular comment is +*/ +function comicpress_comments_callback($comment, $args, $depth) { + $GLOBALS['comment'] = $comment; + $GLOBALS['comment_depth'] = $depth; + ?> + +
  • + + + + + + +
    + +
    + +
    + '; +} + +/** +* Sets a class for each comment +* Sets alt, odd/even, and author/user classes +* Adds author, user, and reader classes +* +* @since 0.2 +*/ +function comicpress_comment_class() { + global $comment; + static $comment_alt; + $classes = array(); + + if(function_exists('get_comment_class')) + $classes = get_comment_class(); + + $classes[] = get_comment_type();; + + /* + * User classes + */ + if($comment->user_id > 0 && $user = get_userdata($comment->user_id)) : + + $classes[] = 'user user-' . $user->user_nicename; + + if($post = get_post($post_id)) : + if($comment->user_id === $post->post_author) + $classes[] = 'author author-' . $user->user_nicename; + endif; + else : + $classes[] = 'reader'; + endif; + + /* + * Alt classes + */ + if($comment_alt++ % 2) : + $classes[] = 'even'; + $classes[] = 'alt'; + else : + $classes[] = 'odd'; + endif; + + /* + * http://microid.org + */ + $email = get_comment_author_email(); + $url = get_comment_author_url(); + if(!empty($email) && !empty($url)) { + $microid = 'microid-mailto+http:sha1:' . sha1(sha1('mailto:'.$email).sha1($url)); + $classes[] = $microid; + } + $classes = join(' ', $classes); + echo $classes; +} + +function list_pings($comment, $args, $depth) { + $GLOBALS['comment'] = $comment; ?> +
  • +
  • + \ No newline at end of file diff --git a/functions/custom-image-header.php b/functions/custom-image-header.php index e44472a..957a894 100644 --- a/functions/custom-image-header.php +++ b/functions/custom-image-header.php @@ -1,68 +1,68 @@ - - - - - + + + + \ No newline at end of file diff --git a/functions/displayblogpost.php b/functions/displayblogpost.php index 9536fbc..1668f30 100644 --- a/functions/displayblogpost.php +++ b/functions/displayblogpost.php @@ -1,51 +1,51 @@ - - -
    - -
    -
    - -
    - - -
    -
    -
    - '); ?> Posted in: -
    - -
    - -
    -
    -
    -
    - + +
    + +
    +
    + +
    + + +
    +
    +
    + '); ?> Posted in: +
    + +
    + +
    +
    +
    +
    + \ No newline at end of file diff --git a/functions/displaycomic.php b/functions/displaycomic.php index 8a83081..bb778ce 100644 --- a/functions/displaycomic.php +++ b/functions/displaycomic.php @@ -1,47 +1,47 @@ - - " height=""> - - - " height=""> - -
    -

    Get Flash!

    -

    Get Adobe Flash player

    -
    - -
    - -
    - - Anomaly Says, ""<?php the_title() ?> - - <?php the_title() ?> - - - Anomaly Says, ""<?php the_title() ?> - - <?php the_title() ?> - + " height=""> + + + " height=""> + +
    +

    Get Flash!

    +

    Get Adobe Flash player

    +
    + +
    + +
    + + Anomaly Says, ""<?php the_title() ?> + + <?php the_title() ?> + + + Anomaly Says, ""<?php the_title() ?> + + <?php the_title() ?> + \ No newline at end of file diff --git a/functions/displaycomicpost.php b/functions/displaycomicpost.php index 39de06c..16afbf8 100644 --- a/functions/displaycomicpost.php +++ b/functions/displaycomicpost.php @@ -1,55 +1,55 @@ - - -
    -
    -
    - -
    - - -
    - -
    -
    - '); ?> -
    - -
    - -
    -
    -
    -
    - - + +
    +
    +
    + +
    + + +
    + +
    +
    + '); ?> +
    + +
    + +
    +
    +
    +
    + + \ No newline at end of file diff --git a/functions/dropbar.php b/functions/dropbar.php index e936db4..9c45df2 100644 --- a/functions/dropbar.php +++ b/functions/dropbar.php @@ -1,33 +1,33 @@ - -
    -
    -
    - -
    -
    -
    -
    -
    - - - +
    +
    +
    + +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/functions/membersonly.php b/functions/membersonly.php index d78cd9e..9a873aa 100644 --- a/functions/membersonly.php +++ b/functions/membersonly.php @@ -1,73 +1,73 @@ -ID) ) { - $is_member = get_usermeta($current_user->ID,'comicpress-is-member'); - if ( ( $is_member == 'yes' || current_user_can( 'publish_posts' ) ) && !is_feed() ) { - return '
    '.$content.'
    '; - } - } - return ''; -} - -function comicpress_profile_members_only() { - global $profileuser, $current_user, $errormsg; - $comicpress_is_member = get_usermeta($profileuser->ID,'comicpress-is-member'); - if (empty($comicpress_is_member)) $comicpress_is_member = 'no'; - ?> -

    Member of

    - - - - - -
    - - -    - - - -
    -ID) ) { + $is_member = get_usermeta($current_user->ID,'comicpress-is-member'); + if ( ( $is_member == 'yes' || current_user_can( 'publish_posts' ) ) && !is_feed() ) { + return '
    '.$content.'
    '; + } + } + return ''; +} + +function comicpress_profile_members_only() { + global $profileuser, $current_user, $errormsg; + $comicpress_is_member = get_usermeta($profileuser->ID,'comicpress-is-member'); + if (empty($comicpress_is_member)) $comicpress_is_member = 'no'; + ?> +

    Member of

    + + + + + +
    + + +    + + + +
    + \ No newline at end of file diff --git a/functions/multicomics.php b/functions/multicomics.php index dbf06be..a545133 100644 --- a/functions/multicomics.php +++ b/functions/multicomics.php @@ -1,34 +1,34 @@ - -
    - <?php the_title(); ?> -
    - -
    - <?php the_title(); ?> -
    - +
    + <?php the_title(); ?> +
    + +
    + <?php the_title(); ?> +
    + \ No newline at end of file diff --git a/functions/rawformatting.php b/functions/rawformatting.php index 8c57206..84b01aa 100644 --- a/functions/rawformatting.php +++ b/functions/rawformatting.php @@ -1,35 +1,35 @@ - \ No newline at end of file diff --git a/functions/relatedcomics.php b/functions/relatedcomics.php index 267c468..0493b79 100644 --- a/functions/relatedcomics.php +++ b/functions/relatedcomics.php @@ -1,72 +1,72 @@ - '5', - ), $atts)); - - global $wpdb, $post, $table_prefix, $category_tree; - - if ($post->ID) { - // Get tags - $tags = wp_get_post_tags($post->ID); - $tagsarray = array(); - foreach ($tags as $tag) { - $tagsarray[] = $tag->term_id; - } - $tagslist = implode(',', $tagsarray); - if (empty($tagslist)) return; - if (empty($limit)) $limit = 5; - // Do the query - $q = "SELECT p.*, count(tr.object_id) as count - FROM $wpdb->term_taxonomy AS tt, $wpdb->term_relationships AS tr, $wpdb->posts AS p WHERE tt.taxonomy ='post_tag' AND tt.term_taxonomy_id = tr.term_taxonomy_id AND tr.object_id = p.ID AND tt.term_id IN ($tagslist) AND p.ID != $post->ID - AND p.post_status = 'publish' - AND p.post_date_gmt < NOW() - GROUP BY tr.object_id - ORDER BY count DESC, p.post_date_gmt DESC - LIMIT $limit;"; - - $related = $wpdb->get_results($q); - if ( $related ) { - $retval = ' -'; - return $retval; - } - return; -} -add_shortcode('related_comics', 'related_comics_shortcode'); - - + '5', + ), $atts)); + + global $wpdb, $post, $table_prefix, $category_tree; + + if ($post->ID) { + // Get tags + $tags = wp_get_post_tags($post->ID); + $tagsarray = array(); + foreach ($tags as $tag) { + $tagsarray[] = $tag->term_id; + } + $tagslist = implode(',', $tagsarray); + if (empty($tagslist)) return; + if (empty($limit)) $limit = 5; + // Do the query + $q = "SELECT p.*, count(tr.object_id) as count + FROM $wpdb->term_taxonomy AS tt, $wpdb->term_relationships AS tr, $wpdb->posts AS p WHERE tt.taxonomy ='post_tag' AND tt.term_taxonomy_id = tr.term_taxonomy_id AND tr.object_id = p.ID AND tt.term_id IN ($tagslist) AND p.ID != $post->ID + AND p.post_status = 'publish' + AND p.post_date_gmt < NOW() + GROUP BY tr.object_id + ORDER BY count DESC, p.post_date_gmt DESC + LIMIT $limit;"; + + $related = $wpdb->get_results($q); + if ( $related ) { + $retval = ' +'; + return $retval; + } + return; +} +add_shortcode('related_comics', 'related_comics_shortcode'); + + ?> \ No newline at end of file diff --git a/functions/relatedposts.php b/functions/relatedposts.php index 5106d76..4aeeeb3 100644 --- a/functions/relatedposts.php +++ b/functions/relatedposts.php @@ -1,112 +1,112 @@ - '5', - ), $atts)); - - global $wpdb, $post, $table_prefix, $category_tree; - - if ($post->ID) { - // Get tags - $tags = wp_get_post_tags($post->ID); - $tagsarray = array(); - foreach ($tags as $tag) { - $tagsarray[] = $tag->term_id; - } - $tagslist = implode(',', $tagsarray); - if (empty($tagslist)) return; - if (empty($limit)) $limit = 5; - // Do the query - $q = "SELECT p.*, count(tr.object_id) as count - FROM $wpdb->term_taxonomy AS tt, $wpdb->term_relationships AS tr, $wpdb->posts AS p WHERE tt.taxonomy ='post_tag' AND tt.term_taxonomy_id = tr.term_taxonomy_id AND tr.object_id = p.ID AND tt.term_id IN ($tagslist) AND p.ID != $post->ID - AND p.post_status = 'publish' - AND p.post_date_gmt < NOW() - GROUP BY tr.object_id - ORDER BY count DESC, p.post_date_gmt DESC - LIMIT $limit;"; - - $related = $wpdb->get_results($q); - $retval = ' - '; - return $retval; - } - return; -} -/* -function related_posts_shortcode( $atts = '' ) { - extract(shortcode_atts(array( - 'limit' => '5', - ), $atts)); - - global $wp_query, $wpdb, $post, $non_comic_categories; - if ($post->ID) { - if (empty($limit)) $limit = 5; - - //for use in the loop, list 5 post titles related to first tag on current post - $tags = wp_get_post_tags($post->ID); - $tagIDs = array(); - if ($tags) { - $tagcount = count($tags); - for ($i = 0; $i < $tagcount; $i++) { - $tagIDs[$i] = $tags[$i]->term_id; - } - $args=array( - 'category__in' => array(1,3,31), - 'tag__and' => $tagIDs, - 'showposts'=>5, - 'post__not_in' => array($post->ID), - 'caller_get_posts'=>1 - ); - $my_query = new WP_Query($args); - $temp_query = $wp_query; - $wp_query->in_the_loop = true; - if( $my_query->have_posts() ) { - while ($my_query->have_posts()) : $my_query->the_post(); ?> -
  • - '5', + ), $atts)); + + global $wpdb, $post, $table_prefix, $category_tree; + + if ($post->ID) { + // Get tags + $tags = wp_get_post_tags($post->ID); + $tagsarray = array(); + foreach ($tags as $tag) { + $tagsarray[] = $tag->term_id; + } + $tagslist = implode(',', $tagsarray); + if (empty($tagslist)) return; + if (empty($limit)) $limit = 5; + // Do the query + $q = "SELECT p.*, count(tr.object_id) as count + FROM $wpdb->term_taxonomy AS tt, $wpdb->term_relationships AS tr, $wpdb->posts AS p WHERE tt.taxonomy ='post_tag' AND tt.term_taxonomy_id = tr.term_taxonomy_id AND tr.object_id = p.ID AND tt.term_id IN ($tagslist) AND p.ID != $post->ID + AND p.post_status = 'publish' + AND p.post_date_gmt < NOW() + GROUP BY tr.object_id + ORDER BY count DESC, p.post_date_gmt DESC + LIMIT $limit;"; + + $related = $wpdb->get_results($q); + $retval = ' + '; + return $retval; + } + return; +} +/* +function related_posts_shortcode( $atts = '' ) { + extract(shortcode_atts(array( + 'limit' => '5', + ), $atts)); + + global $wp_query, $wpdb, $post, $non_comic_categories; + if ($post->ID) { + if (empty($limit)) $limit = 5; + + //for use in the loop, list 5 post titles related to first tag on current post + $tags = wp_get_post_tags($post->ID); + $tagIDs = array(); + if ($tags) { + $tagcount = count($tags); + for ($i = 0; $i < $tagcount; $i++) { + $tagIDs[$i] = $tags[$i]->term_id; + } + $args=array( + 'category__in' => array(1,3,31), + 'tag__and' => $tagIDs, + 'showposts'=>5, + 'post__not_in' => array($post->ID), + 'caller_get_posts'=>1 + ); + $my_query = new WP_Query($args); + $temp_query = $wp_query; + $wp_query->in_the_loop = true; + if( $my_query->have_posts() ) { + while ($my_query->have_posts()) : $my_query->the_post(); ?> +
  • + \ No newline at end of file diff --git a/functions/searchcustomfields.php b/functions/searchcustomfields.php index 2e741ce..b71f53f 100644 --- a/functions/searchcustomfields.php +++ b/functions/searchcustomfields.php @@ -1,58 +1,58 @@ -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(get_template_directory() . '/search-transcript.php') ) - $template = get_template_directory() . '/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; -} - - +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(get_template_directory() . '/search-transcript.php') ) + $template = get_template_directory() . '/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/functions/syndication.php b/functions/syndication.php index 35fd73a..3c847a3 100644 --- a/functions/syndication.php +++ b/functions/syndication.php @@ -1,59 +1,59 @@ - \ No newline at end of file diff --git a/functions/userpages.php b/functions/userpages.php index 84ad894..b938ba7 100644 --- a/functions/userpages.php +++ b/functions/userpages.php @@ -1,46 +1,46 @@ -author_base = 'user'; - $wp_rewrite->flush_rules(); -} - -function cp_rewrite_user_to_author() { - global $wp_rewrite; - $wp_rewrite->author_base = 'author'; - $wp_rewrite->init(); - $wp_rewrite->flush_rules(); -} - -function cp_theme_switch() { - global $wp_rewrite; - if ($wp_rewrite->author_base != 'user') { - add_action('init','cp_rewrite_author_to_user',1); - } else { - add_action('init','cp_rewrite_user_to_author',1); - } -} -*/ - -// Flush the rules if someone switchs the theme. -add_action('switch_themes', array(&$GLOBALS['wp_rewrite'], 'init') ); - -/* -add_action('init','cp_reset_rules'); - -function cp_reset_rules() { - global $wp_rewrite; - $wp_rewrite->init(); - $wp_rewrite->flush_rules(); -} -*/ +author_base = 'user'; + $wp_rewrite->flush_rules(); +} + +function cp_rewrite_user_to_author() { + global $wp_rewrite; + $wp_rewrite->author_base = 'author'; + $wp_rewrite->init(); + $wp_rewrite->flush_rules(); +} + +function cp_theme_switch() { + global $wp_rewrite; + if ($wp_rewrite->author_base != 'user') { + add_action('init','cp_rewrite_author_to_user',1); + } else { + add_action('init','cp_rewrite_user_to_author',1); + } +} +*/ + +// Flush the rules if someone switchs the theme. +add_action('switch_themes', array(&$GLOBALS['wp_rewrite'], 'init') ); + +/* +add_action('init','cp_reset_rules'); + +function cp_reset_rules() { + global $wp_rewrite; + $wp_rewrite->init(); + $wp_rewrite->flush_rules(); +} +*/ ?> \ No newline at end of file diff --git a/functions/wp-pagenavi.php b/functions/wp-pagenavi.php index b0297a4..63801ff 100644 --- a/functions/wp-pagenavi.php +++ b/functions/wp-pagenavi.php @@ -1,158 +1,158 @@ -request; - $posts_per_page = intval(get_query_var('posts_per_page')); - $paged = intval(get_query_var('paged')); - $pagenavi_options = get_option('pagenavi_options'); - $numposts = $wp_query->found_posts; - $max_page = $wp_query->max_num_pages; - /* - $numposts = 0; - if(strpos(get_query_var('tag'), " ")) { - preg_match('#^(.*)\sLIMIT#siU', $request, $matches); - $fromwhere = $matches[1]; - $results = $wpdb->get_results($fromwhere); - $numposts = count($results); - } else { - preg_match('#FROM\s*+(.+?)\s+(GROUP BY|ORDER BY)#si', $request, $matches); - $fromwhere = $matches[1]; - $numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere"); - } - $max_page = ceil($numposts/$posts_per_page); - */ - if(empty($paged) || $paged == 0) { - $paged = 1; - } - $pages_to_show = intval($pagenavi_options['num_pages']); - $pages_to_show_minus_1 = $pages_to_show-1; - $half_page_start = floor($pages_to_show_minus_1/2); - $half_page_end = ceil($pages_to_show_minus_1/2); - $start_page = $paged - $half_page_start; - if($start_page <= 0) { - $start_page = 1; - } - $end_page = $paged + $half_page_end; - if(($end_page - $start_page) != $pages_to_show_minus_1) { - $end_page = $start_page + $pages_to_show_minus_1; - } - if($end_page > $max_page) { - $start_page = $max_page - $pages_to_show_minus_1; - $end_page = $max_page; - } - if($start_page <= 0) { - $start_page = 1; - } - if($max_page > 1 || intval($pagenavi_options['always_show']) == 1) { - $pages_text = str_replace("%CURRENT_PAGE%", number_format_i18n($paged), $pagenavi_options['pages_text']); - $pages_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pages_text); - echo $before.'
    '."\n"; - switch(intval($pagenavi_options['style'])) { - case 1: - if(!empty($pages_text)) { - echo ' '.$pages_text.' '; - } - if ($start_page >= 2 && $pages_to_show < $max_page) { - $first_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['first_text']); - echo ' '.$first_page_text.' '; - if(!empty($pagenavi_options['dotleft_text'])) { - echo ' '.$pagenavi_options['dotleft_text'].' '; - } - } - previous_posts_link($pagenavi_options['prev_text']); - for($i = $start_page; $i <= $end_page; $i++) { - if($i == $paged) { - $current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']); - echo ' '.$current_page_text.' '; - } else { - $page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']); - echo ' '.$page_text.' '; - } - } - next_posts_link($pagenavi_options['next_text'], $max_page); - if ($end_page < $max_page) { - if(!empty($pagenavi_options['dotright_text'])) { - echo ' '.$pagenavi_options['dotright_text'].' '; - } - $last_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['last_text']); - echo ' '.$last_page_text.' '; - } - break; - case 2; - echo '
    '."\n"; - echo '\n"; - echo "
    \n"; - break; - } - echo '
    '.$after."\n"; - } - } -} - - -### Function: Page Navigation Options -add_action('activate_wp-pagenavi/wp-pagenavi.php', 'pagenavi_init'); -function pagenavi_init() { - // Add Options - $pagenavi_options = array(); - $pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','wp-pagenavi'); - $pagenavi_options['current_text'] = '%PAGE_NUMBER%'; - $pagenavi_options['page_text'] = '%PAGE_NUMBER%'; - $pagenavi_options['first_text'] = __('« First','wp-pagenavi'); - $pagenavi_options['last_text'] = __('Last »','wp-pagenavi'); - $pagenavi_options['next_text'] = __('»','wp-pagenavi'); - $pagenavi_options['prev_text'] = __('«','wp-pagenavi'); - $pagenavi_options['dotright_text'] = __('...','wp-pagenavi'); - $pagenavi_options['dotleft_text'] = __('...','wp-pagenavi'); - $pagenavi_options['style'] = 1; - $pagenavi_options['num_pages'] = 5; - $pagenavi_options['always_show'] = 0; - add_option('pagenavi_options', $pagenavi_options, 'PageNavi Options'); -} +request; + $posts_per_page = intval(get_query_var('posts_per_page')); + $paged = intval(get_query_var('paged')); + $pagenavi_options = get_option('pagenavi_options'); + $numposts = $wp_query->found_posts; + $max_page = $wp_query->max_num_pages; + /* + $numposts = 0; + if(strpos(get_query_var('tag'), " ")) { + preg_match('#^(.*)\sLIMIT#siU', $request, $matches); + $fromwhere = $matches[1]; + $results = $wpdb->get_results($fromwhere); + $numposts = count($results); + } else { + preg_match('#FROM\s*+(.+?)\s+(GROUP BY|ORDER BY)#si', $request, $matches); + $fromwhere = $matches[1]; + $numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere"); + } + $max_page = ceil($numposts/$posts_per_page); + */ + if(empty($paged) || $paged == 0) { + $paged = 1; + } + $pages_to_show = intval($pagenavi_options['num_pages']); + $pages_to_show_minus_1 = $pages_to_show-1; + $half_page_start = floor($pages_to_show_minus_1/2); + $half_page_end = ceil($pages_to_show_minus_1/2); + $start_page = $paged - $half_page_start; + if($start_page <= 0) { + $start_page = 1; + } + $end_page = $paged + $half_page_end; + if(($end_page - $start_page) != $pages_to_show_minus_1) { + $end_page = $start_page + $pages_to_show_minus_1; + } + if($end_page > $max_page) { + $start_page = $max_page - $pages_to_show_minus_1; + $end_page = $max_page; + } + if($start_page <= 0) { + $start_page = 1; + } + if($max_page > 1 || intval($pagenavi_options['always_show']) == 1) { + $pages_text = str_replace("%CURRENT_PAGE%", number_format_i18n($paged), $pagenavi_options['pages_text']); + $pages_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pages_text); + echo $before.'
    '."\n"; + switch(intval($pagenavi_options['style'])) { + case 1: + if(!empty($pages_text)) { + echo ' '.$pages_text.' '; + } + if ($start_page >= 2 && $pages_to_show < $max_page) { + $first_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['first_text']); + echo ' '.$first_page_text.' '; + if(!empty($pagenavi_options['dotleft_text'])) { + echo ' '.$pagenavi_options['dotleft_text'].' '; + } + } + previous_posts_link($pagenavi_options['prev_text']); + for($i = $start_page; $i <= $end_page; $i++) { + if($i == $paged) { + $current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']); + echo ' '.$current_page_text.' '; + } else { + $page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']); + echo ' '.$page_text.' '; + } + } + next_posts_link($pagenavi_options['next_text'], $max_page); + if ($end_page < $max_page) { + if(!empty($pagenavi_options['dotright_text'])) { + echo ' '.$pagenavi_options['dotright_text'].' '; + } + $last_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['last_text']); + echo ' '.$last_page_text.' '; + } + break; + case 2; + echo '
    '."\n"; + echo '\n"; + echo "
    \n"; + break; + } + echo '
    '.$after."\n"; + } + } +} + + +### Function: Page Navigation Options +add_action('activate_wp-pagenavi/wp-pagenavi.php', 'pagenavi_init'); +function pagenavi_init() { + // Add Options + $pagenavi_options = array(); + $pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','wp-pagenavi'); + $pagenavi_options['current_text'] = '%PAGE_NUMBER%'; + $pagenavi_options['page_text'] = '%PAGE_NUMBER%'; + $pagenavi_options['first_text'] = __('« First','wp-pagenavi'); + $pagenavi_options['last_text'] = __('Last »','wp-pagenavi'); + $pagenavi_options['next_text'] = __('»','wp-pagenavi'); + $pagenavi_options['prev_text'] = __('«','wp-pagenavi'); + $pagenavi_options['dotright_text'] = __('...','wp-pagenavi'); + $pagenavi_options['dotleft_text'] = __('...','wp-pagenavi'); + $pagenavi_options['style'] = 1; + $pagenavi_options['num_pages'] = 5; + $pagenavi_options['always_show'] = 0; + add_option('pagenavi_options', $pagenavi_options, 'PageNavi Options'); +} ?> \ No newline at end of file diff --git a/gecko_style.css b/gecko_style.css index b57b43c..2c0b6f3 100644 --- a/gecko_style.css +++ b/gecko_style.css @@ -1,29 +1,29 @@ -/* ComicPress Custom CSS over-rides for [ gecko ]: ComicPress - 2.8 */ - -html { overflow-y: scroll; } - -a:focus { outline: 0; } - -.comicarchiveframe { - -moz-opacity: 0.99; /* mozilla, netscape */ - opacity:0.99; /* firefox, opera, safari, chrome */ -} - - .comicarchiveframe:hover { - -moz-opacity: 0.7; /* mozilla, netscape */ - opacity:0.70; /* firefox, opera, safari, chrome */ - } - - .imagenav-link img { - -moz-opacity: 0.5; /* mozilla, netscape, gecko */ - opacity:0.5; /* firefox, opera, safari, chrome */ - } - - .imagenav-link img:hover { - -moz-opacity: 0; /* mozilla, netscape */ - opacity:0.5; /* firefox, opera, safari, chrome */ - } - -::-moz-selection { - background: #a1c0d9; /* Firefox */ +/* ComicPress Custom CSS over-rides for [ gecko ]: ComicPress - 2.8 */ + +html { overflow-y: scroll; } + +a:focus { outline: 0; } + +.comicarchiveframe { + -moz-opacity: 0.99; /* mozilla, netscape */ + opacity:0.99; /* firefox, opera, safari, chrome */ +} + + .comicarchiveframe:hover { + -moz-opacity: 0.7; /* mozilla, netscape */ + opacity:0.70; /* firefox, opera, safari, chrome */ + } + + .imagenav-link img { + -moz-opacity: 0.5; /* mozilla, netscape, gecko */ + opacity:0.5; /* firefox, opera, safari, chrome */ + } + + .imagenav-link img:hover { + -moz-opacity: 0; /* mozilla, netscape */ + opacity:0.5; /* firefox, opera, safari, chrome */ + } + +::-moz-selection { + background: #a1c0d9; /* Firefox */ } \ No newline at end of file diff --git a/header.php b/header.php index 277d067..db688ef 100644 --- a/header.php +++ b/header.php @@ -1,54 +1,54 @@ - -> - - - <?php - bloginfo('name'); - if (is_home () ) { - echo " - "; bloginfo('description'); - } elseif (is_category() ) { - echo " - "; single_cat_title(); - } elseif (is_single() || is_page() ) { - echo " - "; single_post_title(); - } elseif (is_search() ) { - echo " search results: "; echo wp_specialchars($s); - } else { - echo " - "; wp_title('',true); - } - ?> - - - - - - - - - - - -> - - - - - -
    - -
    - - - - + +> + + + <?php + bloginfo('name'); + if (is_home () ) { + echo " - "; bloginfo('description'); + } elseif (is_category() ) { + echo " - "; single_cat_title(); + } elseif (is_single() || is_page() ) { + echo " - "; single_post_title(); + } elseif (is_search() ) { + echo " search results: "; echo wp_specialchars($s); + } else { + echo " - "; wp_title('',true); + } + ?> + + + + + + + + + + + +> + + + + + +
    + +
    + + + + diff --git a/ie_style.css b/ie_style.css index d31667a..f5f61de 100644 --- a/ie_style.css +++ b/ie_style.css @@ -1,13 +1,13 @@ -/* These overrides are for the IE browser, fixes and what not to make it work. */ - -html { overflow-y: scroll; } - -#menubar { - zoom: 1; /* IE fix, allows for variable height menu */ - } - -tt a:hover -{ - z-index:1000; color: #aaaaff; - background-color: Transparent; +/* These overrides are for the IE browser, fixes and what not to make it work. */ + +html { overflow-y: scroll; } + +#menubar { + zoom: 1; /* IE fix, allows for variable height menu */ + } + +tt a:hover +{ + z-index:1000; color: #aaaaff; + background-color: Transparent; } \ No newline at end of file diff --git a/image.php b/image.php index 1faa25a..442798c 100644 --- a/image.php +++ b/image.php @@ -1,96 +1,96 @@ - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - - - -
    -
    -

    - post_parent) ?> -

    - - -
    -
    -
    - -
    -
    - ‹ -
    - -
    - -
    -
    - -
    -
    - › -
    - -
    -
    -
    - -
    -
    -
    - - - -
    -
    -

    Sorry, no image matched your criteria.

    -
    -
    -
    - - -
    -
    -
    - - - - -
    -
    - - + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + + + +
    +
    +

    + post_parent) ?> +

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

    Sorry, no image matched your criteria.

    +
    +
    +
    + + +
    +
    +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/index.php b/index.php index 8abfc61..9f056b0 100644 --- a/index.php +++ b/index.php @@ -1,119 +1,119 @@ - - - - - -
    -
    - - - -
    - - - - - - - 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() ?> - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - - - - -
    - - - - - -
    -
    - - - have_posts()) : $comicFrontpage->the_post(); - - display_comic_post(); - - endwhile; ?> - -
    - - -
    -
    - -
    -
    - - - - - - -
    - - - - - -
    -
    - - - - -
    - -
    - - - -
    - - - - -
    -
    - - - - - -
    -
    - + + + + + +
    +
    + + + +
    + + + + + + + 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() ?> + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + + + + + +
    + + + + + +
    +
    + + + have_posts()) : $comicFrontpage->the_post(); + + display_comic_post(); + + endwhile; ?> + +
    + + +
    +
    + +
    +
    + + + + + + +
    + + + + + +
    +
    + + + + +
    + +
    + + + +
    + + + + +
    +
    + + + + + +
    +
    + \ No newline at end of file diff --git a/js/dropbar.js b/js/dropbar.js index aca673d..1055006 100644 --- a/js/dropbar.js +++ b/js/dropbar.js @@ -1,68 +1,68 @@ - - var DropBarMover = new Object(); - DropBarMover.isMouseOver = false; - DropBarMover.isFocus = false; - DropBarMover.timerID = null; - DropBarMover.DropBarInstance = null; - - DropBarMover.mouseOver = function (e) - { - this.isMouseOver = true; - this.adjustDropBar(); - } - DropBarMover.mouseOut = function (e) - { - this.isMouseOver = false; - this.adjustDropBar(); -} - DropBarMover.focus = function (e) - { - this.isFocus = true; - this.adjustDropBar(); -} - DropBarMover.blur = function (e) - { - this.isFocus = false; - this.adjustDropBar(); -} - DropBarMover.adjustDropBar = function() - { - if ( this.timerID == null ) - { - if ( !this.DropBarInstance ) - this.DropBarInstance = document.getElementById('DropBar'); - this.timerID = window.setInterval(function(){ - var Location = DropBarMover.DropBarInstance.style.top; - - Location = parseInt(Location.substr(0,Location.length-2)); - - if ( DropBarMover.isMouseOver || DropBarMover.isFocus ) - { - if ( Location < 0 ) - { - Location+=5; - DropBarMover.DropBarInstance.style.top = Location + 'px'; - } - else - { - window.clearInterval(DropBarMover.timerID); - DropBarMover.timerID = null; - } - } - else - { - if ( Location > -100 ) - { - Location-=5; - DropBarMover.DropBarInstance.style.top = Location + 'px'; - } - else - { - window.clearInterval(DropBarMover.timerID); - DropBarMover.timerID = null; - } - } - - }, 20); - } - } + + var DropBarMover = new Object(); + DropBarMover.isMouseOver = false; + DropBarMover.isFocus = false; + DropBarMover.timerID = null; + DropBarMover.DropBarInstance = null; + + DropBarMover.mouseOver = function (e) + { + this.isMouseOver = true; + this.adjustDropBar(); + } + DropBarMover.mouseOut = function (e) + { + this.isMouseOver = false; + this.adjustDropBar(); +} + DropBarMover.focus = function (e) + { + this.isFocus = true; + this.adjustDropBar(); +} + DropBarMover.blur = function (e) + { + this.isFocus = false; + this.adjustDropBar(); +} + DropBarMover.adjustDropBar = function() + { + if ( this.timerID == null ) + { + if ( !this.DropBarInstance ) + this.DropBarInstance = document.getElementById('DropBar'); + this.timerID = window.setInterval(function(){ + var Location = DropBarMover.DropBarInstance.style.top; + + Location = parseInt(Location.substr(0,Location.length-2)); + + if ( DropBarMover.isMouseOver || DropBarMover.isFocus ) + { + if ( Location < 0 ) + { + Location+=5; + DropBarMover.DropBarInstance.style.top = Location + 'px'; + } + else + { + window.clearInterval(DropBarMover.timerID); + DropBarMover.timerID = null; + } + } + else + { + if ( Location > -100 ) + { + Location-=5; + DropBarMover.DropBarInstance.style.top = Location + 'px'; + } + else + { + window.clearInterval(DropBarMover.timerID); + DropBarMover.timerID = null; + } + } + + }, 20); + } + } diff --git a/js/equalheight.js b/js/equalheight.js index 4dda0e9..e4f0fb4 100644 --- a/js/equalheight.js +++ b/js/equalheight.js @@ -1,15 +1,15 @@ -function equalHeight(group) { - tallest = 0; - group.each(function() { - thisHeight = $(this).height(); - if (thisHeight > tallest) { - tallest = thisHeight; - } - }); - group.height(tallest); -} - - -$(document).ready(function() { - equalHeight($(".sidebar")); -}); +function equalHeight(group) { + tallest = 0; + group.each(function() { + thisHeight = $(this).height(); + if (thisHeight > tallest) { + tallest = thisHeight; + } + }); + group.height(tallest); +} + + +$(document).ready(function() { + equalHeight($(".sidebar")); +}); diff --git a/links.php b/links.php index aa3ee0e..4b41664 100644 --- a/links.php +++ b/links.php @@ -1,62 +1,62 @@ - - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - ]*)>#', '
  • ', $bookmarks); - $bookmarks = preg_replace('#
      ]*)>#', '
        ', $bookmarks); - ?> -
        - -
        -

        -
        -
          - -
        -
        -
        -
        - -
        -
        -
        -
  • - -
    - - - - -
    -
    - - + + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + ]*)>#', '
  • ', $bookmarks); + $bookmarks = preg_replace('#
      ]*)>#', '
        ', $bookmarks); + ?> +
        + +
        +

        +
        +
          + +
        +
        +
        +
        + +
        +
        +
        +
  • + +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/lynx_style.css b/lynx_style.css index 8eabb2b..6e9c0b4 100644 --- a/lynx_style.css +++ b/lynx_style.css @@ -1,3 +1,3 @@ -/* ComicPress Custom CSS over-rides for [ lynx ]: ComicPress - 2.8 */ - +/* ComicPress Custom CSS over-rides for [ lynx ]: ComicPress - 2.8 */ + html { overflow-y: scroll; } \ No newline at end of file diff --git a/notie_style.css b/notie_style.css index c5ba1e4..580ecde 100644 --- a/notie_style.css +++ b/notie_style.css @@ -1,42 +1,42 @@ -/* ComicPress Custom CSS over-rides for [ gecko ]: ComicPress - 2.8 */ - -html { overflow-y: scroll; } - -.comicarchiveframe -{ - -moz-opacity: 0.99; /* mozilla, netscape */ - opacity:0.99; /* firefox, opera, safari, chrome */ - -khtml-opacity: 0.99; /* khtml, old safari */ -} - - .comicarchiveframe:hover { - -moz-opacity: 0.7; /* mozilla, netscape */ - opacity:0.70; /* firefox, opera, safari, chrome */ - -khtml-opacity: 0.7; /* khtml, old safari */ - - } - - .imagenav-link img { - -moz-opacity: 0.5; /* mozilla, netscape, gecko */ - opacity:0.5; /* firefox, opera, safari, chrome */ - -khtml-opacity: 0.5; /* khtml, old safari */ - } - - .imagenav-link img:hover { - -moz-opacity: 0; /* mozilla, netscape */ - opacity:0.5; /* firefox, opera, safari, chrome */ - -khtml-opacity: 0.5; /* khtml, old safari */ - } - -::-moz-selection { - background: #a1c0d9; /* Firefox */ -} - -textarea { - resize: none; -} - -/* selection colors */ -::selection { - background: #ffb7b7; /* Safari */ +/* ComicPress Custom CSS over-rides for [ gecko ]: ComicPress - 2.8 */ + +html { overflow-y: scroll; } + +.comicarchiveframe +{ + -moz-opacity: 0.99; /* mozilla, netscape */ + opacity:0.99; /* firefox, opera, safari, chrome */ + -khtml-opacity: 0.99; /* khtml, old safari */ +} + + .comicarchiveframe:hover { + -moz-opacity: 0.7; /* mozilla, netscape */ + opacity:0.70; /* firefox, opera, safari, chrome */ + -khtml-opacity: 0.7; /* khtml, old safari */ + + } + + .imagenav-link img { + -moz-opacity: 0.5; /* mozilla, netscape, gecko */ + opacity:0.5; /* firefox, opera, safari, chrome */ + -khtml-opacity: 0.5; /* khtml, old safari */ + } + + .imagenav-link img:hover { + -moz-opacity: 0; /* mozilla, netscape */ + opacity:0.5; /* firefox, opera, safari, chrome */ + -khtml-opacity: 0.5; /* khtml, old safari */ + } + +::-moz-selection { + background: #a1c0d9; /* Firefox */ +} + +textarea { + resize: none; +} + +/* selection colors */ +::selection { + background: #ffb7b7; /* Safari */ } \ No newline at end of file diff --git a/ns4_style.css b/ns4_style.css index b9aa23a..c954931 100644 --- a/ns4_style.css +++ b/ns4_style.css @@ -1,23 +1,23 @@ -/* ComicPress Custom CSS over-rides for [ ns4 ]: ComicPress - 2.8 */ - -html { overflow-y: scroll; } - -.comicarchiveframe { - -moz-opacity: 0.99; /* mozilla, netscape */ - opacity:0.99; /* firefox, opera, safari, chrome */ -} - - .comicarchiveframe:hover { - -moz-opacity: 0.7; /* mozilla, netscape */ - opacity:0.70; /* firefox, opera, safari, chrome */ - } - - .imagenav-link img { - -moz-opacity: 0.5; /* mozilla, netscape, gecko */ - opacity:0.5; /* firefox, opera, safari, chrome */ - } - - .imagenav-link img:hover { - -moz-opacity: 0; /* mozilla, netscape */ - opacity:0.5; /* firefox, opera, safari, chrome */ - } +/* ComicPress Custom CSS over-rides for [ ns4 ]: ComicPress - 2.8 */ + +html { overflow-y: scroll; } + +.comicarchiveframe { + -moz-opacity: 0.99; /* mozilla, netscape */ + opacity:0.99; /* firefox, opera, safari, chrome */ +} + + .comicarchiveframe:hover { + -moz-opacity: 0.7; /* mozilla, netscape */ + opacity:0.70; /* firefox, opera, safari, chrome */ + } + + .imagenav-link img { + -moz-opacity: 0.5; /* mozilla, netscape, gecko */ + opacity:0.5; /* firefox, opera, safari, chrome */ + } + + .imagenav-link img:hover { + -moz-opacity: 0; /* mozilla, netscape */ + opacity:0.5; /* firefox, opera, safari, chrome */ + } diff --git a/opera_style.css b/opera_style.css index 32ef303..349cd1e 100644 --- a/opera_style.css +++ b/opera_style.css @@ -1,20 +1,20 @@ -/* ComicPress Custom CSS over-rides for [ opera ]: ComicPress - 2.8 */ - -html { overflow-y: scroll; } - -.comicarchiveframe { - opacity:0.99; /* firefox, opera, safari, chrome */ -} - - .comicarchiveframe:hover { - opacity:0.70; /* firefox, opera, safari, chrome */ - } - - .imagenav-link img { - opacity:0.5; /* firefox, opera, safari, chrome */ - } - - .imagenav-link img:hover { - opacity:0.5; /* firefox, opera, safari, chrome */ - } - +/* ComicPress Custom CSS over-rides for [ opera ]: ComicPress - 2.8 */ + +html { overflow-y: scroll; } + +.comicarchiveframe { + opacity:0.99; /* firefox, opera, safari, chrome */ +} + + .comicarchiveframe:hover { + opacity:0.70; /* firefox, opera, safari, chrome */ + } + + .imagenav-link img { + opacity:0.5; /* firefox, opera, safari, chrome */ + } + + .imagenav-link img:hover { + opacity:0.5; /* firefox, opera, safari, chrome */ + } + diff --git a/page.php b/page.php index ad4cff2..7c1856e 100644 --- a/page.php +++ b/page.php @@ -1,55 +1,55 @@ - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - - -
    -
    -

    -
    - - '

    Pages: ', 'after' => '

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

    ') ?> -
    -
    -
    - comment_status) { - comments_template('', true); - } ?> - -
    -
    -
    - - - - -
    -
    - - + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + + +
    +
    +

    +
    + + '

    Pages: ', 'after' => '

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

    ') ?> +
    +
    +
    + comment_status) { + comments_template('', true); + } ?> + +
    +
    +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/safari_style.css b/safari_style.css index 7956ab0..f4bfc07 100644 --- a/safari_style.css +++ b/safari_style.css @@ -1,34 +1,34 @@ -/* ComicPress Custom CSS over-rides for [ safari ]: ComicPress - 2.8 */ - -html { overflow-y: scroll; } - -.comicarchiveframe { - -khtml-opacity: 0.99; /* khtml, old safari */ -} - - .comicarchiveframe:hover { - opacity:0.70; /* firefox, opera, safari, chrome */ - -khtml-opacity: 0.7; /* khtml, old safari */ - - } - - .imagenav-link img { - opacity:0.5; /* firefox, opera, safari, chrome */ - -khtml-opacity: 0.5; /* khtml, old safari */ - } - - .imagenav-link img:hover { - opacity:0.5; /* firefox, opera, safari, chrome */ - -khtml-opacity: 0.5; /* khtml, old safari */ - } - -/* Supports: car, both, horizontal, none, vertical */ - -textarea { - resize: none; -} - -/* selection colors */ -::selection { - background: #ffb7b7; /* Safari */ +/* ComicPress Custom CSS over-rides for [ safari ]: ComicPress - 2.8 */ + +html { overflow-y: scroll; } + +.comicarchiveframe { + -khtml-opacity: 0.99; /* khtml, old safari */ +} + + .comicarchiveframe:hover { + opacity:0.70; /* firefox, opera, safari, chrome */ + -khtml-opacity: 0.7; /* khtml, old safari */ + + } + + .imagenav-link img { + opacity:0.5; /* firefox, opera, safari, chrome */ + -khtml-opacity: 0.5; /* khtml, old safari */ + } + + .imagenav-link img:hover { + opacity:0.5; /* firefox, opera, safari, chrome */ + -khtml-opacity: 0.5; /* khtml, old safari */ + } + +/* Supports: car, both, horizontal, none, vertical */ + +textarea { + resize: none; +} + +/* selection colors */ +::selection { + background: #ffb7b7; /* Safari */ } \ No newline at end of file diff --git a/search-transcript.php b/search-transcript.php index 8ec6e97..531058c 100644 --- a/search-transcript.php +++ b/search-transcript.php @@ -1,135 +1,135 @@ - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - -
    -
    - post_count; - if (!$count) $count = "no"; - ?> -
    Found result.
    -

    Transcript search for ‘

    - - - - - - - -
    -
    - -
    -
    - '); ?> Posted in: -
    -
    -
    -
    - <?php the_title() ?>
    -
    -
    -
    -
    - - - -
    -
    - -
    -
    - '); ?> Posted in: -
    -
    -
    - -
    -
    -
    - - - - - - - -
    -
    -

    No transcripts found.

    -

    Try another search?

    -

    -
    -
    -
    - - - - -
    - -
    - - - -
    -
    - -
    - - - - -
    -
    - - + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + +
    +
    + post_count; + if (!$count) $count = "no"; + ?> +
    Found result.
    +

    Transcript search for ‘

    + + + + + + + +
    +
    + +
    +
    + '); ?> Posted in: +
    +
    +
    +
    + <?php the_title() ?>
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    + '); ?> Posted in: +
    +
    +
    + +
    +
    +
    + + + + + + + +
    +
    +

    No transcripts found.

    +

    Try another search?

    +

    +
    +
    +
    + + + + +
    + +
    + + + +
    +
    + +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/search.php b/search.php index a930057..90538ea 100644 --- a/search.php +++ b/search.php @@ -1,137 +1,137 @@ - - - - - -
    -
    - - - -
    - - - -
    - - - - - -
    -
    - - -
    -
    - post_count; -// if (!$count) $count = "no"; - ?> -
    Found result.
    -

    Search for ‘

    - - - - - - - -
    -
    - -
    -
    - '); ?> Posted in: -
    -
    -
    -
    - <?php the_title() ?>
    -
    -
    -
    -
    - - - -
    -
    - -
    -
    - '); ?> Posted in: -
    -
    -
    - -
    -
    -
    - - - - - - - -
    -
    -

    No entries found.

    -

    Try another search?

    -

    -
    -
    -
    - - -
    -
    - - -
    - -
    - - - -
    -
    - -
    - - - - -
    -
    - - + + + + + +
    +
    + + + +
    + + + +
    + + + + + +
    +
    + + +
    +
    + post_count; +// if (!$count) $count = "no"; + ?> +
    Found result.
    +

    Search for ‘

    + + + + + + + +
    +
    + +
    +
    + '); ?> Posted in: +
    +
    +
    +
    + <?php the_title() ?>
    +
    +
    +
    +
    + + + +
    +
    + +
    +
    + '); ?> Posted in: +
    +
    +
    + +
    +
    +
    + + + + + + + +
    +
    +

    No entries found.

    +

    Try another search?

    +

    +
    +
    +
    + + +
    +
    + + +
    + +
    + + + +
    +
    + +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/sidebar-footer.php b/sidebar-footer.php index 0548c65..a30df72 100644 --- a/sidebar-footer.php +++ b/sidebar-footer.php @@ -4,4 +4,4 @@
    - + diff --git a/single.php b/single.php index f754357..dc5671c 100644 --- a/single.php +++ b/single.php @@ -1,83 +1,83 @@ - - - - - -
    -
    - - - -
    - - - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - - -
    - - - - - -
    -
    - - - -
    -
    - -
    -
    - - - - -
    - -
    - - -
    -
    -

    Sorry, no posts matched your criteria.

    -
    -
    -
    -
    - -
    - -
    -
    -
    - - - - -
    -
    - - + + + + + +
    +
    + + + +
    + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + + + +
    + + + + + +
    +
    + + + +
    +
    + +
    +
    + + + + +
    + +
    + + +
    +
    +

    Sorry, no posts matched your criteria.

    +
    +
    +
    +
    + +
    + +
    +
    +
    + + + + +
    +
    + + \ No newline at end of file diff --git a/style.css b/style.css index c03ff79..4681a0a 100644 --- a/style.css +++ b/style.css @@ -1,1714 +1,1714 @@ -/* -Theme Name: ComicPress -Theme URI: http://comicpress.org -Description: Publish a comic with WordPress. Visit the ComicPress Website. -Author: Tyler Martin, John Bintz, Philip M. Hofer -Author URI: http://mindfaucet.com/ -Version: 2.8.0.4 -. -The CSS, XHTML and design is released under GPL v3: -http://www.opensource.org/licenses/gpl-3.0.html -. -*/ - - -/* STANDARD TAGS */ - - -body { - margin: 0; - font-size: 14px; - font-family: 'Arial', sans-serif; - z-index: 0; - } - - -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; - 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; - } - - -.sfhover { - padding: 0; - margin: 0; -} - - -/* HEADINGS */ - - -h1, h1 a { - 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 { - 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; - clear:both; - } - - -h3, h3 a { - 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 #content width by the same amount */ - - -#page { - width: 780px; - margin: 0px auto; - } - - -#page-wide { - width: 980px; - 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 /* url('images/menubarbgdark.jpg') repeat-x*/; - text-align: left; - } - -#menunav { - float: right; - text-align: center; - } - - #menunav a { - width: 25px; - height: 25px; - display: block; - float: left; - color: #fff; - font-size: 19px; - font-weight: bold; - line-height: 24px; - } - - #menunav a:hover { - background: #800; - } - -#menu { - padding: 0; - margin: 0; - list-style: none; - float: left; - line-height: 25px; - font-size: 13px; - text-transform: uppercase; - } - - #menu a { - padding: 0px 10px 0 10px; - display: block; - color: #fff; - text-decoration: none; - } - - #menu li .rss { - padding: 5px 0 5px 0; - } - - - #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: 175px; - line-height: 1; - } - #menu li li { - width: 165px; - padding: 4px 5px; - color: #fff; - } - #menu li li a { - width: 174px; - padding: 0; - color: #fff; - border: none; - } - #menu li ul ul { - margin: -17px 0 0 170px; - } - #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: #000; /* Submenu background color */ - text-transform: none; - } - - #menu .current_page_item a { - color: #fff000; - } - - - -/* THE COMIC */ - - -#comic { - padding: 0; - text-align: center; - z-index: 100; - } - - -.comic-left { - float: left; -} - - -.comic-right { - float: right; -} - - -.comic-content -{ - z-index:100; -} - - -/* THE FOOTER */ - - -#footer { - padding: 5px 0; - text-align: center; - } - - -/* NAVIGATION */ - - -.nav { - float: right; - font-size: 12px; - font-weight: bold; - margin-right: 10px; - padding: 5px; - } - - .nav-first { - padding: 0 5px 0 0; - float: left; - } - - .nav-previous { - padding: 0 5px; - float: left; - } - - .nav-next { - padding: 0 5px; - float: left; - } - - .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,.commentnav { - height: 25px; - color: #000; - font-size: 12px; - font-weight: bold; - line-height: 25px; - padding: 0 5px 0 5px; - margin-top: 5px; - clear: both; - } - - - .pagenav-left,.commentnav-left { - float: left; - } - - - .pagenav-right,.commentnav-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 */ - - -#pagewrap-right { - width: 770px; - float: left; - overflow: hidden; - padding: 0; - margin: 0; - } - - -#content-wrapper -{ - margin: 0 auto; - padding: 0; - clear: both; - } - - -#content { - float: left; - overflow: hidden; - } - - - .narrowcolumn { - width: 560px; - margin: 0 auto; - float: left; - } - - - .widecolumn { - margin: 0 auto; - } - -.column -{ - margin: 0 5px 0 5px; -} - - -.post, .post-comic, .post-page { - clear: both; - padding: 0 5px; - } - - -.post-head, .post-page-head, .post-comic-head { - } - -.post-foot, .post-comic-foot, .post-page-foot { - } - -.post-foot { - margin-bottom: 20px; -} - - .entry { - padding: 5px; - } - - .post-info { - margin-bottom: 5px; - } - - .post-text { - padding-left: 5px; - overflow: hidden; - display: block; - } - - .post-date { - color: #777; - font-family: 'Georgia' , serif; - font-size: 15px; - font-weight: bold; - float: left; - } - - .post-date .date { - height: 50px; - width: 45px; - background: url(images/calendar.png) center no-repeat; - font: normal 22px Verdana, Arial, Helvetica, sans-serif; - color: #000; - text-align: center; - line-height: 100%; - padding: 0 2px 0 0; - } - - - .post-date .date span { - height: 16px; - display: block; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - color: #ffffff; - text-align: center; - padding-top: 5px; - } - - .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; - } - - -.comment-link { - font-family: 'Georgia', serif; - font-size: 13px; - text-align: right; - } - - -.related_posts -{ - margin-top: 10px; - font-weight: 700; -} - - -.related_posts ul -{ - list-style: none; - font-weight: normal; - font-size: 12px; -} - - -/* THE BLOG HEADER */ - - -#blogheader { - font-family: 'Georgia', serif; - padding: 5px 0 5px 0; - font-size: 32px; - letter-spacing: -2px; - border-top: 1px groove #000; - margin-top: 10px; - } - - - - -/* 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; - min-height: 64px; - } - - .comment .avatar - { - border: solid 1px #000; - margin: 0 10px 0 0; - float: left; - } - - .comment .trackping { - float: left; - } - - - .comment .comment { - margin-left: 30px; - } - - .comment .comment .comment { - } - - - .comment #respond { - } - - -.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; - } - - -.commentsrsslink { - float: right; - font-size: 11px; -} - - -#comment -{ - width: 99%; - font-size: 12px; - font-family: 'Arial', sans-serif; - } - - -#author, #email, #url { - font-size: 12px; - font-family: 'Arial', sans-serif; - } - - -#submit { - margin: 0 0 20px 0; - float: right; - } - - -.commentlist ul { - list-style: none; - margin-bottom: 30px; -} - - -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; - margin-bottom: 20px; - } - - .comicarchiveframe:hover { - } - - - .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 */ - - - - -/* Left Sidebar Themes */ -#sidebar-left { - float: left; - width: 210px; - } - - -/* Right Sidebar Themes */ -#sidebar-right { - float: right; - width: 210px; - } - - - .customsidebar ul, .customsidebar li { - margin: 0; - padding: 0; - list-style: none; - } - - -.widget { - margin: 0 auto; -} - - -/* Sidebar Class */ - - -.sidebar { - font-size: 11px; - margin: 0 5px 0 5px; - overflow: hidden; - padding-bottom: 10px; - } - - -.sidebar h2, .sidebar h2 a { - font-size: 16px; - } - -.sidebar .widget -{ - margin-bottom: 10px; -} - -.sidebar ul { - margin: 0; - padding: 0; - list-style: none; - } - - .sidebar ul li { - margin: 0; - padding: 0; - text-align: left; - list-style: none; - } - - - .sidebar ul li ul li { - margin: 0 0 0 13px; - padding: 0; - text-align: left; - } - - .sidebar li h2 { - margin-top: 15px; - } - -/* WIDGETS */ - - -.random-comic-icon { - padding: 0 5px; - color: #fff; - background: #000; - } - - -.comic-bookmark { - width: 185px; - margin: 0 auto; - margin-bottom: 10px; - } - - -.archive-dropdown { - max-width: 100%; - } - - - - - - -/* CALENDAR */ - - -#wp-calendar { - border: solid 1px #000; - width: 165px; - margin: 0 auto; - } - - -#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; - } - -#searchform { - margin-top: 10px; -} - -#searchsubmit { - padding: 0 5px; - font-size: 12px; - font-family: 'Arial', sans-serif; - } - -.button -{ - color: #fff; - background: #838ab5; - border: 1px solid #000; - font-weight: 700; - font-family: 'Arial', sans-serif; - padding: 1px 5px 1px 4px; - } - - -.searchresults -{ - padding: 10px; - float: right; -} - - -/* 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; - } - -#s-search { - width: 140px; - margin: 0; - padding: 2px; - font-size: 12px; - font-family: 'Georgia', serif; - font-style: italic; - } - - - #searchsubmit-search { - padding: 0 5px; - font-size: 12px; - font-family: 'Arial', sans-serif; - } - - - - -/* Pingbacks and Trackbacks */ - - -li.pingback div p, li.trackback div p { - margin-left:0; - } - - -/* STORYLINES */ - - -#storyline-cats { - padding: 0; - margin: 0 10px 0 0; - list-style: none; - } - - - #storyline-cats li { - display: inline; - } - - - #storyline-cats ul - { - display: inline; - margin-right: 10px; - } - - -/* 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; - } - - - - - -/* COMIC NAVIGATION */ - - -a.rollnext, .rollnext -{ - display: inline-block; - height: 50px; - width: 60px; - float: left; - text-decoration: none; - background: url('images/nav/nextroll.png') no-repeat; -} - - -a.rolllast, .rolllast -{ - display: inline-block; - height: 50px; - width: 60px; - float: left; - text-decoration: none; - background: url('images/nav/lastroll.png') no-repeat; -} - - -a.rollprev, .rollprev -{ - display: inline-block; - height: 50px; - width: 60px; - float: left; - text-decoration: none; - background: url('images/nav/prevroll.png') no-repeat; -} - - -a.rollfirst, .rollfirst -{ - display: inline-block; - height: 50px; - width: 60px; - float: left; - text-decoration: none; - background: url('images/nav/firstroll.png') no-repeat; -} - - -a.rollrandom, .rollrandom -{ - display: inline-block; - height: 50px; - width: 60px; - text-decoration: none; - background: url('images/nav/randomroll.png') no-repeat; -} - - -a.rollfirst:hover, a.rollprev:hover, a.rollnext:hover, a.rolllast:hover, a.rollrandom:hover -{ - background-position: -60px 0; -} - - -.rollagain { - background-position: -120px 0; -} - - -#comic_navi_wrapper { -} - - - .comic_navi - { - width: 370px; - margin: 0 auto; - } - - .comic_navi_left - { - width: 120px; - float: left; - } - - .comic_navi_center_spacer { - width: 130px; - margin: 0 auto; - } - - .comic_navi_center - { - width: 60px; - margin: 0 auto; - } - - .comic_navi_right - { - width: 120px; - float: right; - } - - -/** BUY THIS **/ - - -.buythis -{ - padding: 0 5px 0 5px; -} - - -.buythisbutton -{ - height: 27px; - width: 240px; - margin: 5px 0 5px 0; - background: url('images/buythis.png') no-repeat; -} - - -/** Project Wonderful CSS Embedded areas **/ - - -.blogpwad { - text-align: center; - width: 100%; - } - - -.headerpwad { - float: right; - margin: 5px 5px 0 0; - } - -.footerpwad { - display: block; - width: 100%; - text-align: center; - } - - - -/* Archive Calendar Template */ - - -.cpcal-month { - width: 157px; - height: 138px; - padding: 5px 0 5px 5px; - margin: 0 8px 8px 0; - float: left; - border: 1px solid #000; - } - -.cpcal-monthtitle { - width: 154px; - height: 16px; - padding: 0 0 5px 0; - text-align: center; - font-family: 'Georgia', serif; - font-variant: small-caps; - font-size: 16px; - line-height: 16px; - letter-spacing: -1px; - } -.cpcal-dayletter { - width: 20px; - height: 15px; - margin: 0 2px 2px 0; - display: block; - float: left; - text-align: center; - font-size: 10px; - line-height: 13px; - } - -.cpcal-day { - width: 18px; - height: 13px; - margin: 0 2px 2px 0; - display: block; - float: left; - text-align: center; - font-size: 10px; - line-height: 13px; - border: 1px solid #000; - } - - .cpcal-day a { - width: 18px; - height: 13px; - line-height: 13px; - display: block; - font-size: 12px; - font-weight: bold; - } - - .cpcal-day a:hover { - color: #fff; - background: #000; - } - -/* Storyline Template */ - - -#storyline, #storyline ul { - padding: 0; - margin: 0; - list-style: none; - } - -#storyline li { - padding: 0; - margin: 0; - } - -#storyline li img { - height: 50px; - display: none; - } - -#storyline li li img { - display: block; - float: right; - padding: 0 0 0 10px; - } - -#storyline ul ul { - margin: 0 0 0 20px; - } - -#storyline li li .storyline-title { - font-size: 24px; - font-weight: bold; - display: block; - color: #000; - } - -#storyline li li .storyline-title:hover { - color: #900; - } - -#storyline li li li a.storyline-title { - font-size: 18px; - } - -#storyline li li li li a.storyline-title { - font-size: 14px; - } - - .storyline-description { - font-size: 11px; - } - - .storyline-foot { - clear: both; - margin: 0 0 10px 0; - height: 10px; - border-bottom: 4px solid #000; - } - -#storyline li li .storyline-foot { - border-bottom: 2px solid #000; - } -#storyline li li li .storyline-foot { - border-bottom: 1px solid #000; - } - -/* Archive Year Template */ - - -.archive-date { - padding: 0 5px 0 0; - font-size: 11px; - white-space: nowrap; - } - -.archive-title { - padding: 2px 5px; - line-height: 11px; - border-left: 1px solid #000; - } - -.month-table{ - border-collapse: collapse; - margin: 0 0 20px 0; -} - - -#linkspage, #linkspage ul, #linkspage li { - list-style:none; -} - - -#linkspage h2 { - margin-top: 20px; -} - - -.wp-pagenavi, .paginav { - height: 25px; - line-height: 25px; - font-size: 14px; - } - - -.wp-pagenavi a, .wp-pagenavi a:link, .wp-pagenavi a:visited, .wp-pagenavi a:hover, .wp-pagenavi a:active -{ - padding: 2px; - text-decoration: none; -} - - -.wp-pagenavi span.pages { - color: #777; - margin-right: 10px; -} - - -.wp-pagenavi span.current, .paginav .current -{ - font-size: 16px; - font-weight: bold; -} - - -.wp-pagenavi span.extend { -} - - -/* Drop Bar */ - - -.dropbar -{ - position:absolute; - left:0px; - width:100%; - height:98px; - border-bottom: solid 1px #fff; - color: white; - font-family: Verdana; - font-size: 11px; - z-index:10000; - background: #000; -} - - -.dropbar .droptab -{ - position: absolute; - bottom: -23px; - left: 30px; - width: 142px; - height: 23px; - background-image: url('images/dropbar.png'); -} - - -/* members only */ - - -.members-only -{ - border: solid 1px #000; - background: #ccc; - padding: 3px; -} - - -/* Tool Tips */ - - -.tt a { - position:relative; - z-index:1000; - color:#3CA3FF; - font-weight:bold; - text-decoration:none; - margin-bottom: -100px; - - - - -} -a.tt span{ display: none; } - - -a.tt:hover span.tooltip -{ - position: absolute; - display:block; - width:200px; - color: #000; - margin: 0 auto; - text-align: center; - height: 164px; - background: url('images/anomaly.png') no-repeat; - z-index:1000; -} -a.tt:hover span.top{ - display: block; - width: 200px; - height: 20px; - padding-top: 10px; - margin-top: 55px; - margin-left: 25px; - background: url('images/bubble.gif') no-repeat top; - z-index:1000; -} -a.tt:hover span.middle{ /* different middle bg for stretch */ - display: block; - width: 190px; - margin-left: 25px; - padding: 0 5px 0 5px; - background: url('images/bubble_filler.gif') repeat bottom; - z-index:1000; -} -a.tt:hover span.bottom{ - display: block; - width: 200px; - height: 15px; - background-position: -100px; - color: #548912; - margin-left: 25px; - background: url('images/bubble.gif') no-repeat bottom; - z-index:1000; -} - - -/* User Pages */ - - -#userpage { - width: 100%; - padding: 5px; -} - - -.userpage-avatar { - float: left; - width: 64px; - height: 64px; - border: 1px solid #000; -} - - -.userpage-info { - margin-left: 10px; - float: left; -} - - -.userpage-desc -{ - width: 400px; - padding: 5px; - margin-top: 30px; - border: 1px dotted #efefef; -} - - -.userpage-posts -{ - margin-top: 20px; -} - - -.userpage-posts ol { - margin: 10px 0 0 30px; - padding: 0; -} - - -.userpage-posts li { - list-style: none; - margin: 0; - padding: 0; -} - - +/* +Theme Name: ComicPress +Theme URI: http://comicpress.org +Description: Publish a comic with WordPress. Visit the ComicPress Website. +Author: Tyler Martin, John Bintz, Philip M. Hofer +Author URI: http://mindfaucet.com/ +Version: 2.8.0.4 +. +The CSS, XHTML and design is released under GPL v3: +http://www.opensource.org/licenses/gpl-3.0.html +. +*/ + + +/* STANDARD TAGS */ + + +body { + margin: 0; + font-size: 14px; + font-family: 'Arial', sans-serif; + z-index: 0; + } + + +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; + 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; + } + + +.sfhover { + padding: 0; + margin: 0; +} + + +/* HEADINGS */ + + +h1, h1 a { + 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 { + 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; + clear:both; + } + + +h3, h3 a { + 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 #content width by the same amount */ + + +#page { + width: 780px; + margin: 0px auto; + } + + +#page-wide { + width: 980px; + 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 /* url('images/menubarbgdark.jpg') repeat-x*/; + text-align: left; + } + +#menunav { + float: right; + text-align: center; + } + + #menunav a { + width: 25px; + height: 25px; + display: block; + float: left; + color: #fff; + font-size: 19px; + font-weight: bold; + line-height: 24px; + } + + #menunav a:hover { + background: #800; + } + +#menu { + padding: 0; + margin: 0; + list-style: none; + float: left; + line-height: 25px; + font-size: 13px; + text-transform: uppercase; + } + + #menu a { + padding: 0px 10px 0 10px; + display: block; + color: #fff; + text-decoration: none; + } + + #menu li .rss { + padding: 5px 0 5px 0; + } + + + #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: 175px; + line-height: 1; + } + #menu li li { + width: 165px; + padding: 4px 5px; + color: #fff; + } + #menu li li a { + width: 174px; + padding: 0; + color: #fff; + border: none; + } + #menu li ul ul { + margin: -17px 0 0 170px; + } + #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: #000; /* Submenu background color */ + text-transform: none; + } + + #menu .current_page_item a { + color: #fff000; + } + + + +/* THE COMIC */ + + +#comic { + padding: 0; + text-align: center; + z-index: 100; + } + + +.comic-left { + float: left; +} + + +.comic-right { + float: right; +} + + +.comic-content +{ + z-index:100; +} + + +/* THE FOOTER */ + + +#footer { + padding: 5px 0; + text-align: center; + } + + +/* NAVIGATION */ + + +.nav { + float: right; + font-size: 12px; + font-weight: bold; + margin-right: 10px; + padding: 5px; + } + + .nav-first { + padding: 0 5px 0 0; + float: left; + } + + .nav-previous { + padding: 0 5px; + float: left; + } + + .nav-next { + padding: 0 5px; + float: left; + } + + .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,.commentnav { + height: 25px; + color: #000; + font-size: 12px; + font-weight: bold; + line-height: 25px; + padding: 0 5px 0 5px; + margin-top: 5px; + clear: both; + } + + + .pagenav-left,.commentnav-left { + float: left; + } + + + .pagenav-right,.commentnav-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 */ + + +#pagewrap-right { + width: 770px; + float: left; + overflow: hidden; + padding: 0; + margin: 0; + } + + +#content-wrapper +{ + margin: 0 auto; + padding: 0; + clear: both; + } + + +#content { + float: left; + overflow: hidden; + } + + + .narrowcolumn { + width: 560px; + margin: 0 auto; + float: left; + } + + + .widecolumn { + margin: 0 auto; + } + +.column +{ + margin: 0 5px 0 5px; +} + + +.post, .post-comic, .post-page { + clear: both; + padding: 0 5px; + } + + +.post-head, .post-page-head, .post-comic-head { + } + +.post-foot, .post-comic-foot, .post-page-foot { + } + +.post-foot { + margin-bottom: 20px; +} + + .entry { + padding: 5px; + } + + .post-info { + margin-bottom: 5px; + } + + .post-text { + padding-left: 5px; + overflow: hidden; + display: block; + } + + .post-date { + color: #777; + font-family: 'Georgia' , serif; + font-size: 15px; + font-weight: bold; + float: left; + } + + .post-date .date { + height: 50px; + width: 45px; + background: url(images/calendar.png) center no-repeat; + font: normal 22px Verdana, Arial, Helvetica, sans-serif; + color: #000; + text-align: center; + line-height: 100%; + padding: 0 2px 0 0; + } + + + .post-date .date span { + height: 16px; + display: block; + font: normal 11px Verdana, Arial, Helvetica, sans-serif; + color: #ffffff; + text-align: center; + padding-top: 5px; + } + + .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; + } + + +.comment-link { + font-family: 'Georgia', serif; + font-size: 13px; + text-align: right; + } + + +.related_posts +{ + margin-top: 10px; + font-weight: 700; +} + + +.related_posts ul +{ + list-style: none; + font-weight: normal; + font-size: 12px; +} + + +/* THE BLOG HEADER */ + + +#blogheader { + font-family: 'Georgia', serif; + padding: 5px 0 5px 0; + font-size: 32px; + letter-spacing: -2px; + border-top: 1px groove #000; + margin-top: 10px; + } + + + + +/* 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; + min-height: 64px; + } + + .comment .avatar + { + border: solid 1px #000; + margin: 0 10px 0 0; + float: left; + } + + .comment .trackping { + float: left; + } + + + .comment .comment { + margin-left: 30px; + } + + .comment .comment .comment { + } + + + .comment #respond { + } + + +.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; + } + + +.commentsrsslink { + float: right; + font-size: 11px; +} + + +#comment +{ + width: 99%; + font-size: 12px; + font-family: 'Arial', sans-serif; + } + + +#author, #email, #url { + font-size: 12px; + font-family: 'Arial', sans-serif; + } + + +#submit { + margin: 0 0 20px 0; + float: right; + } + + +.commentlist ul { + list-style: none; + margin-bottom: 30px; +} + + +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; + margin-bottom: 20px; + } + + .comicarchiveframe:hover { + } + + + .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 */ + + + + +/* Left Sidebar Themes */ +#sidebar-left { + float: left; + width: 210px; + } + + +/* Right Sidebar Themes */ +#sidebar-right { + float: right; + width: 210px; + } + + + .customsidebar ul, .customsidebar li { + margin: 0; + padding: 0; + list-style: none; + } + + +.widget { + margin: 0 auto; +} + + +/* Sidebar Class */ + + +.sidebar { + font-size: 11px; + margin: 0 5px 0 5px; + overflow: hidden; + padding-bottom: 10px; + } + + +.sidebar h2, .sidebar h2 a { + font-size: 16px; + } + +.sidebar .widget +{ + margin-bottom: 10px; +} + +.sidebar ul { + margin: 0; + padding: 0; + list-style: none; + } + + .sidebar ul li { + margin: 0; + padding: 0; + text-align: left; + list-style: none; + } + + + .sidebar ul li ul li { + margin: 0 0 0 13px; + padding: 0; + text-align: left; + } + + .sidebar li h2 { + margin-top: 15px; + } + +/* WIDGETS */ + + +.random-comic-icon { + padding: 0 5px; + color: #fff; + background: #000; + } + + +.comic-bookmark { + width: 185px; + margin: 0 auto; + margin-bottom: 10px; + } + + +.archive-dropdown { + max-width: 100%; + } + + + + + + +/* CALENDAR */ + + +#wp-calendar { + border: solid 1px #000; + width: 165px; + margin: 0 auto; + } + + +#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; + } + +#searchform { + margin-top: 10px; +} + +#searchsubmit { + padding: 0 5px; + font-size: 12px; + font-family: 'Arial', sans-serif; + } + +.button +{ + color: #fff; + background: #838ab5; + border: 1px solid #000; + font-weight: 700; + font-family: 'Arial', sans-serif; + padding: 1px 5px 1px 4px; + } + + +.searchresults +{ + padding: 10px; + float: right; +} + + +/* 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; + } + +#s-search { + width: 140px; + margin: 0; + padding: 2px; + font-size: 12px; + font-family: 'Georgia', serif; + font-style: italic; + } + + + #searchsubmit-search { + padding: 0 5px; + font-size: 12px; + font-family: 'Arial', sans-serif; + } + + + + +/* Pingbacks and Trackbacks */ + + +li.pingback div p, li.trackback div p { + margin-left:0; + } + + +/* STORYLINES */ + + +#storyline-cats { + padding: 0; + margin: 0 10px 0 0; + list-style: none; + } + + + #storyline-cats li { + display: inline; + } + + + #storyline-cats ul + { + display: inline; + margin-right: 10px; + } + + +/* 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; + } + + + + + +/* COMIC NAVIGATION */ + + +a.rollnext, .rollnext +{ + display: inline-block; + height: 50px; + width: 60px; + float: left; + text-decoration: none; + background: url('images/nav/nextroll.png') no-repeat; +} + + +a.rolllast, .rolllast +{ + display: inline-block; + height: 50px; + width: 60px; + float: left; + text-decoration: none; + background: url('images/nav/lastroll.png') no-repeat; +} + + +a.rollprev, .rollprev +{ + display: inline-block; + height: 50px; + width: 60px; + float: left; + text-decoration: none; + background: url('images/nav/prevroll.png') no-repeat; +} + + +a.rollfirst, .rollfirst +{ + display: inline-block; + height: 50px; + width: 60px; + float: left; + text-decoration: none; + background: url('images/nav/firstroll.png') no-repeat; +} + + +a.rollrandom, .rollrandom +{ + display: inline-block; + height: 50px; + width: 60px; + text-decoration: none; + background: url('images/nav/randomroll.png') no-repeat; +} + + +a.rollfirst:hover, a.rollprev:hover, a.rollnext:hover, a.rolllast:hover, a.rollrandom:hover +{ + background-position: -60px 0; +} + + +.rollagain { + background-position: -120px 0; +} + + +#comic_navi_wrapper { +} + + + .comic_navi + { + width: 370px; + margin: 0 auto; + } + + .comic_navi_left + { + width: 120px; + float: left; + } + + .comic_navi_center_spacer { + width: 130px; + margin: 0 auto; + } + + .comic_navi_center + { + width: 60px; + margin: 0 auto; + } + + .comic_navi_right + { + width: 120px; + float: right; + } + + +/** BUY THIS **/ + + +.buythis +{ + padding: 0 5px 0 5px; +} + + +.buythisbutton +{ + height: 27px; + width: 240px; + margin: 5px 0 5px 0; + background: url('images/buythis.png') no-repeat; +} + + +/** Project Wonderful CSS Embedded areas **/ + + +.blogpwad { + text-align: center; + width: 100%; + } + + +.headerpwad { + float: right; + margin: 5px 5px 0 0; + } + +.footerpwad { + display: block; + width: 100%; + text-align: center; + } + + + +/* Archive Calendar Template */ + + +.cpcal-month { + width: 157px; + height: 138px; + padding: 5px 0 5px 5px; + margin: 0 8px 8px 0; + float: left; + border: 1px solid #000; + } + +.cpcal-monthtitle { + width: 154px; + height: 16px; + padding: 0 0 5px 0; + text-align: center; + font-family: 'Georgia', serif; + font-variant: small-caps; + font-size: 16px; + line-height: 16px; + letter-spacing: -1px; + } +.cpcal-dayletter { + width: 20px; + height: 15px; + margin: 0 2px 2px 0; + display: block; + float: left; + text-align: center; + font-size: 10px; + line-height: 13px; + } + +.cpcal-day { + width: 18px; + height: 13px; + margin: 0 2px 2px 0; + display: block; + float: left; + text-align: center; + font-size: 10px; + line-height: 13px; + border: 1px solid #000; + } + + .cpcal-day a { + width: 18px; + height: 13px; + line-height: 13px; + display: block; + font-size: 12px; + font-weight: bold; + } + + .cpcal-day a:hover { + color: #fff; + background: #000; + } + +/* Storyline Template */ + + +#storyline, #storyline ul { + padding: 0; + margin: 0; + list-style: none; + } + +#storyline li { + padding: 0; + margin: 0; + } + +#storyline li img { + height: 50px; + display: none; + } + +#storyline li li img { + display: block; + float: right; + padding: 0 0 0 10px; + } + +#storyline ul ul { + margin: 0 0 0 20px; + } + +#storyline li li .storyline-title { + font-size: 24px; + font-weight: bold; + display: block; + color: #000; + } + +#storyline li li .storyline-title:hover { + color: #900; + } + +#storyline li li li a.storyline-title { + font-size: 18px; + } + +#storyline li li li li a.storyline-title { + font-size: 14px; + } + + .storyline-description { + font-size: 11px; + } + + .storyline-foot { + clear: both; + margin: 0 0 10px 0; + height: 10px; + border-bottom: 4px solid #000; + } + +#storyline li li .storyline-foot { + border-bottom: 2px solid #000; + } +#storyline li li li .storyline-foot { + border-bottom: 1px solid #000; + } + +/* Archive Year Template */ + + +.archive-date { + padding: 0 5px 0 0; + font-size: 11px; + white-space: nowrap; + } + +.archive-title { + padding: 2px 5px; + line-height: 11px; + border-left: 1px solid #000; + } + +.month-table{ + border-collapse: collapse; + margin: 0 0 20px 0; +} + + +#linkspage, #linkspage ul, #linkspage li { + list-style:none; +} + + +#linkspage h2 { + margin-top: 20px; +} + + +.wp-pagenavi, .paginav { + height: 25px; + line-height: 25px; + font-size: 14px; + } + + +.wp-pagenavi a, .wp-pagenavi a:link, .wp-pagenavi a:visited, .wp-pagenavi a:hover, .wp-pagenavi a:active +{ + padding: 2px; + text-decoration: none; +} + + +.wp-pagenavi span.pages { + color: #777; + margin-right: 10px; +} + + +.wp-pagenavi span.current, .paginav .current +{ + font-size: 16px; + font-weight: bold; +} + + +.wp-pagenavi span.extend { +} + + +/* Drop Bar */ + + +.dropbar +{ + position:absolute; + left:0px; + width:100%; + height:98px; + border-bottom: solid 1px #fff; + color: white; + font-family: Verdana; + font-size: 11px; + z-index:10000; + background: #000; +} + + +.dropbar .droptab +{ + position: absolute; + bottom: -23px; + left: 30px; + width: 142px; + height: 23px; + background-image: url('images/dropbar.png'); +} + + +/* members only */ + + +.members-only +{ + border: solid 1px #000; + background: #ccc; + padding: 3px; +} + + +/* Tool Tips */ + + +.tt a { + position:relative; + z-index:1000; + color:#3CA3FF; + font-weight:bold; + text-decoration:none; + margin-bottom: -100px; + + + + +} +a.tt span{ display: none; } + + +a.tt:hover span.tooltip +{ + position: absolute; + display:block; + width:200px; + color: #000; + margin: 0 auto; + text-align: center; + height: 164px; + background: url('images/anomaly.png') no-repeat; + z-index:1000; +} +a.tt:hover span.top{ + display: block; + width: 200px; + height: 20px; + padding-top: 10px; + margin-top: 55px; + margin-left: 25px; + background: url('images/bubble.gif') no-repeat top; + z-index:1000; +} +a.tt:hover span.middle{ /* different middle bg for stretch */ + display: block; + width: 190px; + margin-left: 25px; + padding: 0 5px 0 5px; + background: url('images/bubble_filler.gif') repeat bottom; + z-index:1000; +} +a.tt:hover span.bottom{ + display: block; + width: 200px; + height: 15px; + background-position: -100px; + color: #548912; + margin-left: 25px; + background: url('images/bubble.gif') no-repeat bottom; + z-index:1000; +} + + +/* User Pages */ + + +#userpage { + width: 100%; + padding: 5px; +} + + +.userpage-avatar { + float: left; + width: 64px; + height: 64px; + border: 1px solid #000; +} + + +.userpage-info { + margin-left: 10px; + float: left; +} + + +.userpage-desc +{ + width: 400px; + padding: 5px; + margin-top: 30px; + border: 1px dotted #efefef; +} + + +.userpage-posts +{ + margin-top: 20px; +} + + +.userpage-posts ol { + margin: 10px 0 0 30px; + padding: 0; +} + + +.userpage-posts li { + list-style: none; + margin: 0; + padding: 0; +} + + diff --git a/swfobject/src/expressInstall.as b/swfobject/src/expressInstall.as index b98e592..ce5973f 100644 --- a/swfobject/src/expressInstall.as +++ b/swfobject/src/expressInstall.as @@ -1,70 +1,70 @@ -/* SWFObject v2.2 is released under the MIT License - Express Install Copyright (c) 2007-2008 Adobe Systems Incorporated and its licensors. All Rights Reserved. -*/ - -System.security.allowDomain("fpdownload.macromedia.com"); - -var time = 0; -var timeOut = 5; // in seconds -var delay = 10; // in milliseconds -var int_id = setInterval(checkLoaded, delay); -var old_si = null; -var loaderClip = this.createEmptyMovieClip("loaderClip", 0); -var updateSWF = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(); -loaderClip.loadMovie(updateSWF); - -function checkLoaded(){ - time += delay / 1000; - if (time > timeOut) { - // updater did not load in time, abort load and force alternative content - clearInterval(int_id); - loaderClip.unloadMovie(); - loadTimeOut(); - } - else if (loaderClip.startInstall.toString() == "[type Function]") { - // updater has loaded successfully AND has determined that it can do the express install - if (old_si == null) { - old_si = loaderClip.startInstall; - loaderClip.startInstall = function() { - clearInterval(int_id); - old_si(); - } - loadComplete(); - } - } -} - -function loadTimeOut() { - callbackSWFObject(); -} - -function callbackSWFObject() { - getURL("javascript:swfobject.expressInstallCallback();"); -} - -function loadComplete() { - loaderClip.redirectURL = _level0.MMredirectURL; - loaderClip.MMplayerType = _level0.MMplayerType; - loaderClip.MMdoctitle = _level0.MMdoctitle; - loaderClip.startUpdate(); -} - -function installStatus(statusValue) { - switch (statusValue) { - case "Download.Complete": - // Installation is complete. - // In most cases the browser window that this SWF is hosted in will be closed by the installer or otherwise it has to be closed manually by the end user. - // The Adobe Flash installer will attempt to reopen the browser window and reload the page containing the SWF. - break; - case "Download.Cancelled": - // The end user chose "NO" when prompted to install the new player. - // By default the SWFObject callback function is called to force alternative content. - callbackSWFObject(); - break; - case "Download.Failed": - // The end user failed to download the installer due to a network failure. - // By default the SWFObject callback function is called to force alternative content. - callbackSWFObject(); - break; - } -} +/* SWFObject v2.2 is released under the MIT License + Express Install Copyright (c) 2007-2008 Adobe Systems Incorporated and its licensors. All Rights Reserved. +*/ + +System.security.allowDomain("fpdownload.macromedia.com"); + +var time = 0; +var timeOut = 5; // in seconds +var delay = 10; // in milliseconds +var int_id = setInterval(checkLoaded, delay); +var old_si = null; +var loaderClip = this.createEmptyMovieClip("loaderClip", 0); +var updateSWF = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(); +loaderClip.loadMovie(updateSWF); + +function checkLoaded(){ + time += delay / 1000; + if (time > timeOut) { + // updater did not load in time, abort load and force alternative content + clearInterval(int_id); + loaderClip.unloadMovie(); + loadTimeOut(); + } + else if (loaderClip.startInstall.toString() == "[type Function]") { + // updater has loaded successfully AND has determined that it can do the express install + if (old_si == null) { + old_si = loaderClip.startInstall; + loaderClip.startInstall = function() { + clearInterval(int_id); + old_si(); + } + loadComplete(); + } + } +} + +function loadTimeOut() { + callbackSWFObject(); +} + +function callbackSWFObject() { + getURL("javascript:swfobject.expressInstallCallback();"); +} + +function loadComplete() { + loaderClip.redirectURL = _level0.MMredirectURL; + loaderClip.MMplayerType = _level0.MMplayerType; + loaderClip.MMdoctitle = _level0.MMdoctitle; + loaderClip.startUpdate(); +} + +function installStatus(statusValue) { + switch (statusValue) { + case "Download.Complete": + // Installation is complete. + // In most cases the browser window that this SWF is hosted in will be closed by the installer or otherwise it has to be closed manually by the end user. + // The Adobe Flash installer will attempt to reopen the browser window and reload the page containing the SWF. + break; + case "Download.Cancelled": + // The end user chose "NO" when prompted to install the new player. + // By default the SWFObject callback function is called to force alternative content. + callbackSWFObject(); + break; + case "Download.Failed": + // The end user failed to download the installer due to a network failure. + // By default the SWFObject callback function is called to force alternative content. + callbackSWFObject(); + break; + } +} diff --git a/widgets/blank-widget.php b/widgets/blank-widget.php index bc968d0..7eeee18 100644 --- a/widgets/blank-widget.php +++ b/widgets/blank-widget.php @@ -1,14 +1,14 @@ - \ No newline at end of file diff --git a/widgets/bookmark.php b/widgets/bookmark.php index 569eb0e..c521ed8 100644 --- a/widgets/bookmark.php +++ b/widgets/bookmark.php @@ -1,154 +1,154 @@ - -
    - -
    - 'widget_comicpress_bookmark', 'description' => 'Creates a set of buttons that let the user return to the page they tagged.' ); - $this->WP_Widget('comicpress_bookmark', 'ComicPress Bookmark', $widget_ops); - } - - function widget($args, $instance) { - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - comicpress_comic_bookmark(); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - +
    + +
    + 'widget_comicpress_bookmark', 'description' => 'Creates a set of buttons that let the user return to the page they tagged.' ); + $this->WP_Widget('comicpress_bookmark', 'ComicPress Bookmark', $widget_ops); + } + + function widget($args, $instance) { + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + comicpress_comic_bookmark(); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/buythisprint.php b/widgets/buythisprint.php index 3bfe5b2..797587b 100644 --- a/widgets/buythisprint.php +++ b/widgets/buythisprint.php @@ -1,64 +1,64 @@ - -
    - -
    -
    - 'widget_comicpress_buy_this_print', 'description' => 'Adds a button that goes to the buy print template page.' ); - $this->WP_Widget('comicpress_buyprint', 'Buy This Print', $widget_ops); - } - - function widget($args, $instance) { - global $buy_print_url; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - buy_this_print_comic(); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - +
    + +
    +
    + 'widget_comicpress_buy_this_print', 'description' => 'Adds a button that goes to the buy print template page.' ); + $this->WP_Widget('comicpress_buyprint', 'Buy This Print', $widget_ops); + } + + function widget($args, $instance) { + global $buy_print_url; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + buy_this_print_comic(); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/calendar.php b/widgets/calendar.php index 8a464ca..3fd2b42 100644 --- a/widgets/calendar.php +++ b/widgets/calendar.php @@ -1,53 +1,53 @@ - 'widget_comicpress_calendar', 'description' => 'Display a calendar showing this months posts. (this calendar does not drop lines if there is no title given.)' ); - $this->WP_Widget('comicpress_calendar', 'Comicpress Calendar', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - get_calendar(); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - 'widget_comicpress_calendar', 'description' => 'Display a calendar showing this months posts. (this calendar does not drop lines if there is no title given.)' ); + $this->WP_Widget('comicpress_calendar', 'Comicpress Calendar', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + get_calendar(); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/comiccomments.php b/widgets/comiccomments.php index 7968979..44d51cd 100644 --- a/widgets/comiccomments.php +++ b/widgets/comiccomments.php @@ -1,53 +1,53 @@ - 'widget_comicpress_comments', 'description' => 'Displays a comments link.' ); - $this->WP_Widget('comic_comments', 'Comic Comments', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? 'Permalink' : apply_filters('widget_title', $instance['title']); ?> - comment_status) { comments_popup_link('“Comment!”', '“1 Comment”', '“% Comments”'); } ?> - '') ); - $title = strip_tags($instance['title']); - ?> -

    - 'widget_comicpress_comments', 'description' => 'Displays a comments link.' ); + $this->WP_Widget('comic_comments', 'Comic Comments', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? 'Permalink' : apply_filters('widget_title', $instance['title']); ?> + comment_status) { comments_popup_link('“Comment!”', '“1 Comment”', '“% Comments”'); } ?> + '') ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/comicdate.php b/widgets/comicdate.php index 576e5a9..9db5830 100644 --- a/widgets/comicdate.php +++ b/widgets/comicdate.php @@ -1,53 +1,53 @@ - 'widget_comicpress_comic_date', 'description' => 'Displays the date of the post of the comic.' ); - $this->WP_Widget('comic_date', 'Comic Date', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $title; } ?> - '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - - 'widget_comicpress_comic_date', 'description' => 'Displays the date of the post of the comic.' ); + $this->WP_Widget('comic_date', 'Comic Date', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $title; } ?> + '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + + \ No newline at end of file diff --git a/widgets/comictitle.php b/widgets/comictitle.php index 9b9e826..c3a8f40 100644 --- a/widgets/comictitle.php +++ b/widgets/comictitle.php @@ -1,45 +1,45 @@ - 'widget_comicpress_comictitle', 'description' => 'Displays the title of the comic.' ); - $this->WP_Widget('comictitle', 'Comic Title', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - the_title(); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - return $instance; - } - - function form($instance) { - } -} -register_widget('widget_comicpress_comictitle'); - - -function widget_comicpress_comictitle_init() { - new widget_comicpress_comictitle(); -} - -add_action('widgets_init', 'widget_comicpress_comictitle_init'); - + 'widget_comicpress_comictitle', 'description' => 'Displays the title of the comic.' ); + $this->WP_Widget('comictitle', 'Comic Title', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + the_title(); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + return $instance; + } + + function form($instance) { + } +} +register_widget('widget_comicpress_comictitle'); + + +function widget_comicpress_comictitle_init() { + new widget_comicpress_comictitle(); +} + +add_action('widgets_init', 'widget_comicpress_comictitle_init'); + ?> \ No newline at end of file diff --git a/widgets/control-panel.php b/widgets/control-panel.php index 0484c6c..8a61663 100644 --- a/widgets/control-panel.php +++ b/widgets/control-panel.php @@ -1,99 +1,99 @@ - - - 'widget_comicpress_show_control_panel', 'description' => 'Login/Logoff menu with register/lost password links if not logged on.' ); - $this->WP_Widget('control_panel', 'Control Panel', $widget_ops); - } - - function widget($args, $instance) { - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? 'Control Panel' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - comicpress_show_control_panel(); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - + + 'widget_comicpress_show_control_panel', 'description' => 'Login/Logoff menu with register/lost password links if not logged on.' ); + $this->WP_Widget('control_panel', 'Control Panel', $widget_ops); + } + + function widget($args, $instance) { + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? 'Control Panel' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + comicpress_show_control_panel(); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/graphical-navigation.php b/widgets/graphical-navigation.php index e34065e..3553256 100644 --- a/widgets/graphical-navigation.php +++ b/widgets/graphical-navigation.php @@ -1,101 +1,101 @@ -is_single; - $wp_query->is_single = true; - $prev_comic = get_previous_comic_permalink(); - $next_comic = get_next_comic_permalink(); - $wp_query->is_single = $temp_query; - $temp_query = null; - - $first_comic = get_first_comic_permalink(); - $last_comic = get_last_comic_permalink(); - - echo '
    '; - echo '
    '; - echo '
    '; - - if (!empty($first_comic) && ($first_comic != $this_permalink)) { - echo '  '; - } else { - echo '
    '; - } - - if (!empty($prev_comic)) { - echo '  '; - } else { - echo '
    '; - } - echo '
    '; - echo '
    '; - echo '
    '; - - if (!empty($next_comic)) { - echo '  '; - } else { - echo '
    '; - } - - if (!empty($last_comic) && ($last_comic != $this_permalink)) { - echo '  '; - } else { - echo '
    '; - } - echo '
    '; - echo '
    '; - echo '
    '; - echo '
    '; - echo '  '; - echo '
    '; - echo '
    '; - echo '
    '; - echo '
    '; - echo '
    '; - -} - - -class widget_comicpress_graphical_navigation extends WP_Widget { - - function widget_comicpress_graphical_navigation() { - $widget_ops = array('classname' => 'widget_comicpress_graphical_navigation', 'description' => 'Displays Graphical Navigation Buttons.' ); - $this->WP_Widget('graphicalnavigation', 'Comic Navigation', $widget_ops); - } - - function widget($args, $instance) { - global $wp_query, $post; - extract($args, EXTR_SKIP); - echo $before_widget; - comic_navigation(); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - } - - function form($instance) { - } -} -register_widget('widget_comicpress_graphical_navigation'); - - -function widget_comicpress_graphical_navigation_init() { - new widget_comicpress_graphical_navigation(); -} - -add_action('widgets_init', 'widget_comicpress_graphical_navigation_init'); - +is_single; + $wp_query->is_single = true; + $prev_comic = get_previous_comic_permalink(); + $next_comic = get_next_comic_permalink(); + $wp_query->is_single = $temp_query; + $temp_query = null; + + $first_comic = get_first_comic_permalink(); + $last_comic = get_last_comic_permalink(); + + echo '
    '; + echo '
    '; + echo '
    '; + + if (!empty($first_comic) && ($first_comic != $this_permalink)) { + echo '  '; + } else { + echo '
    '; + } + + if (!empty($prev_comic)) { + echo '  '; + } else { + echo '
    '; + } + echo '
    '; + echo '
    '; + echo '
    '; + + if (!empty($next_comic)) { + echo '  '; + } else { + echo '
    '; + } + + if (!empty($last_comic) && ($last_comic != $this_permalink)) { + echo '  '; + } else { + echo '
    '; + } + echo '
    '; + echo '
    '; + echo '
    '; + echo '
    '; + echo '  '; + echo '
    '; + echo '
    '; + echo '
    '; + echo '
    '; + echo '
    '; + +} + + +class widget_comicpress_graphical_navigation extends WP_Widget { + + function widget_comicpress_graphical_navigation() { + $widget_ops = array('classname' => 'widget_comicpress_graphical_navigation', 'description' => 'Displays Graphical Navigation Buttons.' ); + $this->WP_Widget('graphicalnavigation', 'Comic Navigation', $widget_ops); + } + + function widget($args, $instance) { + global $wp_query, $post; + extract($args, EXTR_SKIP); + echo $before_widget; + comic_navigation(); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + } + + function form($instance) { + } +} +register_widget('widget_comicpress_graphical_navigation'); + + +function widget_comicpress_graphical_navigation_init() { + new widget_comicpress_graphical_navigation(); +} + +add_action('widgets_init', 'widget_comicpress_graphical_navigation_init'); + ?> \ No newline at end of file diff --git a/widgets/keenspotnewsbox.php b/widgets/keenspotnewsbox.php index e0c305d..0851a93 100644 --- a/widgets/keenspotnewsbox.php +++ b/widgets/keenspotnewsbox.php @@ -1,51 +1,51 @@ - 'widget_keenspot_newsbox', 'description' => 'Displays the keenspot newsbox.' ); - $this->WP_Widget('keenspotnewsbox', 'Keenspot Newsbox', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - echo '
    '; - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - + 'widget_keenspot_newsbox', 'description' => 'Displays the keenspot newsbox.' ); + $this->WP_Widget('keenspotnewsbox', 'Keenspot Newsbox', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + echo '
    '; + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + diff --git a/widgets/latestcomicjump.php b/widgets/latestcomicjump.php index 4064102..88de040 100644 --- a/widgets/latestcomicjump.php +++ b/widgets/latestcomicjump.php @@ -1,63 +1,63 @@ - 'widget_comicpress_latest_comic_jump', 'description' => 'Displays a link to click to go to the latest comic.' ); - $this->WP_Widget('latest_comic_jump', 'Latest Comic Link', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> -

    ? Latest Comic

    - '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - 'widget_comicpress_latest_comic_jump', 'description' => 'Displays a link to click to go to the latest comic.' ); + $this->WP_Widget('latest_comic_jump', 'Latest Comic Link', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> +

    ? Latest Comic

    + '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/latestcomics.php b/widgets/latestcomics.php index 153ba30..2b89b41 100644 --- a/widgets/latestcomics.php +++ b/widgets/latestcomics.php @@ -1,74 +1,74 @@ - -
      -
    • -

      Latest Comics

      -
        - -
      • - -
      -
    • -
    - 'widget_comicpress_latest_comics', 'description' => 'Display a list of the latest comics available.' ); - $this->WP_Widget('latest_comics', 'Latest Comics', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? 'Latest Comics' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - $latestcomics = get_posts('numberposts=5&category='.get_all_comic_categories_as_cat_string()); ?> -
      - -
    • - -
    - '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - +
      +
    • +

      Latest Comics

      +
        + +
      • + +
      +
    • +
    + 'widget_comicpress_latest_comics', 'description' => 'Display a list of the latest comics available.' ); + $this->WP_Widget('latest_comics', 'Latest Comics', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? 'Latest Comics' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + $latestcomics = get_posts('numberposts=5&category='.get_all_comic_categories_as_cat_string()); ?> +
      + +
    • + +
    + '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/latestthumb.php b/widgets/latestthumb.php index 4f25504..c1d6496 100644 --- a/widgets/latestthumb.php +++ b/widgets/latestthumb.php @@ -1,58 +1,58 @@ - 'widget_comicpress_latest_thumbnail', 'description' => 'Display a thumbnail of the latest comic, clickable to go to the comic post.' ); - $this->WP_Widget('latest_thumbnail', 'Latest Comic', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? 'Latest Comic' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - $latestcomics = get_posts('numberposts=1&category='.get_all_comic_categories_as_cat_string()); - foreach($latestcomics as $post) : ?> -
    - <?php the_title() ?>
    -
    - '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - 'widget_comicpress_latest_thumbnail', 'description' => 'Display a thumbnail of the latest comic, clickable to go to the comic post.' ); + $this->WP_Widget('latest_thumbnail', 'Latest Comic', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? 'Latest Comic' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + $latestcomics = get_posts('numberposts=1&category='.get_all_comic_categories_as_cat_string()); + foreach($latestcomics as $post) : ?> +
    + <?php the_title() ?>
    +
    + '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/menubar.php b/widgets/menubar.php index a6bc97b..d5a5bba 100644 --- a/widgets/menubar.php +++ b/widgets/menubar.php @@ -1,115 +1,115 @@ - - - 'widget_comicpress_menubar', 'description' => 'Displays a menubar.' ); - $this->WP_Widget('comicpress_menubar', 'Comicpress Menubar', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - comicpress_menubar(); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - + + 'widget_comicpress_menubar', 'description' => 'Displays a menubar.' ); + $this->WP_Widget('comicpress_menubar', 'Comicpress Menubar', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + comicpress_menubar(); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/permalink.php b/widgets/permalink.php index 1522907..8d04cb9 100644 --- a/widgets/permalink.php +++ b/widgets/permalink.php @@ -1,57 +1,57 @@ - 'widget_comicpress_permalink', 'description' => 'Displays a permalink.' ); - $this->WP_Widget('permalink', 'Permalink', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? 'Permalink' : apply_filters('widget_title', $instance['title']); ?> - - '' , 'comment' => '') ); - $title = strip_tags($instance['title']); - $comment = strip_tags($instance['comment']); - ?> -

    -

    - - 'widget_comicpress_permalink', 'description' => 'Displays a permalink.' ); + $this->WP_Widget('permalink', 'Permalink', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? 'Permalink' : apply_filters('widget_title', $instance['title']); ?> + + '' , 'comment' => '') ); + $title = strip_tags($instance['title']); + $comment = strip_tags($instance['comment']); + ?> +

    +

    + + \ No newline at end of file diff --git a/widgets/randomcomic.php b/widgets/randomcomic.php index 306b21a..12576bb 100644 --- a/widgets/randomcomic.php +++ b/widgets/randomcomic.php @@ -1,68 +1,68 @@ -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' ); - -class widget_comicpress_random_comic extends WP_Widget { - - function widget_comicpress_random_comic() { - $widget_ops = array('classname' => 'widget_comicpress_random_comic', 'description' => 'Displays a link to click to trigger a random comic.' ); - $this->WP_Widget('random_comic', 'Random Comic', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> -

    ? Random Comic

    - '' ) ); - $title = strip_tags($instance['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' ); + +class widget_comicpress_random_comic extends WP_Widget { + + function widget_comicpress_random_comic() { + $widget_ops = array('classname' => 'widget_comicpress_random_comic', 'description' => 'Displays a link to click to trigger a random comic.' ); + $this->WP_Widget('random_comic', 'Random Comic', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> +

    ? Random Comic

    + '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/randompost.php b/widgets/randompost.php index 41d9f00..6a5f26b 100644 --- a/widgets/randompost.php +++ b/widgets/randompost.php @@ -1,67 +1,67 @@ -query('showposts=1&orderby=rand&cat=-'.exclude_comic_categories()); - 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['randompost'] ) ) - add_action( 'template_redirect', 'random_post' ); - -class widget_comicpress_random_post extends WP_Widget { - - function widget_comicpress_random_post() { - $widget_ops = array('classname' => 'widget_comicpress_random_post', 'description' => 'Displays a link to click to trigger a random blog post.' ); - $this->WP_Widget('random_post', 'Random Post', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> -

    ? Random Post

    - '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - query('showposts=1&orderby=rand&cat=-'.exclude_comic_categories()); + 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['randompost'] ) ) + add_action( 'template_redirect', 'random_post' ); + +class widget_comicpress_random_post extends WP_Widget { + + function widget_comicpress_random_post() { + $widget_ops = array('classname' => 'widget_comicpress_random_post', 'description' => 'Displays a link to click to trigger a random blog post.' ); + $this->WP_Widget('random_post', 'Random Post', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?> +

    ? Random Post

    + '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/scheduledposts.php b/widgets/scheduledposts.php index a946c00..a1f9ac9 100644 --- a/widgets/scheduledposts.php +++ b/widgets/scheduledposts.php @@ -1,64 +1,64 @@ - 'widget_comicpress_show_scheduled_posts', 'description' => 'Display a list of posts that are scheduled to be published.' ); - $this->WP_Widget('show_scheduled_posts', 'Scheduled Posts', $widget_ops); - } - - function widget($args, $instance) { - extract($args, EXTR_SKIP); - - echo '
    '; - echo $before_widget; - $title = empty($instance['title']) ? 'Scheduled Posts' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - $scheduled_posts = get_posts('post_status=future&numberposts=-1'); - if (empty($scheduled_posts)) { - echo '
    • None.
    '; - } else { - foreach($scheduled_posts as $post) : ?> -
      -
    • post_title; ?> -
    • -
    - '; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - 'widget_comicpress_show_scheduled_posts', 'description' => 'Display a list of posts that are scheduled to be published.' ); + $this->WP_Widget('show_scheduled_posts', 'Scheduled Posts', $widget_ops); + } + + function widget($args, $instance) { + extract($args, EXTR_SKIP); + + echo '
    '; + echo $before_widget; + $title = empty($instance['title']) ? 'Scheduled Posts' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + $scheduled_posts = get_posts('post_status=future&numberposts=-1'); + if (empty($scheduled_posts)) { + echo '
    • None.
    '; + } else { + foreach($scheduled_posts as $post) : ?> +
      +
    • post_title; ?> +
    • +
    + '; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/searchtranscript.php b/widgets/searchtranscript.php index cf12452..d13e60c 100644 --- a/widgets/searchtranscript.php +++ b/widgets/searchtranscript.php @@ -1,53 +1,53 @@ - 'widget_comicpress_search_transcripts', 'description' => 'Displays a form input box for searching transcripts.' ); - $this->WP_Widget('comicpress_search_transcripts', 'Search Transcripts', $widget_ops); - } - - function widget($args, $instance) { - global $post; - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - include(get_template_directory() . '/searchform-transcript.php'); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); - $title = strip_tags($instance['title']); - ?> -

    - 'widget_comicpress_search_transcripts', 'description' => 'Displays a form input box for searching transcripts.' ); + $this->WP_Widget('comicpress_search_transcripts', 'Search Transcripts', $widget_ops); + } + + function widget($args, $instance) { + global $post; + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + include(get_template_directory() . '/searchform-transcript.php'); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $title = strip_tags($instance['title']); + ?> +

    + \ No newline at end of file diff --git a/widgets/transcription.php b/widgets/transcription.php index 287e552..1ef566f 100644 --- a/widgets/transcription.php +++ b/widgets/transcription.php @@ -1,62 +1,62 @@ - 'widget_comicpress_show_transcription', 'description' => 'Display the transcription of the current post if there is one.' ); - $this->WP_Widget('transcript', 'Transcript', $widget_ops); - } - - function widget($args, $instance) { - extract($args, EXTR_SKIP); - - echo $before_widget; - $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); - $transtype = empty($instance['transtype']) ? 'empty' : apply_filters('widget_transtype', $instance['transtype']); - if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; - the_transcript($transtype); - echo $after_widget; - } - - function update($new_instance, $old_instance) { - $instance = $old_instance; - $instance['title'] = strip_tags($new_instance['title']); - $instance['transtype'] = strip_tags($new_instance['transtype']); - return $instance; - } - - function form($instance) { - $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'transtype' => '' ) ); - $title = strip_tags($instance['title']); - $transtype = strip_tags($instance['transtype']); - if (empty($transtype)) $transtype = 'styled'; - ?> -

    -

    -
    -
    - -

    - 'widget_comicpress_show_transcription', 'description' => 'Display the transcription of the current post if there is one.' ); + $this->WP_Widget('transcript', 'Transcript', $widget_ops); + } + + function widget($args, $instance) { + extract($args, EXTR_SKIP); + + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + $transtype = empty($instance['transtype']) ? 'empty' : apply_filters('widget_transtype', $instance['transtype']); + if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; + the_transcript($transtype); + echo $after_widget; + } + + function update($new_instance, $old_instance) { + $instance = $old_instance; + $instance['title'] = strip_tags($new_instance['title']); + $instance['transtype'] = strip_tags($new_instance['transtype']); + return $instance; + } + + function form($instance) { + $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'transtype' => '' ) ); + $title = strip_tags($instance['title']); + $transtype = strip_tags($instance['transtype']); + if (empty($transtype)) $transtype = 'styled'; + ?> +

    +

    +
    +
    + +

    + \ No newline at end of file diff --git a/wpmu-functions.php b/wpmu-functions.php index cf44ebe..99bfe50 100644 --- a/wpmu-functions.php +++ b/wpmu-functions.php @@ -1,52 +1,52 @@ -post_date); - - $filter_with_date = str_replace('{date}', $post_date, $filter_to_use); - - if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) { - $comic = reset($results); - - if ($wpmu_path !== false) { $comic = str_replace($wpmu_path, "files", $comic); } - - return $comic; - } - - $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; - } -} +post_date); + + $filter_with_date = str_replace('{date}', $post_date, $filter_to_use); + + if (count($results = glob("${folder_to_use}/${filter_with_date}")) > 0) { + $comic = reset($results); + + if ($wpmu_path !== false) { $comic = str_replace($wpmu_path, "files", $comic); } + + return $comic; + } + + $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; + } +} ?> \ No newline at end of file