Working on the post-images more

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-11-17 16:38:24 -08:00
parent f2a9f070cd
commit 14fa039813
6 changed files with 28 additions and 25 deletions

View File

@ -71,10 +71,20 @@ $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() ?>
<div class="entry"> <?php if ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2> <h2 class="pagetitle"><?php the_title() ?> <span class="page-archive-year"> <?php echo $archive_year; ?></span></h2>
<?php } ?>
<?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?>
<div class="post-page-image">
<?php the_post_image('full'); ?>
</div>
<?php } ?>
<?php } ?>
<div class="entry">
<?php the_content(); ?> <?php the_content(); ?>
</div> </div>
<?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?>
<?php endwhile; ?> <?php endwhile; ?>
<div class="archive-yearlist">| <div class="archive-yearlist">|

View File

@ -21,16 +21,15 @@ 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 ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?> if ( has_post_image() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_image('full'); ?>
</div> </div>
<?php } else { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?> <?php } ?>
<?php } else { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?> <?php } ?>
<br class="clear-margins" /> <br class="clear-margins" />
<?php _e('Comic ID','comicpress'); ?> - #<?php echo $comicnum; ?><br /> <?php _e('Comic ID','comicpress'); ?> - #<?php echo $comicnum; ?><br />

View File

@ -5,18 +5,9 @@
<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 ($disable_page_titles != 'yes') { ?>
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> <h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?> <?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>

View File

@ -16,18 +16,22 @@ 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 ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?> if ( has_post_image() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_image('full'); ?>
</div> </div>
<?php } else { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?> <?php } ?>
<?php } else { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?> <?php } ?>
<br class="clear-margins" /> <br class="clear-margins" />
<div class="entry">
<?php the_content() ?>
<?php wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">'.__('Pages:','comicpress').'</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
</div>
<?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?>
<div id="linkspage"> <div id="linkspage">
<ul> <ul>
<?php echo $bookmarks; ?> <?php echo $bookmarks; ?>

View File

@ -4,17 +4,16 @@
<?php if (have_posts()) : while (have_posts()) : the_post() ?> <?php if (have_posts()) : while (have_posts()) : the_post() ?>
<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 ($disable_page_titles != 'yes') { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?>
<?php if (function_exists('the_post_image')) { <?php if (function_exists('the_post_image')) {
if ( has_post_image() ) { ?> if ( has_post_image() ) { ?>
<div class="post-page-image"> <div class="post-page-image">
<?php the_post_image('full'); ?> <?php the_post_image('full'); ?>
</div> </div>
<?php } else { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?> <?php } ?>
<?php } else { ?>
<h2 class="pagetitle"><?php the_title() ?></h2>
<?php } ?> <?php } ?>
<div class="entry"> <div class="entry">
<?php the_content() ?> <?php the_content() ?>

View File

@ -1358,7 +1358,7 @@ li.pingback div p, li.trackback div p {
color: #ff0000; color: #ff0000;
} }
/* Tool Tips */ /* Tool Tips (ComicPress Rascal) */
.tt a { .tt a {
position: relative; position: relative;