the_post_image was changed to the_post_thumbnail on wordpress 2.9 release, adjusted.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-18 23:07:10 -08:00
parent a818df4f4d
commit 1cfc3fadf2
14 changed files with 53 additions and 54 deletions

View File

@ -71,10 +71,10 @@ $month['12'] = array('month' => __('December','comicpress'), 'days' => '31');
<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() ?> <?php while (have_posts()) : the_post() ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -10,10 +10,10 @@ Template Name: Month at a glance
<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() ?> <?php while (have_posts()) : the_post() ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -10,10 +10,10 @@ Template Name: Comic Storyline with Thumbs
<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() ?> <?php while (have_posts()) : the_post() ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -10,10 +10,10 @@ Template Name: Comic Storyline Archive
<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() ?> <?php while (have_posts()) : the_post() ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -21,10 +21,10 @@ if (empty($archive_year) || $archive_year == '') $archive_year = date('Y');
<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() ?> <?php while (have_posts()) : the_post() ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -10,10 +10,10 @@ Template Name: Comic Archive
<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() ?> <?php while (have_posts()) : the_post() ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -21,10 +21,10 @@ Template Version: 2.14
<br /> <br />
<img src="<?php echo get_template_directory_uri(); ?>/images/paypal.png" alt="<?php _e('Powered by Paypal','comicpress'); ?>" /><br /> <img src="<?php echo get_template_directory_uri(); ?>/images/paypal.png" alt="<?php _e('Powered by Paypal','comicpress'); ?>" /><br />
</div> </div>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -1,6 +1,6 @@
<?php <?php
// the_post_image('thumbnail/medium/full'); // the_post_thumbnail('thumbnail/medium/full');
if (function_exists('add_theme_support')) { if (function_exists('add_theme_support')) {
add_theme_support( 'post-thumbnails' ); add_theme_support( 'post-thumbnails' );
} }

View File

@ -31,10 +31,10 @@ function display_blog_post() {
</div> </div>
<?php } ?> <?php } ?>
<div class="post-text"> <div class="post-text">
<?php if (function_exists('the_post_image')) { <?php if (function_exists('has_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-image"> <div class="post-image">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_image('full'); ?></a> <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail('full'); ?></a>
</div> </div>
<?php } else {?> <?php } else {?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

View File

@ -31,10 +31,10 @@ function display_comic_post() {
</div> </div>
<?php } ?> <?php } ?>
<div class="post-comic-text"> <div class="post-comic-text">
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-comic-image"> <div class="post-comic-image">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_image('full'); ?></a> <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_post_thumbnail('full'); ?></a>
</div> </div>
<?php } else {?> <?php } else {?>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

View File

@ -5,10 +5,10 @@
<div class="<?php comicpress_post_class(); ?>"> <div class="<?php comicpress_post_class(); ?>">
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page" id="post-<?php the_ID() ?>"> <div class="post-page" id="post-<?php the_ID() ?>">
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -18,10 +18,10 @@ Template Name: Links
<div class="<?php comicpress_post_class(); ?>"> <div class="<?php comicpress_post_class(); ?>">
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page"> <div class="post-page">
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -5,10 +5,10 @@
<div class="<?php comicpress_post_class(); ?>"> <div class="<?php comicpress_post_class(); ?>">
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page" id="post-<?php the_ID() ?>"> <div class="post-page" id="post-<?php the_ID() ?>">
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_thumbnail')) {
if ( has_post_image() ) { ?> if ( has_post_thumbnail() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_thumbnail('full'); ?>
</div> </div>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>

View File

@ -1,23 +1,22 @@
<?php global $comicpress_options; <?php global $comicpress_options;
if ($comicpress_options['disable_lrsidebars_frontpage'] && is_home()) { if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>
} else { ?>
<div id="sidebar-left"> <div id="sidebar-left">
<div class="sidebar-head"></div> <div class="sidebar-head"></div>
<div class="sidebar"> <div class="sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
<div class="widget"> <div class="widget">
<?php comicpress_calendar_embed() ?> <?php comicpress_calendar_embed() ?>
</div> </div>
<div class="widget"> <div class="widget">
<?php comicpress_archive_dropdown(); ?> <?php comicpress_archive_dropdown(); ?>
</div> </div>
<div class="widget"> <div class="widget">
<ul><li> <ul><li>
<?php comicpress_latest_comics() ?> <?php comicpress_latest_comics() ?>
</li></ul> </li></ul>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="sidebar-foot"></div> <div class="sidebar-foot"></div>
</div> </div>
<?php } ?> <?php } ?>