diff --git a/comicpress-options-config.php b/comicpress-options-config.php index 1279b27..90cbb26 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -163,6 +163,11 @@ $options = array ( "id" => "comicpress-disable_categories_in_posts", "default" => "no", "type" => "comicpress-disable_categories_in_posts"), + + array( + "id" => "comicpress-moods_directory", + "default" => "default", + "type" => "comicpress-moods_directory"), array("type" => "close") diff --git a/comicpress-options.php b/comicpress-options.php index 25ccd5b..fc84594 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -7,7 +7,7 @@ function comicpress_options() { } function comicpress_admin() { - global $options, $upload_path, $blogcat; + global $options, $upload_path, $blogcat, $moods_directory; ?> @@ -388,13 +388,49 @@ function comicpress_admin() { + + Moods Directory

Choose a directory to get the post moods from.
+ + + + + Found: moods in the "" directory.
+
+ Mood directories are found in your theme directory/images/moods/* to create your own custom moods just create a directory + under images/moods/ and place ONLY image files inside of it. The name of the image file represents what the mood is. + + + + - + + +
+

diff --git a/functions.php b/functions.php index fbefa8b..8455a35 100644 --- a/functions.php +++ b/functions.php @@ -64,10 +64,11 @@ if (get_option('upload_path') !== false) { 'disable_css_style_editor' => 'disable_css_style_editor', 'enable_post_calendar' => 'enable_post_calendar', 'enable_post_author_gravatar' => 'enable_post_author_gravatar', - 'enable_comic_post_calendar' => 'enable_comic_post_calendar', + 'enable_comic_post_calendar' => 'enable_comic_post_calendar', 'enable_comic_post_author_gravatar' => 'enable_comic_post_author_gravatar', 'disable_tags_in_posts' => 'disable_tags_in_posts', 'disable_categories_in_posts' => 'disable_categories_in_posts', + 'moods_directory' => 'moods_directory', 'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) { $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); } @@ -125,6 +126,7 @@ require_once(get_template_directory() . '/functions/relatedposts.php'); require_once(get_template_directory() . '/functions/relatedcomics.php'); require_once(get_template_directory() . '/functions/membersonly.php'); require_once(get_template_directory() . '/functions/syndication.php'); +require_once(get_template_directory() . '/functions/moods.php'); if ($enable_dropdown_sidebar == 'yes') { diff --git a/functions/displayblogpost.php b/functions/displayblogpost.php index d89b991..13f65d8 100644 --- a/functions/displayblogpost.php +++ b/functions/displayblogpost.php @@ -21,6 +21,7 @@ function display_blog_post() {
+
diff --git a/functions/displaycomicpost.php b/functions/displaycomicpost.php index 0c3edc8..1405361 100644 --- a/functions/displaycomicpost.php +++ b/functions/displaycomicpost.php @@ -23,6 +23,7 @@ function display_comic_post() { +