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:
parent
a818df4f4d
commit
1cfc3fadf2
|
@ -71,10 +71,10 @@ $month['12'] = array('month' => __('December','comicpress'), 'days' => '31');
|
|||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<?php while (have_posts()) : the_post() ?>
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -10,10 +10,10 @@ Template Name: Month at a glance
|
|||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<?php while (have_posts()) : the_post() ?>
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -10,10 +10,10 @@ Template Name: Comic Storyline with Thumbs
|
|||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<?php while (have_posts()) : the_post() ?>
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -10,10 +10,10 @@ Template Name: Comic Storyline Archive
|
|||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<?php while (have_posts()) : the_post() ?>
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -21,10 +21,10 @@ if (empty($archive_year) || $archive_year == '') $archive_year = date('Y');
|
|||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<?php while (have_posts()) : the_post() ?>
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -10,10 +10,10 @@ Template Name: Comic Archive
|
|||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<?php while (have_posts()) : the_post() ?>
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -21,10 +21,10 @@ Template Version: 2.14
|
|||
<br />
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/images/paypal.png" alt="<?php _e('Powered by Paypal','comicpress'); ?>" /><br />
|
||||
</div>
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
// the_post_image('thumbnail/medium/full');
|
||||
// the_post_thumbnail('thumbnail/medium/full');
|
||||
if (function_exists('add_theme_support')) {
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
}
|
||||
|
|
|
@ -31,10 +31,10 @@ function display_blog_post() {
|
|||
</div>
|
||||
<?php } ?>
|
||||
<div class="post-text">
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?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_image('full'); ?></a>
|
||||
<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>
|
||||
|
|
|
@ -31,10 +31,10 @@ function display_comic_post() {
|
|||
</div>
|
||||
<?php } ?>
|
||||
<div class="post-comic-text">
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_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_image('full'); ?></a>
|
||||
<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>
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
<div class="<?php comicpress_post_class(); ?>">
|
||||
<div class="post-page-head"></div>
|
||||
<div class="post-page" id="post-<?php the_ID() ?>">
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -18,10 +18,10 @@ Template Name: Links
|
|||
<div class="<?php comicpress_post_class(); ?>">
|
||||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
6
page.php
6
page.php
|
@ -5,10 +5,10 @@
|
|||
<div class="<?php comicpress_post_class(); ?>">
|
||||
<div class="post-page-head"></div>
|
||||
<div class="post-page" id="post-<?php the_ID() ?>">
|
||||
<?php if (function_exists('the_post_image')) {
|
||||
if ( has_post_image() ) { ?>
|
||||
<?php if (function_exists('the_post_thumbnail')) {
|
||||
if ( has_post_thumbnail() ) { ?>
|
||||
<div class="post-page-image">
|
||||
<?php the_post_image('full'); ?>
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
|
|
@ -1,23 +1,22 @@
|
|||
<?php global $comicpress_options;
|
||||
if ($comicpress_options['disable_lrsidebars_frontpage'] && is_home()) {
|
||||
} else { ?>
|
||||
if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>
|
||||
<div id="sidebar-left">
|
||||
<div class="sidebar-head"></div>
|
||||
<div class="sidebar">
|
||||
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
|
||||
<div class="widget">
|
||||
<?php comicpress_calendar_embed() ?>
|
||||
</div>
|
||||
<div class="widget">
|
||||
<?php comicpress_archive_dropdown(); ?>
|
||||
</div>
|
||||
<div class="widget">
|
||||
<ul><li>
|
||||
<?php comicpress_latest_comics() ?>
|
||||
</li></ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="sidebar">
|
||||
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
|
||||
<div class="widget">
|
||||
<?php comicpress_calendar_embed() ?>
|
||||
</div>
|
||||
<div class="widget">
|
||||
<?php comicpress_archive_dropdown(); ?>
|
||||
</div>
|
||||
<div class="widget">
|
||||
<ul><li>
|
||||
<?php comicpress_latest_comics() ?>
|
||||
</li></ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="sidebar-foot"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
Loading…
Reference in New Issue