Adjusting templates to have the page-image code
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
c69449745f
commit
7907797a5f
|
@ -10,8 +10,19 @@ 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')) {
|
||||||
|
if ( has_post_image() ) { ?>
|
||||||
|
<div class="post-page-image">
|
||||||
|
<?php the_post_image('full'); ?>
|
||||||
|
</div>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<br class="clear-margins" />
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
13
archives.php
13
archives.php
|
@ -10,7 +10,18 @@ Template Name: Archives
|
||||||
<div class="post-page-head"></div>
|
<div class="post-page-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
<div id="archivepage">
|
<div id="archivepage">
|
||||||
<h2><?php _e('Archives by Month:','comicpress'); ?></h2>
|
<?php if (function_exists('the_post_image')) {
|
||||||
|
if ( has_post_image() ) { ?>
|
||||||
|
<div class="post-page-image">
|
||||||
|
<?php the_post_image('full'); ?>
|
||||||
|
</div>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<br class="clear-margins" />
|
||||||
<ul><?php wp_get_archives('type=monthly') ?></ul>
|
<ul><?php wp_get_archives('type=monthly') ?></ul>
|
||||||
<h2><?php _e('Archives by Subject:','comicpress'); ?></h2>
|
<h2><?php _e('Archives by Subject:','comicpress'); ?></h2>
|
||||||
<ul><?php wp_list_categories() ?></ul>
|
<ul><?php wp_list_categories() ?></ul>
|
||||||
|
|
16
buystrip.php
16
buystrip.php
|
@ -21,10 +21,18 @@ 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>
|
||||||
<div style="float:left;">
|
<?php if (function_exists('the_post_image')) {
|
||||||
<h2 class="pagetitle"><?php _e('Buy Print!','comicpress'); ?></h2>
|
if ( has_post_image() ) { ?>
|
||||||
</div>
|
<div class="post-page-image">
|
||||||
<div class="clear"></div>
|
<?php the_post_image('full'); ?>
|
||||||
|
</div>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<br class="clear-margins" />
|
||||||
<?php _e('Comic ID','comicpress'); ?> - #<?php echo $comicnum; ?><br />
|
<?php _e('Comic ID','comicpress'); ?> - #<?php echo $comicnum; ?><br />
|
||||||
<?php _e('Title:','comicpress'); ?> <?php echo the_title(); ?><br />
|
<?php _e('Title:','comicpress'); ?> <?php echo the_title(); ?><br />
|
||||||
<br />
|
<br />
|
||||||
|
|
15
image.php
15
image.php
|
@ -5,9 +5,18 @@
|
||||||
<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() ?>">
|
||||||
<h2 class="pagetitle">
|
<?php if (function_exists('the_post_image')) {
|
||||||
<a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment"><?php echo get_the_title($post->post_parent) ?></a>
|
if ( has_post_image() ) { ?>
|
||||||
</h2>
|
<div class="post-page-image">
|
||||||
|
<?php the_post_image('full'); ?>
|
||||||
|
</div>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<br class="clear-margins" />
|
||||||
<div class="gallery-image">
|
<div class="gallery-image">
|
||||||
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="<?php _e('Click for full size.','comicpress'); ?>" ><img src="<?php echo wp_get_attachment_url($post->ID) ?>" alt="<?php the_title() ?>" /></a>
|
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="<?php _e('Click for full size.','comicpress'); ?>" ><img src="<?php echo wp_get_attachment_url($post->ID) ?>" alt="<?php the_title() ?>" /></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
13
links.php
13
links.php
|
@ -16,7 +16,18 @@ 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">
|
||||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
<?php if (function_exists('the_post_image')) {
|
||||||
|
if ( has_post_image() ) { ?>
|
||||||
|
<div class="post-page-image">
|
||||||
|
<?php the_post_image('full'); ?>
|
||||||
|
</div>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } else { ?>
|
||||||
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||||
|
<?php } ?>
|
||||||
|
<br class="clear-margins" />
|
||||||
<div id="linkspage">
|
<div id="linkspage">
|
||||||
<ul>
|
<ul>
|
||||||
<?php echo $bookmarks; ?>
|
<?php echo $bookmarks; ?>
|
||||||
|
|
Loading…
Reference in New Issue