diff --git a/archive-comic-calendar.php b/archive-comic-calendar.php index be93a15..a248950 100644 --- a/archive-comic-calendar.php +++ b/archive-comic-calendar.php @@ -107,8 +107,31 @@ foreach ( $years as $year ) { - -
+ + +
+ + 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'] ?> + + + +
+
diff --git a/comicpress-options-config.php b/comicpress-options-config.php index 44dd344..bd3f6c9 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -194,6 +194,11 @@ $options = array ( "default" => "no", "type" => "comicpress-disable_lrsidebars_frontpage"), + array( + "id" => "comicpress-calendar_directory", + "default" => "none", + "type" => "comicpress-calendar_directory"), + array("type" => "close") ); diff --git a/comicpress-options.php b/comicpress-options.php index 96b19e8..2f47574 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -20,7 +20,7 @@ if ($is_IE) { function comicpress_admin() { - global $options, $upload_path, $blogcat, $moods_directory; + global $options, $upload_path, $blogcat, $moods_directory, $calendar_directory, $graphicnav_directory; ?> @@ -305,6 +305,41 @@ function comicpress_admin() { + + + Calendar Directory

Choose a directory to get the Archive Calendar styling from.
+ + + + + To not have calendar graphics, set this as "none".
+
+ + Calendar directories are found in your theme directory/images/cal/* to create your own custom archive calendar images just create a directory + under images/cal/ and place your image files inside of it. + + + @@ -355,14 +390,14 @@ function comicpress_admin() { - Disable the comic blog on the index page?

Set to "Yes" and the blog portion of the comic will not display on the index page/front page of your site.
+ Disable the comic blog on the index and single pages?

Set to "Yes" and the blog portion of the comic will not display on the index page/front page of your site.
  
- *Some* people,.. not naming names ..do not like to have a comic post let alone showing on the index page. + *Some* people,.. not naming names ..do not like to have a comic post let alone showing on the index page. You can use the comic blog post widget and place it anywhere around the comic. IF there is no content in the post it will not display. diff --git a/footer.php b/footer.php index a8f1940..05c8a90 100644 --- a/footer.php +++ b/footer.php @@ -10,7 +10,7 @@

- © . is powered by WordPress with ComicPress + © | is powered by WordPress with ComicPress | Subscribe: RSS Feed | Back to Top ↑

diff --git a/functions.php b/functions.php index 351fd93..fd56998 100644 --- a/functions.php +++ b/functions.php @@ -1,6 +1,6 @@ 'enable_rss_in_menubar', 'enable_navigation_in_menubar' => 'enable_navigation_in_menubar', 'disable_lrsidebars_frontpage' => 'disable_lrsidebars_frontpage', + 'comicpress-calendar_directory' => 'comicpress-calendar_directory', 'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) { $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); } @@ -85,6 +86,7 @@ if (get_option('upload_path') !== false) { if (empty($graphicnav_directory)) $graphicnav_directory = 'default'; if (empty($moods_directory)) $moods_directory = 'default'; +if (empty($calendar_directory)) $calendar_directory = 'none'; function is_cp_theme_style($choices) { global $cp_theme_style; diff --git a/functions/moods.php b/functions/moods.php index 3411240..a7aa620 100644 --- a/functions/moods.php +++ b/functions/moods.php @@ -22,7 +22,7 @@ function comicpress_show_mood_in_post() { $mood = explode(".", $mood); $mood = reset($mood); if ( !empty($mood_file) && file_exists(get_template_directory() . '/images/moods/'.$moods_directory.'/'.$mood_file) ) { ?> -
<?php echo $mood; ?>
+
<?php echo $mood; ?>
post_content)) { + echo $before_widget; + $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); + if ( !empty( $title ) ) { echo $title; } + + display_comic_post(); + echo $after_widget; + } + endwhile; + endif; } function update($new_instance, $old_instance) {