making sure everything is using comicpress_display_post() that should

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-24 15:09:56 -08:00
parent fd66df637a
commit 67a1a155aa
7 changed files with 24 additions and 26 deletions

View File

@ -1,7 +1,7 @@
<?php get_header(); ?> <?php get_header(); ?>
<?php include(get_template_directory() . '/layout-head.php'); ?> <?php include(get_template_directory() . '/layout-head.php'); ?>
<div class="post post-404"> <div class="post page post-404">
<div class="post-head"></div> <div class="post-head"></div>
<div class="post-content"> <div class="post-content">
<h2 class="pagetitle"><?php _e('Page Not Found','comicpress'); ?></h2> <h2 class="pagetitle"><?php _e('Page Not Found','comicpress'); ?></h2>

View File

@ -17,10 +17,9 @@
} else { } else {
$posts = query_posts($query_string.'&order='.$archive_display_order); $posts = query_posts($query_string.'&order='.$archive_display_order);
} ?> } ?>
<div class="<?php comicpress_post_class(); ?>"> <div <?php post_class(); ?>>
<div class="post-page-head"></div> <div class="post-head"></div>
<div class="post-page"> <div class="post-content">
<div class="content">
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* Category Archive */ if (is_category()) { ?> <?php /* Category Archive */ if (is_category()) { ?>
<h2 class="pagetitle"><?php _e('Archive for &#8216;','comicpress'); ?><?php single_cat_title() ?>&#8217;</h2> <h2 class="pagetitle"><?php _e('Archive for &#8216;','comicpress'); ?><?php single_cat_title() ?>&#8217;</h2>
@ -38,17 +37,16 @@
<h2 class="pagetitle"><?php _e('Archives','comicpress'); ?></h2> <h2 class="pagetitle"><?php _e('Archives','comicpress'); ?></h2>
<?php } ?> <?php } ?>
<div class="searchresults"><?php printf(__ngettext("%d item.", "%d items.", $count,'comicpress'),$count); ?></div> <div class="searchresults"><?php printf(__ngettext("%d item.", "%d items.", $count,'comicpress'),$count); ?></div>
</div>
<br class="clear-margins" /> <br class="clear-margins" />
</div> </div>
<div class="post-page-foot"></div> <div class="post-foot"></div>
</div> </div>
<?php if (is_category() && in_comic_category()) { ?> <?php if (is_category() && in_comic_category()) { ?>
<div class="<?php comicpress_post_class(); ?>"> <div <?php post_class(); ?>>
<div class="post-page-head"></div> <div class="post-head"></div>
<div class="post-page"> <div class="post-content">
<?php } ?> <?php } ?>
<?php while (have_posts()) : the_post(); <?php while (have_posts()) : the_post();
@ -63,9 +61,9 @@
<?php } else { ?> <?php } else { ?>
<?php if (in_comic_category()) { <?php if (in_comic_category()) {
display_comic_post(); comicpress_display_post();
} else { } else {
display_blog_post(); comicpress_display_post();
} }
} }
@ -75,21 +73,21 @@
<br class="clear-margins" /> <br class="clear-margins" />
</div> </div>
<div class="post-page-foot"></div> <div class="post-foot"></div>
</div> </div>
<?php } ?> <?php } ?>
<div class="clear"></div> <div class="clear"></div>
<?php else : ?> <?php else : ?>
<div class="<?php comicpress_post_class(); ?>"> <div <?php post_class(); ?>>
<div class="post-page-head"></div> <div class="post-head"></div>
<div class="post-page"> <div class="post">
<h3><?php _e('No entries found.','comicpress'); ?></h3> <h3><?php _e('No entries found.','comicpress'); ?></h3>
<p><?php _e('Try another search?','comicpress'); ?></p> <p><?php _e('Try another search?','comicpress'); ?></p>
<p><?php the_widget('WP_Widget_Search'); ?></p> <p><?php the_widget('WP_Widget_Search'); ?></p>
</div> </div>
<div class="post-page-foot"></div> <div class="post-foot"></div>
</div> </div>
<?php endif; ?> <?php endif; ?>

View File

@ -15,7 +15,7 @@ Template Name: Blog
while (have_posts()) : the_post(); while (have_posts()) : the_post();
display_blog_post(); comicpress_display_post();
endwhile; endwhile;

View File

@ -9,7 +9,7 @@ function comicpress_dual_columns() {
$posts = query_posts($blog_query); $posts = query_posts($blog_query);
if (have_posts()) { if (have_posts()) {
while (have_posts()) : the_post(); while (have_posts()) : the_post();
display_blog_post(); comicpress_display_post();
endwhile; endwhile;
} ?> } ?>
<span class="viewpostsbyone">View all posts by: <?php the_author_posts_link(); ?><span><br /> <span class="viewpostsbyone">View all posts by: <?php the_author_posts_link(); ?><span><br />
@ -20,7 +20,7 @@ function comicpress_dual_columns() {
$posts = query_posts($blog_query); $posts = query_posts($blog_query);
if (have_posts()) { if (have_posts()) {
while (have_posts()) : the_post(); while (have_posts()) : the_post();
display_blog_post(); comicpress_display_post();
endwhile; endwhile;
} ?> } ?>
<span class="viewpostsbytwo">View all posts by: <?php the_author_posts_link(); ?></span><br /> <span class="viewpostsbytwo">View all posts by: <?php the_author_posts_link(); ?></span><br />

View File

@ -15,7 +15,7 @@ Template Name: Members Only Blog
$posts = query_posts($blog_query); $posts = query_posts($blog_query);
while (have_posts()) : the_post(); while (have_posts()) : the_post();
display_blog_post(); comicpress_display_post();
endwhile; endwhile;

View File

@ -31,9 +31,9 @@ $count = $tmp_search->post_count;
<?php } else { ?> <?php } else { ?>
<?php if (in_comic_category()) { <?php if (in_comic_category()) {
display_comic_post(); comicpress_display_post();
} else { } else {
display_blog_post(); comicpress_display_post();
} }
} }
endwhile; endwhile;

View File

@ -30,9 +30,9 @@
<?php } else { ?> <?php } else { ?>
<?php if (in_comic_category()) { <?php if (in_comic_category()) {
display_comic_post(); comicpress_display_post();
} else { } else {
display_blog_post(); comicpress_display_post();
} }
} }
endwhile; endwhile;