From ce242e6aee90f7dd02a399c3851579f89fc6e58f Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Fri, 28 Aug 2009 03:21:07 -0700 Subject: [PATCH] pagination shouldnt show the bar now if page is not paginated. CSS archive-drop fixes ? Signed-off-by: Philip M. Hofer (Frumph) --- author.php | 3 +- functions/pagination.php | 31 +++++++++--------- style.css | 68 +++++++++++++++++----------------------- 3 files changed, 46 insertions(+), 56 deletions(-) diff --git a/author.php b/author.php index cd4d5a2..334aedc 100644 --- a/author.php +++ b/author.php @@ -64,11 +64,12 @@ +
- + diff --git a/functions/pagination.php b/functions/pagination.php index db59d32..096e73b 100644 --- a/functions/pagination.php +++ b/functions/pagination.php @@ -2,18 +2,19 @@ function comicpress_pagination() { global $post, $wp_query; - if (is_paged()) { - if(function_exists('wp_pagenavi')) { ?> -
- -
-
- - - + $paged = intval(get_query_var('paged')); + if(function_exists('wp_pagenavi') && !empty($paged)) { ?> +
+ +
+
+ + + diff --git a/style.css b/style.css index ea7623c..0a68326 100644 --- a/style.css +++ b/style.css @@ -807,17 +807,6 @@ ul.children { list-style: none; } -.widget { - margin: 0 auto; -} - -.widget_comicpress_comictitle { - font-size: 36px; - font-family: georgia; - letter-spacing: -2px; - text-align: center; -} - /* Sidebar Class */ @@ -865,28 +854,49 @@ ul.children { /* WIDGETS */ +.widget { + margin: 0 auto; +} + +.widget_comicpress_comictitle { + font-size: 36px; + font-family: georgia; + letter-spacing: -2px; + text-align: center; +} + .random-comic-icon { padding: 0 5px; color: #fff; background: #000; } - .comic-bookmark { width: 185px; margin: 0 auto; margin-bottom: 10px; } - -.archive-dropdown { - max-width: 100%; +.archive-dropdown-wrap { + background: url('images/browse-search.png') no-repeat; } +.archive-dropdown-wrap:hover { + background-position: 0 -23px; +} - - - +.archive-dropdown { + margin: 0; + padding: 0; + width: 166px; + height: 23px; + font-size: 12px; + font-family: 'Arial' , sans-serif; + border: none; + opacity: 0; + filter: alpha(opacity=0); + cursor: pointer; +} /* CALENDAR */ @@ -1000,28 +1010,6 @@ table#wp-calendar td { padding: 5px; } -.archive-dropdown-wrap { - background: url('images/browse-search.png') no-repeat; -} - -.archive-dropdown-wrap:hover { - background-position: 0 -23px; -} - -.archive-dropdown { - margin: 0; - padding: 0; - width: 166px; - height: 23px; - font-size: 12px; - font-family: 'Arial' , sans-serif; - border: none; - opacity: 0; - filter: alpha(opacity=0); - cursor: pointer; -} - - /* GALLERY */