2009-08-21 19:29:45 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
Template Name: Comic Archive
|
|
|
|
*/
|
|
|
|
?>
|
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 } ?>
|
|
|
|
|
|
|
|
<div class="post-page-head"></div>
|
|
|
|
<div class="post-page">
|
|
|
|
<?php while (have_posts()) : the_post() ?>
|
|
|
|
<div class="entry">
|
|
|
|
<h2 class="pagetitle"><?php the_title() ?></h2>
|
|
|
|
<?php the_content(); ?>
|
|
|
|
</div>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date DESC");
|
|
|
|
foreach ( $years as $year ) {
|
|
|
|
if ($year != (0) ) { ?>
|
|
|
|
<h3><?php echo $year ?></h3>
|
|
|
|
<table class="month-table">
|
|
|
|
<?php $comicArchive = new WP_Query(); $comicArchive->query('showposts=10000&cat='.get_all_comic_categories_as_cat_string().'&year='.$year);
|
|
|
|
while ($comicArchive->have_posts()) : $comicArchive->the_post() ?>
|
|
|
|
<tr><td class="archive-date"><?php the_time('M j') ?></td><td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></td></tr>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
</table>
|
|
|
|
<?php } } ?>
|
|
|
|
|
|
|
|
<br class="clear-margins" />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="post-page-foot"></div>
|
2009-09-03 01:12:30 +00:00
|
|
|
</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() ?>
|