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;
-