query('&showposts=1000&cat='.get_all_comic_categories_as_cat_string().'&year='.$archive_year); while ($comicArchive->have_posts()) : $comicArchive->the_post(); $calTitle = get_the_title(); $calLink = get_permalink(); $calDay = get_the_time('j'); $calMonth = get_the_time('F'); $calComic[$calMonth.$calDay] = array('link' => $calLink, 'title' => $calTitle); endwhile; $post = $tempPost; function leapYear($yr) { if ($yr % 4 != 0) { return 28; } else { if ($yr % 100 != 0) { return 29; } else { if ($yr % 400 != 0) { return 28; } else { return 29; } } } } $leapYear = leapYear($archive_year); $month['1'] = array('month' => __('January','comicpress'), 'days' => '31'); $month['2'] = array('month' => __('February','comicpress'), 'days' => $leapYear); $month['3'] = array('month' => __('March','comicpress'), 'days' => '31'); $month['4'] = array('month' => __('April','comicpress'), 'days' => '30'); $month['5'] = array('month' => __('May','comicpress'), 'days' => '31'); $month['6'] = array('month' => __('June','comicpress'), 'days' => '30'); $month['7'] = array('month' => __('July','comicpress'), 'days' => '31'); $month['8'] = array('month' => __('August','comicpress'), 'days' => '31'); $month['9'] = array('month' => __('September','comicpress'), 'days' => '30'); $month['10'] = array('month' => __('October','comicpress'), 'days' => '31'); $month['11'] = array('month' => __('November','comicpress'), 'days' => '30'); $month['12'] = array('month' => __('December','comicpress'), 'days' => '31'); ?>

| get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' ORDER BY post_date ASC"); foreach ( $years as $year ) { if ($year != (0) ) { ?> |
0) { if (is_array($monthfile)) $monthfile = reset($monthfile); ?> <?php echo $month[$i]['month'] ?> <?php echo $month[$i]['month'] ?> 0) { if (is_array($monthfile)) $monthfile = reset($monthfile); ?> <?php echo $month[$i]['month'] ?> <?php echo $month[$i]['month'] ?> 0) { if (is_array($monthfile)) $monthfile = reset($monthfile); ?> <?php echo $month[$i]['month'] ?> <?php echo $month[$i]['month'] ?> 0) { if (is_array($monthfile)) $monthfile = reset($monthfile); ?> <?php echo $month[$i]['month'] ?> <?php echo $month[$i]['month'] ?>
', '

') ?>
comment_status) { comments_template('', true); } ?>