From a9c37a265bd9f7cdef726309d263be25afec85a3 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Tue, 25 Aug 2009 21:01:17 -0700 Subject: [PATCH] styling cleanups to match everywhere Signed-off-by: Philip M. Hofer (Frumph) --- archive-blog-year.php | 2 +- archive-comic-calendar.php | 11 ++-- archive-comic-year.php | 2 +- archive.php | 53 +++++++++++------- search-transcript.php | 65 +++++++++++++--------- search.php | 110 +++++++++++++++++++++---------------- sidebar-right.php | 8 ++- style.css | 54 +++--------------- 8 files changed, 154 insertions(+), 151 deletions(-) diff --git a/archive-blog-year.php b/archive-blog-year.php index 2349274..e98e680 100644 --- a/archive-blog-year.php +++ b/archive-blog-year.php @@ -11,8 +11,8 @@ if (isset($_GET['archive_year'])) { } else { $latest_comic = get_terminal_post_in_category(get_all_comic_categories_as_cat_string(),false); $archive_year = get_post_time('Y', false, $latest_comic, true); - if (empty($archive_year)) $archive_year = date('Y'); } +if (empty($archive_year)) $archive_year = date('Y'); ?> diff --git a/archive-comic-calendar.php b/archive-comic-calendar.php index a1f7032..7857760 100644 --- a/archive-comic-calendar.php +++ b/archive-comic-calendar.php @@ -13,11 +13,10 @@ $dayWidth = 22; //set to .cpcal-day total width in pixels including: width, left if (isset($_GET['archive_year'])) { $archive_year = (int)$_GET['archive_year']; } else { - $latest_comic = get_terminal_post_in_category(get_all_comic_categories_as_cat_string(),false); + $latest_comic = get_terminal_post_in_category(get_all_comic_categories_as_cat_string(),true); $archive_year = get_post_time('Y', false, $latest_comic, true); - if (empty($archive_year)) $archive_year = date('Y'); } - + if (empty($archive_year)) $archive_year = date('Y'); $firstDayMargins = array(); @@ -46,7 +45,7 @@ function leapYear($yr) { } else { if ($yr % 400 != 0) { return 28; - } else { + } else { return 29; } } @@ -93,12 +92,12 @@ $month['12'] = array('month' => 'December', 'days' => '31');
- +

- +
| get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC"); diff --git a/archive-comic-year.php b/archive-comic-year.php index 341c590..1e21eab 100644 --- a/archive-comic-year.php +++ b/archive-comic-year.php @@ -11,8 +11,8 @@ Template Name: Comic Year Archive } else { $latest_comic = get_terminal_post_in_category(get_all_comic_categories_as_cat_string(),false); $archive_year = get_post_time('Y', false, $latest_comic, true); - if (empty($archive_year)) $archive_year = date('Y'); } + if (empty($archive_year)) $archive_year = date('Y'); ?> diff --git a/archive.php b/archive.php index ab7e6c8..ba95b6a 100644 --- a/archive.php +++ b/archive.php @@ -21,10 +21,10 @@
-post_count; - ?> + post_count; + ?>
Found result.
@@ -62,18 +62,19 @@ $count = $tmp_search->post_count;
-
-
- '); ?> Posted in: + By on
+
@@ -88,21 +89,31 @@ $count = $tmp_search->post_count;
-