2009-09-03 01:12:30 +00:00
|
|
|
<?php get_header(); ?>
|
|
|
|
|
2009-09-07 13:37:15 +00:00
|
|
|
<?php if (is_cp_theme_layout('gn,v3c,v')) { ?>
|
2009-09-07 22:23:01 +00:00
|
|
|
<div id="content-wrapper-top"></div>
|
2009-09-03 01:12:30 +00:00
|
|
|
<div id="content-wrapper">
|
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-07 13:37:15 +00:00
|
|
|
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-07 13:37:15 +00:00
|
|
|
<?php if (is_cp_theme_layout('v3c,v')) { ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<div id="content" class="narrowcolumn">
|
|
|
|
<div class="column">
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-09-07 13:37:15 +00:00
|
|
|
<?php if (is_cp_theme_layout('gn')) { ?>
|
2009-09-03 01:12:30 +00:00
|
|
|
<div id="pagewrap-right">
|
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-07 13:37:15 +00:00
|
|
|
<?php if (is_cp_theme_layout('3c,standard')) { ?>
|
2009-09-07 22:23:01 +00:00
|
|
|
<div id="content-wrapper-top"></div>
|
|
|
|
<div id="content-wrapper">
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php } ?>
|
|
|
|
<?php get_sidebar('overblog'); ?>
|
2009-09-07 13:37:15 +00:00
|
|
|
<?php if (is_cp_theme_layout('3c')) get_sidebar('left'); ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-07 13:37:15 +00:00
|
|
|
<?php if (is_cp_theme_layout('gn,standard,3c')) { ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<div id="content" class="narrowcolumn">
|
|
|
|
<div class="column">
|
|
|
|
<?php } ?>
|
2009-08-26 04:01:17 +00:00
|
|
|
<?php
|
2009-09-09 17:07:24 +00:00
|
|
|
global $archive_display_order;
|
|
|
|
if (empty($archive_display_order)) $archive_display_order = 'desc';
|
|
|
|
$tmp_search = new WP_Query($query_string.'&order='.$archive_display_order.'&show_posts=-1&posts_per_page=-1');
|
2009-08-26 04:01:17 +00:00
|
|
|
$count = $tmp_search->post_count;
|
|
|
|
?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php if (!$count) $count = "no"; ?>
|
|
|
|
<div class="searchresults">Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.</div>
|
|
|
|
|
|
|
|
<?php if (have_posts()) : ?>
|
2009-09-09 17:07:24 +00:00
|
|
|
<?php $posts = query_posts($query_string.'&order='.$archive_display_order); ?>
|
2009-09-12 15:28:32 +00:00
|
|
|
<div class="<?php commpress_blogpost_class(); ?>">
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="post-page-head"></div>
|
|
|
|
<div class="post-page">
|
|
|
|
|
|
|
|
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
|
|
|
|
<?php /* Category Archive */ if (is_category()) { ?>
|
|
|
|
<div class="content"><h2 class="pagetitle">Archive for ‘<?php single_cat_title() ?>’</h2></div>
|
|
|
|
<?php /* Tag Archive */ } elseif( is_tag() ) { ?>
|
|
|
|
<div class="content"><h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title() ?>’</h2></div>
|
|
|
|
<?php /* Daily Archive */ } elseif (is_day()) { ?>
|
|
|
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F jS, Y') ?></h2></div>
|
|
|
|
<?php /* Monthly Archive */ } elseif (is_month()) { ?>
|
|
|
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('F, Y') ?></h2></div>
|
|
|
|
<?php /* Yearly Archive */ } elseif (is_year()) { ?>
|
|
|
|
<div class="content"><h2 class="pagetitle">Archive for <?php the_time('Y') ?></h2></div>
|
|
|
|
<?php /* Author Archive */ } elseif (is_author()) { ?>
|
|
|
|
<div class="content"><h2 class="pagetitle">Author Archive</h2></div>
|
|
|
|
<?php /* Paged Archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
|
|
|
|
<div class="content"><h2 class="pagetitle">Archives</h2></div>
|
|
|
|
<?php } ?>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-page-foot"></div>
|
2009-09-12 15:28:32 +00:00
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
<?php while (have_posts()) : the_post() ?>
|
|
|
|
|
|
|
|
<?php global $archive_comic_width; if (in_comic_category()) { ?>
|
2009-09-12 15:28:32 +00:00
|
|
|
<div class="<?php commpress_blogpost_class(); ?>">
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="post-comic-head"></div>
|
|
|
|
<div class="post-comic">
|
|
|
|
<div class="post-info">
|
2009-08-26 04:01:17 +00:00
|
|
|
<?php if ($enable_comic_post_author_gravatar == 'yes') { ?>
|
|
|
|
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),get_avatar(get_the_author_meta('email'), 64)); ?></div>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
|
|
|
|
<?php if ($enable_comic_post_calendar == 'yes') { ?>
|
|
|
|
<div class="post-date">
|
|
|
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="post-text">
|
|
|
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
2009-08-26 04:01:17 +00:00
|
|
|
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
|
|
|
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width; ?>px;">
|
|
|
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="Click for full size." width="<?php echo $archive_comic_width ?>" /></a><br />
|
|
|
|
</div>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-comic-foot"></div>
|
2009-09-12 15:28:32 +00:00
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php } else { ?>
|
2009-09-12 15:28:32 +00:00
|
|
|
<div class="<?php commpress_blogpost_class(); ?>">
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="post-head"></div>
|
|
|
|
<div class="post">
|
2009-08-26 04:01:17 +00:00
|
|
|
<div class="post-info">
|
|
|
|
<?php if ($enable_post_author_gravatar == 'yes') { ?>
|
|
|
|
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),get_avatar(get_the_author_meta('email'), 64)); ?></div>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
|
|
|
|
<?php if ($enable_post_calendar == 'yes') { ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="post-date">
|
|
|
|
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
|
|
|
</div>
|
2009-08-26 04:01:17 +00:00
|
|
|
<?php } ?>
|
|
|
|
<div class="post-text">
|
|
|
|
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
|
|
|
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
|
|
|
|
<?php if ($disable_categories_in_posts != 'yes') { ?>
|
|
|
|
<small> Posted In: <?php the_category(','); ?></small><br />
|
|
|
|
<?php } ?>
|
|
|
|
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
</div>
|
2009-08-26 04:01:17 +00:00
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php the_excerpt() ?>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
<div class="post-extras">
|
|
|
|
<div class="tags">
|
2009-08-26 04:01:17 +00:00
|
|
|
<?php the_tags('└ Tags: ',',','<br />');?>
|
2009-08-21 19:29:45 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="post-foot"></div>
|
2009-09-12 15:28:32 +00:00
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php else : ?>
|
2009-09-12 15:28:32 +00:00
|
|
|
<div class="<?php commpress_blogpost_class(); ?>">
|
2009-08-21 19:29:45 +00:00
|
|
|
<div class="post-head"></div>
|
|
|
|
<div class="post">
|
|
|
|
<h3>No entries found.</h3>
|
|
|
|
<p>Try another search?</p>
|
|
|
|
<p><?php include(get_template_directory() . '/searchform.php') ?></p>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-foot"></div>
|
2009-09-12 15:28:32 +00:00
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2009-09-03 01:12:30 +00:00
|
|
|
<?php comicpress_pagination(); ?>
|
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
2009-09-07 13:37:15 +00:00
|
|
|
if (is_cp_theme_layout('3c,v3c,gn,standard,v')) {
|
2009-09-03 01:12:30 +00:00
|
|
|
get_sidebar('right'); ?>
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-09-07 13:37:15 +00:00
|
|
|
<?php if (is_cp_theme_layout('gn')) { ?>
|
2009-09-03 01:12:30 +00:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
|
|
|
<div class="clear"></div>
|
2009-09-07 22:23:01 +00:00
|
|
|
</div>
|
|
|
|
<div id="content-wrapper-bottom"></div>
|
2009-08-21 17:45:23 +00:00
|
|
|
<?php get_footer() ?>
|