Transcript search for ‘’
@@ -41,19 +41,25 @@Search for ‘’
@@ -39,55 +39,69 @@ - --
-
-
- - - +
-
+
-
+
+
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');