re-added .nav crap cause some (*34q)49 IS USING It.. almost got rid if it *snaps fingers*

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-11-06 20:45:14 -08:00
parent a798ec8545
commit f5abfc2209
2 changed files with 43 additions and 1 deletions

View File

@ -7,7 +7,15 @@
*/
function display_comic_post() {
global $post, $wp_query, $authordata, $enable_related_comics, $enable_comic_post_author_gravatar, $enable_comic_post_calendar, $disable_categories_in_posts, $disable_tags_in_posts; ?>
global $post, $wp_query, $authordata, $enable_related_comics, $enable_comic_post_author_gravatar, $enable_comic_post_calendar, $disable_categories_in_posts, $disable_tags_in_posts;
$first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink();
?>
<div class="nav">
<?php if ( get_permalink() != $first_comic ) { ?><div class="nav-first"><a href="<?php echo $first_comic ?>"><?php _e('&lsaquo;&lsaquo; First','comicpress'); ?></a></div><?php } ?>
<div class="nav-previous"><?php $temp_query = $wp_query->is_single; $wp_query->is_single = true; previous_comic_link('%link', __('&lsaquo; Previous','comicpress')); $wp_query->is_single = $temp_query;$temp_query = null; ?></div>
<div class="nav-next"><?php next_comic_link('%link', __('Next &rsaquo;','comicpress')) ?></div>
<?php if ( get_permalink() != $last_comic ) { ?><div class="nav-last"><a href="<?php echo $last_comic ?>"><?php _e('Last &rsaquo;&rsaquo;','comicpress'); ?></a></div><?php } ?>
</div>
<div class="<?php comicpress_post_class(); ?>">
<div class="post-comic-head"></div>
<div class="post-comic" id="post-comic-<?php the_ID() ?>">

View File

@ -366,6 +366,38 @@ a.navi-comments:hover span {
color:#860b04;
}
.nav,.blognav {
float: right;
font-size: 12px;
font-weight: bold;
margin-right: 10px;
padding: 8px 5px 5px 5px;
}
.nav-first {
padding: 0 5px 0 0;
float: left;
}
.nav-previous {
padding: 0 5px;
float: left;
}
.nav-next {
padding: 0 5px;
float: left;
}
.nav-last {
padding: 0 0 0 5px;
float: left;
}
a.navi-comments:hover span {
color:#860b04;
}
.pagenav, .commentnav {
height: 25px;
color: #000;
@ -1473,3 +1505,5 @@ li.pingback div p, li.trackback div p {
margin: 0;
padding: 0;
}
.nav { display: none; }