2009-07-11 19:39:05 +00:00
< ? php
global $comicpress ;
2009-06-13 11:58:02 +00:00
2009-07-11 19:39:05 +00:00
get_header ();
?>
2009-06-13 11:58:02 +00:00
2009-07-11 19:39:05 +00:00
< ? php if ( ! is_paged ()) { ?>
< div id = " comic-head " ></ div >
< div id = " comic " >< ? php do_action ( 'show_comic' , null ); ?> </div>
< div id = " comic-foot " ></ div >
< ? php } ?>
< div id = " content " class = " narrowcolumn " >
2009-06-13 11:58:02 +00:00
2009-07-11 19:39:05 +00:00
< ? php if ( ! is_paged ()) {
$nav_comics = $comicpress -> get_nav_comics ();
2009-06-13 11:58:02 +00:00
2009-07-12 22:29:38 +00:00
$post = $nav_comics [ 'last' ];
?>
2009-07-11 19:39:05 +00:00
< div class = " post-comic-head " ></ div >
< div class = " post-comic " >
< div class = " nav " >
< ? php if ( $nav_comics [ 'show_first' ]) { ?>
< div class = " nav-first " >
< a href = " <?php echo get_permalink( $nav_comics['first'] ->ID) ?> "
title = " <?php _e('Go to the first comic', 'comicpress') ?> " >& lsaquo ; & lsaquo ; First </ a >
</ div >
< ? php } ?>
< ? php if ( $nav_comics [ 'show_previous' ]) { ?>
< div class = " nav-previous " >
< a href = " <?php echo get_permalink( $nav_comics['previous'] ->ID) ?> "
title = " <?php _e('Go to the previous comic', 'comicpress') ?> " >& lsaquo ; Previous </ a >
</ div >
< ? php } ?>
</ div >
< div class = " comicdate " >
< ? php the_date ( '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 >
2009-07-12 22:35:20 +00:00
< a href = " <?php get_permalink( $last_comic_post->ID ) ?> " rel = " bookmark " title = " <?php printf(__('Permanent Link to %s', 'comicpress'), get_the_title()) ?> " >< ? php the_title () ?> </a>
2009-07-11 19:39:05 +00:00
</ 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 >
< ? php } ?>
2009-06-13 11:58:02 +00:00
2009-07-11 19:39:05 +00:00
< div id = " blogheader " ><!-- This area can be used for a heading above your main page blog posts --></ div >
2009-06-13 11:58:02 +00:00
2009-07-11 19:39:05 +00:00
< ? php
$wp_query = new WP_Query ();
$wp_query -> query (
'showposts=' .
( int ) $comicpress -> comicpress_options [ 'blogpost_count' ] .
'&cat=-' .
$comicpress -> comicpress_options [ 'comic_category_id' ] .
'&paged=' .
$paged
);
2009-06-13 11:58:02 +00:00
2009-07-11 19:39:05 +00:00
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 >
2009-07-12 22:35:20 +00:00
< a href = " <?php the_permalink() ?> " rel = " bookmark " title = " <?php printf(__('Permanent Link to %s', 'comicpress'), get_the_title()) ?> " >< ? php the_title () ?> </a>
2009-06-13 11:58:02 +00:00
</ h3 >
< div class = " postdate " >
< ? php the_time ( 'F jS, Y' ) ?>
</ div >
< div class = " entry " >
2009-07-12 22:35:20 +00:00
< ? php the_content ( __ ( '↓ Read the rest of this entry...' , 'comicpress' )) ?>
2009-06-13 11:58:02 +00:00
</ div >
< div class = " tags " >
2009-07-12 22:35:20 +00:00
< ? php the_tags ( __ ( '└ Tags: ' , 'comicpress' ), ', ' , '' ); edit_post_link ( __ ( 'Edit Post' , 'comicpress' ), ' [ ' , ' ] ' ) ?>
2009-06-13 11:58:02 +00:00
</ div >
< div class = " comment-link " >
2009-07-12 22:35:20 +00:00
< ? php if ( 'open' == $post -> comment_status ) { comments_popup_link ( __ ( '“Comment”' , 'comicpress' ), __ ( '“1 Comment”' , 'comicpress' ), __ ( '“% Comments”' , 'comicpress' )); } ?>
2009-06-13 11:58:02 +00:00
</ div >
< div class = " clear-margins " >< br /></ div >
</ div >
< div class = " post-foot " ></ div >
2009-07-11 19:39:05 +00:00
< ? php } ?>
2009-06-13 11:58:02 +00:00
< div class = " pagenav " >
2009-07-12 22:35:20 +00:00
< div class = " pagenav-right " >< ? php previous_posts_link ( __ ( 'Newer Entries ↑' , 'comicpress' )) ?> </div>
< div class = " pagenav-left " >< ? php next_posts_link ( __ ( '↓ Previous Entries' , 'comicpress' )) ?> </div>
2009-06-13 11:58:02 +00:00
< div class = " clear " ></ div >
</ div >
</ div >
2009-07-11 19:39:05 +00:00
< ? php include ( dirname ( __FILE__ ) . '/sidebar.php' ) ?>
2009-06-13 11:58:02 +00:00
< ? php get_footer () ?>