2009-11-13 16:00:25 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2009-12-20 08:42:12 +00:00
|
|
|
Template Name: This Month of Comics
|
2009-11-13 16:00:25 +00:00
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<?php get_header(); ?>
|
|
|
|
<?php include(get_template_directory() . '/layout-head.php'); ?>
|
|
|
|
|
2009-12-23 18:43:05 +00:00
|
|
|
<?php
|
|
|
|
if (have_posts()) {
|
|
|
|
while (have_posts()) : the_post();
|
2009-12-24 23:01:47 +00:00
|
|
|
comicpress_display_post();
|
2009-12-23 18:43:05 +00:00
|
|
|
endwhile;
|
|
|
|
}
|
2009-12-20 08:42:12 +00:00
|
|
|
|
2009-11-13 16:00:25 +00:00
|
|
|
//based on Austin Matzko's code from wp-hackers email list
|
|
|
|
function filter_where($where = '') {
|
|
|
|
//posts in the last 30 days
|
|
|
|
$where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'";
|
|
|
|
// $where .= " AND post_date >= '2009-03-01' AND post_date < '2009-03-16'";
|
|
|
|
return $where;
|
|
|
|
}
|
|
|
|
add_filter('posts_where', 'filter_where');
|
|
|
|
$posts = query_posts('&show_posts=-1&posts_per_page=-1&cat='.get_all_comic_categories_as_cat_string());
|
|
|
|
|
|
|
|
?>
|
2009-12-24 23:15:30 +00:00
|
|
|
<div <?php post_class(); ?>>
|
|
|
|
<div class="post-head"></div>
|
2009-12-24 23:22:28 +00:00
|
|
|
<div class="post-content">
|
2009-12-20 08:42:12 +00:00
|
|
|
<?php if (have_posts()) : while (have_posts()) : the_post() ?>
|
2009-11-13 16:00:25 +00:00
|
|
|
|
|
|
|
<div class="comicthumbwrap">
|
|
|
|
<div class="comicarchiveframe">
|
|
|
|
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_mini() ?>" alt="<?php the_title() ?>" title="<?php the_title() ?>" style="width: <?php echo $mini_comic_width; ?>px" /></a><br />
|
|
|
|
</div>
|
|
|
|
</div>
|
2009-12-20 08:42:12 +00:00
|
|
|
|
|
|
|
<?php endwhile; endif; ?>
|
2009-11-13 16:00:25 +00:00
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
2009-12-24 23:15:30 +00:00
|
|
|
<div class="post-foot"></div>
|
2009-12-20 08:42:12 +00:00
|
|
|
</div>
|
2009-11-13 16:00:25 +00:00
|
|
|
|
2009-12-20 08:42:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-13 16:00:25 +00:00
|
|
|
<?php include(get_template_directory() . '/layout-foot.php'); ?>
|
|
|
|
<?php get_footer() ?>
|