@@ -134,7 +129,7 @@
-
+
No entries found.
diff --git a/archives.php b/archives.php index 82da40a..50f2fb4 100644 --- a/archives.php +++ b/archives.php @@ -5,34 +5,29 @@ Template Name: Archives ?> - - +
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
+
-
+
+
diff --git a/author.php b/author.php
index 0198286..37c360e 100644
--- a/author.php
+++ b/author.php
@@ -1,33 +1,25 @@
-
-
+
-
-
+
-
-
-
-
+
+
+
-
-
-
-
-
-
-
+
+
+
-
-
+
-
+
No such author.
-
+
diff --git a/blog.php b/blog.php
index 8f7bd3c..0c5d1fc 100644
--- a/blog.php
+++ b/blog.php
@@ -5,33 +5,27 @@ Template Name: Blog
?>
-
-
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
diff --git a/buystrip.php b/buystrip.php
index 5c5ce17..f182fb6 100644
--- a/buystrip.php
+++ b/buystrip.php
@@ -9,38 +9,32 @@ Templete Author Email: philip@frumph.net
?>
-
-
+
-
+
+ comicpress_pagination();
-
-
+ endif; ?>
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
+
-
+
@@ -115,7 +109,7 @@ Templete Author Email: philip@frumph.net
-
+
diff --git a/comments.php b/comments.php
index 8b3b6a5..b24f8f4 100644
--- a/comments.php
+++ b/comments.php
@@ -1,18 +1,18 @@
-
-
\ No newline at end of file
diff --git a/functions.php b/functions.php
index 767203c..b576c38 100644
--- a/functions.php
+++ b/functions.php
@@ -5,7 +5,7 @@ if (function_exists('id_get_comment_number')) {
remove_filter('comments_number','id_get_comment_number');
}
-$comicpress_version = '2.8.1.7';
+$comicpress_version = '2.8.1.8';
// Remove the wptexturizer from changing the quotes and squotes.
// remove_filter('the_title', 'wptexturize');
diff --git a/functions/classes.php b/functions/classes.php
new file mode 100644
index 0000000..ef20fd2
--- /dev/null
+++ b/functions/classes.php
@@ -0,0 +1,128 @@
+ tag where you can then do .ie #page and do things specific
+ * for each browser type as well as a few other classes that the normal body_class
+ * does not yet support.
+ *
+ * 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','comicpress_body_class');
+
+function comicpress_body_class($classes = '') {
+ global $current_user, $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone, $post, $wp_query, $cp_theme_layout;
+
+ $current_user = get_currentuserinfo();
+ if (!empty($current_user)) {
+ $user_login = addslashes($current_user->user_login);
+ $classes[] = 'user-'.$user_login;
+ } else {
+ $classes[] = 'user-guest';
+ }
+
+ 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';
+
+// Hijacked from the hybrid theme, http://themehybrid.com/
+ if (is_single()) {
+ foreach ( (array)get_the_category( $wp_query->post->ID ) as $cat ) :
+ $classes[] = 'single-category-' . sanitize_html_class( $cat->slug, $cat->term_id );
+ endforeach;
+ $classes[] = 'single-author-' . get_the_author_meta( 'user_nicename', $wp_query->post->post_author );
+ }
+
+ if ( is_sticky( $wp_query->post->ID ) ) {
+ $classes[] = 'single-sticky';
+ }
+
+// NOT hijacked from anything, doi! people should do this.
+ $rightnow = date('gi');
+ $ampm = date('a');
+ $classes[] = $ampm;
+
+ if ($ampm == 'am') {
+ if ((int)$rightnow < 30) $classes[] = 'midnight';
+ if ((int)$rightnow < 560) $classes[] = 'night';
+ if ((int)$rightnow > 559 && (int)$rightnow < 1130) $classes[] = 'morning';
+ if ((int)$rightnow > 1129) $classes[]='noon';
+ } else {
+ if ((int)$rightnow < 30) $classes[] = 'noon';
+ if ((int)$rightnow < 560) $classes[] = 'day';
+ if ((int)$rightnow > 559 && (int)$rightnow < 1130) $classes[] = 'evening';
+ if ((int)$rightnow > 1129) $classes[]='midnight';
+ }
+
+ if ( is_attachment() ) {
+ $classes[] = 'attachment attachment-' . $wp_query->post->ID;
+ $mime_type = explode( '/', get_post_mime_type() );
+ foreach ( $mime_type as $type ) :
+ $classes[] = 'attachment-' . $type;
+ endforeach;
+ }
+
+ $classes[] = 'layout-'.$cp_theme_layout;
+
+ return $classes;
+}
+
+function comicpress_blogpost_class($class = '') {
+ global $post;
+ static $post_alt;
+
+ $args = array(
+ 'entry_tax' => array( 'category', 'post_tag' )
+ );
+
+ /* Microformats. */
+ $classes[] = 'hentry';
+
+ /* Post alt class. */
+ $classes[] = 'post-' . ++$post_alt;
+
+ if ( $post_alt % 2 )
+ $classes[] = 'odd';
+ else
+ $classes[] = 'even alt';
+
+ /* Sticky class (only on home/blog page). */
+ if( is_sticky() && is_home() )
+ $classes[] = 'sticky';
+
+ /* Author class. */
+ if ( !is_attachment() )
+ $classes[] = 'post-author-' . sanitize_html_class( get_the_author_meta( 'user_nicename' ), get_the_author_meta( 'ID' ) );
+
+ /* Password-protected posts. */
+ if ( post_password_required() )
+ $classes[] = 'protected';
+
+ /* User-created classes. */
+ if ( !empty( $class ) ) :
+ if ( !is_array( $class ) )
+ $class = preg_split( '#\s+#', $class );
+ $classes = array_merge( $classes, $class );
+ endif;
+
+ /* Join all the classes into one string and echo them. */
+ $class = join( ' ', $classes );
+
+ echo apply_filters( 'comicpress_blogpost_class', $class );
+}
+
+?>
\ No newline at end of file
diff --git a/functions/displayblogpost.php b/functions/displayblogpost.php
index cc37680..efb75ac 100644
--- a/functions/displayblogpost.php
+++ b/functions/displayblogpost.php
@@ -8,7 +8,7 @@
function display_blog_post() {
global $post, $wp_query, $authordata, $enable_related_posts, $enable_post_author_gravatar, $enable_post_calendar, $themepack_directory; ?>
-
-
-if ( have_comments() ) : ?>
>
+
+
+
-
-
-
+[ ]
@@ -80,67 +80,56 @@ if ( have_comments() ) : ?>
-
-comment_status) : ?>
+ comment_status) : ?>
-
-
-
-
+
+
+
+
+
+
+
+
comment_status) : ?>
-
+
-ID); ?>
-
-
-
-
-NOTE - You can use these tags:
-
-
-
-
-
-
-
-
-
+
diff --git a/functions/displaycomicpost.php b/functions/displaycomicpost.php
index 6ec783e..5860411 100644
--- a/functions/displaycomicpost.php
+++ b/functions/displaycomicpost.php
@@ -17,7 +17,7 @@ function display_comic_post() {
-
+
diff --git a/functions/moods.php b/functions/moods.php
index 1df6085..2310e2d 100644
--- a/functions/moods.php
+++ b/functions/moods.php
@@ -33,9 +33,9 @@ function comicpress_showmood_edit_post() {
$moods_directory = get_option('comicpress-moods_directory');
if (!empty($moods_directory) && $moods_directory != 'none') { ?>
-
+