Fixing has_thumbnail locations part 1
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
4a25965398
commit
7fecf9104c
|
@ -67,24 +67,24 @@ $month['11'] = array('month' => __('November','comicpress'), 'days' => '30');
|
||||||
$month['12'] = array('month' => __('December','comicpress'), 'days' => '31');
|
$month['12'] = array('month' => __('December','comicpress'), 'days' => '31');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php while (have_posts()) : the_post() ?>
|
||||||
|
|
||||||
<div class="<?php comicpress_post_class(); ?>">
|
<div class="<?php comicpress_post_class(); ?>">
|
||||||
|
<?php if (function_exists('has_post_thumbnail')) {
|
||||||
|
if ( has_post_thumbnail() ) { ?>
|
||||||
|
<div class="post-image">
|
||||||
|
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
||||||
|
</div>
|
||||||
|
<?php }
|
||||||
|
} ?>
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<?php while (have_posts()) : the_post() ?>
|
<h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2>
|
||||||
<?php if (function_exists('the_post_thumbnail')) {
|
|
||||||
if ( has_post_thumbnail() ) { ?>
|
|
||||||
<div class="post-page-image">
|
|
||||||
<?php the_post_thumbnail('full'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php } ?>
|
|
||||||
<?php if (!$comicpress_options['disable_page_titles']) { ?>
|
|
||||||
<h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2>
|
|
||||||
<?php } ?>
|
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endwhile; ?>
|
|
||||||
|
|
||||||
<div class="archive-yearlist">|
|
<div class="archive-yearlist">|
|
||||||
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
||||||
|
@ -161,11 +161,12 @@ foreach ( $years as $year ) {
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?>
|
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
|
<?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="post-page-foot"></div>
|
<div class="post-page-foot"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php if ('open' == $post->comment_status) { comments_template('', true); } ?>
|
<?php if ('open' == $post->comment_status) { comments_template('', true); } ?>
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,13 @@ function display_blog_post() {
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<div class="<?php comicpress_post_class(); ?>">
|
<div class="<?php comicpress_post_class(); ?>">
|
||||||
|
<?php if (function_exists('has_post_thumbnail')) {
|
||||||
|
if ( has_post_thumbnail() ) { ?>
|
||||||
|
<div class="post-image">
|
||||||
|
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
||||||
|
</div>
|
||||||
|
<?php }
|
||||||
|
} ?>
|
||||||
<div class="post-head"></div>
|
<div class="post-head"></div>
|
||||||
<div class="post" id="post-<?php the_ID() ?>">
|
<div class="post" id="post-<?php the_ID() ?>">
|
||||||
<div class="post-info">
|
<div class="post-info">
|
||||||
|
@ -31,17 +38,7 @@ function display_blog_post() {
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="post-text">
|
<div class="post-text">
|
||||||
<?php if (function_exists('has_post_thumbnail')) {
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
if ( has_post_thumbnail() ) { ?>
|
|
||||||
<div class="post-image">
|
|
||||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
|
||||||
</div>
|
|
||||||
<?php } else {?>
|
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
|
||||||
<?php } ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
|
||||||
<?php } ?>
|
|
||||||
<div class="post-author"> <?php the_time('F jS, Y'); ?> <span class="pipe">|</span> by <?php the_author_posts_link(); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></div>
|
<div class="post-author"> <?php the_time('F jS, Y'); ?> <span class="pipe">|</span> by <?php the_author_posts_link(); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></div>
|
||||||
<?php if (!$comicpress_options['disable_categories_in_posts']) { ?>
|
<?php if (!$comicpress_options['disable_categories_in_posts']) { ?>
|
||||||
<div class="post-cat"><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></div>
|
<div class="post-cat"><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></div>
|
||||||
|
|
|
@ -18,6 +18,13 @@ function display_comic_post() {
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="<?php comicpress_post_class(); ?>">
|
<div class="<?php comicpress_post_class(); ?>">
|
||||||
|
<?php if (function_exists('has_post_thumbnail')) {
|
||||||
|
if ( has_post_thumbnail() ) { ?>
|
||||||
|
<div class="post-comic-image">
|
||||||
|
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
||||||
|
</div>
|
||||||
|
<?php }
|
||||||
|
} ?>
|
||||||
<div class="post-comic-head"></div>
|
<div class="post-comic-head"></div>
|
||||||
<div class="post-comic" id="post-comic-<?php the_ID() ?>">
|
<div class="post-comic" id="post-comic-<?php the_ID() ?>">
|
||||||
<div class="post-comic-info">
|
<div class="post-comic-info">
|
||||||
|
@ -31,17 +38,7 @@ function display_comic_post() {
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="post-comic-text">
|
<div class="post-comic-text">
|
||||||
<?php if (function_exists('the_post_thumbnail')) {
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||||
if ( has_post_thumbnail() ) { ?>
|
|
||||||
<div class="post-comic-image">
|
|
||||||
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
|
||||||
</div>
|
|
||||||
<?php } else {?>
|
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
|
||||||
<?php } ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
|
||||||
<?php } ?>
|
|
||||||
<div class="post-comic-author"> <?php the_time('F jS, Y'); ?> <span class="pipe">|</span> by <?php the_author_posts_link(); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></div>
|
<div class="post-comic-author"> <?php the_time('F jS, Y'); ?> <span class="pipe">|</span> by <?php the_author_posts_link(); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></div>
|
||||||
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
|
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
|
||||||
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' » </li><li>', multiple) ?></li></ul>
|
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' » </li><li>', multiple) ?></li></ul>
|
||||||
|
|
Loading…
Reference in New Issue