2009-06-13 11:58:02 +00:00
|
|
|
<?php get_header(); global $blog_postcount, $blogcat; $first_comic = get_first_comic_permalink() ?>
|
|
|
|
|
|
|
|
<?php if (!(is_paged())) { ?>
|
|
|
|
|
|
|
|
<?php $wp_query->in_the_loop = true; $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
|
|
|
|
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
|
|
|
|
<div id="comic-head"></div>
|
|
|
|
<div id="comic">
|
2009-07-07 02:45:17 +00:00
|
|
|
<?php the_comic_img_tag(get_comic_url('comic'), 'comic', array('alt' => get_the_title(),
|
|
|
|
'title' => get_the_hovertext())) ?>
|
2009-06-13 11:58:02 +00:00
|
|
|
</div>
|
|
|
|
<div id="comic-foot"></div>
|
2009-06-30 23:58:04 +00:00
|
|
|
<?php endwhile; ?>
|
2009-06-13 11:58:02 +00:00
|
|
|
|
2009-07-01 00:01:05 +00:00
|
|
|
<div id="content" class="narrowcolumn">
|
2009-06-13 11:58:02 +00:00
|
|
|
|
|
|
|
<?php while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
|
|
|
|
<div class="post-comic-head"></div>
|
|
|
|
<div class="post-comic">
|
|
|
|
<div class="nav">
|
|
|
|
<div class="nav-first"><a href="<?php echo $first_comic ?>" title="Go to the First Comic">‹‹ First</a></div>
|
|
|
|
<div class="nav-previous"><?php global $wp_query; $wp_query->is_single = true; previous_comic_link('%link', '‹ Previous'); $wp_query->is_single = false ?></div>
|
|
|
|
</div>
|
|
|
|
<div class="comicdate">
|
|
|
|
<?php the_time('F jS, Y') ?>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
|
|
|
|
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' » </li><li>', multiple) ?></li></ul>
|
|
|
|
<?php } ?>
|
|
|
|
<h2>
|
|
|
|
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title() ?>"><?php the_title() ?></a>
|
|
|
|
</h2>
|
|
|
|
<div class="entry">
|
|
|
|
<?php the_content('↓ Read the rest of this entry...') ?>
|
|
|
|
</div>
|
|
|
|
<?php the_transcript('styled') ?>
|
|
|
|
<div class="tags">
|
|
|
|
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
|
|
|
</div>
|
|
|
|
<div class="comment-link">
|
|
|
|
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
|
|
|
</div>
|
|
|
|
<br class="clear-margins" />
|
|
|
|
</div>
|
|
|
|
<div class="post-comic-foot"></div>
|
2009-06-30 23:58:04 +00:00
|
|
|
<?php endwhile; ?>
|
2009-06-13 11:58:02 +00:00
|
|
|
|
|
|
|
<div id="blogheader"><!-- This area can be used for a heading above your main page blog posts --></div>
|
|
|
|
|
|
|
|
<?php } else { ?>
|
|
|
|
|
2009-07-01 00:01:05 +00:00
|
|
|
<div id="content" class="narrowcolumn">
|
2009-06-13 11:58:02 +00:00
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-06-16 02:32:41 +00:00
|
|
|
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('showposts='.$blog_postcount.'&cat=-'.$comiccat.'&paged='.$paged);
|
|
|
|
while ($wp_query->have_posts()) : $wp_query->the_post() ?>
|
2009-06-13 11:58:02 +00:00
|
|
|
<div class="post-head"></div>
|
|
|
|
<div class="post" id="post-<?php the_ID() ?>">
|
|
|
|
<h3>
|
|
|
|
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title() ?>"><?php the_title() ?></a>
|
|
|
|
</h3>
|
|
|
|
<div class="postdate">
|
|
|
|
<?php the_time('F jS, Y') ?>
|
|
|
|
</div>
|
|
|
|
<div class="entry">
|
|
|
|
<?php the_content('↓ Read the rest of this entry...') ?>
|
|
|
|
</div>
|
|
|
|
<div class="tags">
|
|
|
|
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
|
|
|
</div>
|
|
|
|
<div class="comment-link">
|
|
|
|
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
|
|
|
</div>
|
|
|
|
<div class="clear-margins"><br /></div>
|
|
|
|
</div>
|
|
|
|
<div class="post-foot"></div>
|
2009-06-30 23:58:04 +00:00
|
|
|
<?php endwhile; ?>
|
2009-06-13 11:58:02 +00:00
|
|
|
<div class="pagenav">
|
|
|
|
<div class="pagenav-right"><?php previous_posts_link('Newer Entries ↑') ?></div>
|
|
|
|
<div class="pagenav-left"><?php next_posts_link('↓ Previous Entries') ?></div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<?php $wp_query = null; $wp_query = $temp ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php include(TEMPLATEPATH . '/sidebar.php') ?>
|
|
|
|
|
|
|
|
<?php get_footer() ?>
|