From 113a0402b472672e7633315eaf7c441e837521e6 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Sat, 22 Aug 2009 18:11:14 -0700 Subject: [PATCH] two new options to disable showing of info inposts Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-options-config.php | 10 ++++++++++ comicpress-options.php | 24 ++++++++++++++++++++++++ functions.php | 2 ++ functions/displayblogpost.php | 12 ++++++++---- functions/displaycomicpost.php | 11 ++++++++--- 5 files changed, 52 insertions(+), 7 deletions(-) diff --git a/comicpress-options-config.php b/comicpress-options-config.php index e728b7c..1279b27 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -154,6 +154,16 @@ $options = array ( "default" => "no", "type" => "comicpress-enable_comic_post_author_gravatar"), + array( + "id" => "comicpress-disable_tags_in_posts", + "default" => "no", + "type" => "comicpress-disable_tags_in_posts"), + + array( + "id" => "comicpress-disable_categories_in_posts", + "default" => "no", + "type" => "comicpress-disable_categories_in_posts"), + array("type" => "close") ); diff --git a/comicpress-options.php b/comicpress-options.php index 3bb7efb..25ccd5b 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -351,6 +351,30 @@ function comicpress_admin() { + + Disable showing categories in posts?

+ + +    + + + + + + + Disable showing tags in posts?

+ + +    + + + + + diff --git a/functions.php b/functions.php index d6ab8af..1fe52d2 100644 --- a/functions.php +++ b/functions.php @@ -67,6 +67,8 @@ if (get_option('upload_path') !== false) { 'enable_post_author_gravatar' => 'enable_post_author_gravatar', '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', 'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) { $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); } diff --git a/functions/displayblogpost.php b/functions/displayblogpost.php index 01a45fb..fa8c239 100644 --- a/functions/displayblogpost.php +++ b/functions/displayblogpost.php @@ -28,8 +28,10 @@ function display_blog_post() {

- - By on
- - Subject:
+ By on
+ + Posted In:
+
@@ -39,9 +41,11 @@ function display_blog_post() {
-
+ +
'); ?> -
+
+ diff --git a/functions/displaycomicpost.php b/functions/displaycomicpost.php index aa9989b..40499ff 100644 --- a/functions/displaycomicpost.php +++ b/functions/displaycomicpost.php @@ -7,7 +7,7 @@ */ function display_comic_post() { - global $post, $wp_query, $transcript_in_posts, $enable_related_comics, $enable_comic_post_author_gravatar, $enable_comic_post_calendar; + global $post, $wp_query, $transcript_in_posts, $enable_related_comics, $enable_comic_post_author_gravatar, $enable_comic_post_calendar, $disable_categories_in_posts, $disable_tags_in_posts; $first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink(); ?>
+ +
+ '); ?> +
+
- '); ?> + '); ?>