additional_stylesheets[] = '/style/archive-comic-calendar.css'; $dayWidth = 22; //set to .cpcal-day total width in pixels including: width, left & right border, left & right margin, left & right padding $archive_year = !empty($_GET['archive_year']) ? (int)$_GET['archive_year'] : date('Y'); $comic_archive_posts = array(); $comic_archive_query = new WP_Query(); $comic_archive_query->query('showposts=1000&cat=' . $comicpress->get_all_comic_categories_as_cat_string() . '&year=' . $archive_year); while ($comic_archive_query->have_posts()) { $comic_archive_query->the_post(); $comic_archive_posts[get_the_time('d-m')] = array( 'link' => get_permalink(), 'title' => get_the_title() ); } $days_of_week = array(); for ($i = 0; $i < 7; ++$i) { $days_of_week[] = substr(date("l", gmmktime(0, 0, 0, 7, 13 + $i, 2009)), 0, 1); } ob_start(); ?>

| 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) { ?> |
">

comicpress_options['layout']); ?>