diff --git a/archive.php b/archive.php index 5008cba..679baa8 100644 --- a/archive.php +++ b/archive.php @@ -113,7 +113,12 @@
- +
diff --git a/comicpress-options-config.php b/comicpress-options-config.php index 33c6b35..24abd04 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -227,7 +227,17 @@ $options = array ( array( "id" => "comicpress-disable_comment_note", "default" => "no", - "type" => "comicpress-disable_comment_note"), + "type" => "comicpress-disable_comment_note"), + + array( + "id" => "comicpress-excerpt_or_content_archive", + "default" => "excerpt", + "type" => "comicpress-excerpt_or_content_archive"), + + array( + "id" => "comicpress-excerpt_or_content_search", + "default" => "excerpt", + "type" => "comicpress-excerpt_or_content_search"), array("type" => "close") ); diff --git a/comicpress-options.php b/comicpress-options.php index 92baf89..d52760d 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -421,6 +421,30 @@ function comicpress_admin() { + + Would you like to have users see the entire content or just an excerpt when viewing the archives?

+ + +    + + + + + + + + Would you like to have users see the entire content or just an excerpt when searching?

+ + +    + + + + + + diff --git a/functions.php b/functions.php index b576c38..7047884 100644 --- a/functions.php +++ b/functions.php @@ -87,7 +87,9 @@ if (get_option('upload_path') !== false) { 'themepack_directory' => 'themepack_directory', 'avatar_directory' => 'avatar_directory', 'archive_display_order' => 'archive_display_order', - 'disable_comment_note' => 'disable_comment_note' ) as $options => $variable_name) { + 'disable_comment_note' => 'disable_comment_note', + 'excerpt_or_content_archive' => 'excerpt_or_content_archive', + 'excerpt_or_content_search' => 'excerpt_or_content_search' ) as $options => $variable_name) { $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); } diff --git a/functions/moods.php b/functions/moods.php index 2310e2d..1286398 100644 --- a/functions/moods.php +++ b/functions/moods.php @@ -20,11 +20,13 @@ function comicpress_show_mood_in_post() { $moods_directory = get_option('comicpress-moods_directory'); if (!empty($moods_directory) && $moods_directory != 'none') { $mood_file = get_post_meta( get_the_ID(), "mood", true ); - $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_count;
- +
diff --git a/sidebar-belowfooter.php b/sidebar-belowfooter.php new file mode 100644 index 0000000..3dd524d --- /dev/null +++ b/sidebar-belowfooter.php @@ -0,0 +1,7 @@ + + +