tempate nav code changes and cleanups
This commit is contained in:
parent
ba387cd1c2
commit
90aa7c111a
@ -120,11 +120,12 @@ $month['12'] = array('month' => 'December', 'days' => '31');
|
||||
|
||||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<?php while (have_posts()) { the_post(); ?>
|
||||
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year ?></span> <?php the_title() ?></h2>
|
||||
|
||||
<div class="entry"><?php the_content() ?></div>
|
||||
<?php } ?>
|
||||
<?php while (have_posts()) : the_post() ?>
|
||||
<div class="entry">
|
||||
<h2 class="pagetitle"><span class="archive-year"><?php echo $archive_year; ?></span> <?php the_title() ?></h2>
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div class="archive-yearlist">|
|
||||
<?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC");
|
||||
|
@ -64,11 +64,12 @@ Template Name: Comic Storyline Archive
|
||||
<div id="content" class="narrowcolumn">
|
||||
|
||||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||
<?php while (have_posts()) : the_post() ?>
|
||||
<div class="entry">
|
||||
<?php while (have_posts()) : the_post(); the_content(); endwhile; ?>
|
||||
<h2 class="pagetitle"><?php the_title() ?></h2>
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
<ul id="storyline" class="level-0">
|
||||
<?php if (get_option('comicpress-enable-storyline-support') == 1) {
|
||||
if (($result = get_option("comicpress-storyline-category-order")) !== false) {
|
||||
|
@ -35,6 +35,12 @@
|
||||
<div class="post-comic-head"></div>
|
||||
<div class="post-comic">
|
||||
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width; ?>px;">
|
||||
<div class="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<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 ?>" /><br />
|
||||
<h3><?php the_title() ?></h3>
|
||||
<small><?php the_time('F jS, Y') ?></small></a>
|
||||
|
10
comments.php
10
comments.php
@ -1,4 +1,3 @@
|
||||
<div id="content" class="narrowcolumn">
|
||||
<div class="comment-wrap">
|
||||
|
||||
<?php
|
||||
@ -16,7 +15,13 @@
|
||||
<h3 id="comments"><?php comments_number('Discussion¬', 'Discussion¬', 'Discussion (%)¬' );?></h3>
|
||||
|
||||
<ol class="commentlist">
|
||||
<?php wp_list_comments(array('avatar_size'=>64)); ?>
|
||||
<?php wp_list_comments(array(
|
||||
'type' => 'all',
|
||||
'callback' => 'comicpress_comments_callback',
|
||||
'end-callback' => 'comicpress_comments_end_callback',
|
||||
'avatar_size'=>64
|
||||
)
|
||||
); ?>
|
||||
</ol>
|
||||
<div class="pagenav">
|
||||
<div class="pagenav-right"><?php next_comments_link('Newer Comments ↑') ?></div>
|
||||
@ -90,4 +95,3 @@
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
@ -22,6 +22,7 @@
|
||||
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name') ?> Atom Feed" href="<?php bloginfo('atom_url') ?>" />
|
||||
<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" />
|
||||
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/scroll.js"></script>
|
||||
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
|
||||
<?php wp_head() ?>
|
||||
<!--[if lt IE 7]><script type="text/javascript" src="<?php bloginfo('template_directory') ?>/js/ie6submenus.js"></script><![endif]-->
|
||||
</head>
|
||||
|
29
index.php
29
index.php
@ -9,6 +9,7 @@
|
||||
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
||||
</div>
|
||||
<div id="comic-foot"></div>
|
||||
<?php comic_navigation(); ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
@ -20,22 +21,23 @@
|
||||
<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="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||
<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', ' [ ', ' ] ') ?>
|
||||
<?php the_tags('└ Tags: ', ', ', ''); ?>
|
||||
</div>
|
||||
<div class="comment-link">
|
||||
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
||||
@ -57,17 +59,18 @@
|
||||
while ($wp_query->have_posts()) : $wp_query->the_post() ?>
|
||||
<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 class="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||
<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', ' [ ', ' ] ') ?>
|
||||
<?php the_tags('└ Tags: ', ', ', ''); ?>
|
||||
</div>
|
||||
<div class="comment-link">
|
||||
<?php if ('open' == $post->comment_status) { comments_popup_link('“Comment”', '“1 Comment”', '“% Comments”'); } ?>
|
||||
|
@ -22,10 +22,14 @@
|
||||
|
||||
<div class="post-comic-head"></div>
|
||||
<div class="post-comic">
|
||||
<div class="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<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="<?php the_transcript() ?>" width="<?php echo $archive_comic_width ?>" /><br />
|
||||
<h3><?php the_title() ?></h3>
|
||||
<small><?php the_time('F jS, Y') ?></small></a>
|
||||
</div>
|
||||
<br class="clear-margins" />
|
||||
</div>
|
||||
@ -35,8 +39,12 @@
|
||||
|
||||
<div class="post-head"></div>
|
||||
<div class="post">
|
||||
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></h3>
|
||||
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
||||
<div class="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<?php the_excerpt() ?>
|
||||
<br class="clear-margins" />
|
||||
</div>
|
||||
|
20
search.php
20
search.php
@ -22,10 +22,14 @@
|
||||
|
||||
<div class="post-comic-head"></div>
|
||||
<div class="post-comic">
|
||||
<div class="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<div class="comicarchiveframe" style="width:<?php echo $archive_comic_width ?>px;">
|
||||
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="Click for full size." title="Click for full size" width="<?php echo $archive_comic_width ?>" /><br />
|
||||
<h3><?php the_title() ?></h3>
|
||||
<small><?php the_time('F jS, Y') ?></small></a>
|
||||
</div>
|
||||
<br class="clear-margins" />
|
||||
</div>
|
||||
@ -35,8 +39,12 @@
|
||||
|
||||
<div class="post-head"></div>
|
||||
<div class="post">
|
||||
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></h3>
|
||||
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
||||
<div class="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('[edit this]'); ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<?php the_excerpt() ?>
|
||||
<br class="clear-margins" />
|
||||
</div>
|
||||
@ -44,7 +52,7 @@
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php endwhile ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } else { ?>
|
||||
<div class="pagenav">
|
||||
@ -65,7 +73,7 @@
|
||||
</div>
|
||||
<div class="post-page-foot"></div>
|
||||
|
||||
<?php endif ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
|
||||
<div>
|
||||
<input type="text" value="Search Site..." name="s" id="s" onfocus="this.value=(this.value=='Search Site...') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Search Site...' : this.value;" />
|
||||
<input type="submit" id="searchsubmit" value="»" />
|
||||
<button type="submit" class="button">►</button>
|
||||
</div>
|
||||
</form>
|
26
single.php
26
single.php
@ -6,6 +6,7 @@
|
||||
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" />
|
||||
</div>
|
||||
<div id="comic-foot"></div>
|
||||
<?php comic_navigation(); ?>
|
||||
<?php } endwhile; ?>
|
||||
|
||||
<div id="content" class="narrowcolumn">
|
||||
@ -15,24 +16,28 @@
|
||||
<?php if (in_comic_category()) { ?>
|
||||
<div class="post-comic-head"></div>
|
||||
<div class="post-comic" id="post-<?php the_ID() ?>">
|
||||
<div class="comicdate">
|
||||
<div class="nav">
|
||||
<?php if ( get_permalink() != $first_comic ) { ?><div class="nav-first"><a href="<?php echo $first_comic ?>">‹‹ First</a></div><?php } ?>
|
||||
<div class="nav-previous"><?php previous_comic_link('%link', '‹ Previous') ?></div>
|
||||
<div class="nav-next"><?php next_comic_link('%link', 'Next ›') ?></div>
|
||||
<?php if ( get_permalink() != $last_comic ) { ?><div class="nav-last"><a href="<?php echo $last_comic ?>">Last ››</a></div><?php } ?>
|
||||
</div>
|
||||
<?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><?php the_title() ?></h2>
|
||||
<div class="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><?php the_title(); ?></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('Edit Post', ' [ ', ' ] ') ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||
<div class="entry">
|
||||
<?php the_content() ?>
|
||||
<?php the_transcript('styled') ?>
|
||||
<div class="tags">
|
||||
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
||||
<?php the_tags('└ Tags: ', ', ', ''); ?>
|
||||
</div>
|
||||
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
||||
</div>
|
||||
@ -49,13 +54,18 @@
|
||||
<div class="nav-blog-next"><?php next_post_link('%link','Next ›', TRUE) ?></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<h2><?php the_title() ?></h2>
|
||||
<div class="postdate"><?php the_time('F jS, Y') ?></div>
|
||||
<div class="comicdate">
|
||||
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
|
||||
</div>
|
||||
<h2><?php the_title(); ?></h2>
|
||||
By <?php the_author(); ?> on <?php the_time('F jS, Y') ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?> <br />
|
||||
Posted in: <?php the_category(','); ?>
|
||||
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
|
||||
<div class="entry">
|
||||
<?php the_content() ?>
|
||||
<?php the_transcript('styled') ?>
|
||||
<div class="tags">
|
||||
<?php the_tags('└ Tags: ', ', ', ''); edit_post_link('Edit Post', ' [ ', ' ] ') ?>
|
||||
<?php the_tags('└ Tags: ', ', ', ''); ?>
|
||||
</div>
|
||||
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user