From 8d6c5b6e4cf4034bb23bc99d530ca5140b471578 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Sat, 5 Sep 2009 19:00:23 -0700 Subject: [PATCH] option to turn off text in the footer Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-options-config.php | 4 ++++ comicpress-options.php | 14 ++++++++++++++ footer.php | 2 ++ functions.php | 3 ++- widgets/comicdate.php | 1 + 5 files changed, 23 insertions(+), 1 deletion(-) diff --git a/comicpress-options-config.php b/comicpress-options-config.php index 4d9d569..7e5c271 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -204,6 +204,10 @@ $options = array ( "default" => "no", "type" => "comicpress-disable_dynamic_menubar_links"), + array( + "id" => "comicpress-disable_footer_text", + "default" => "no", + "type" => "comicpress-disable_footer_text"), array("type" => "close") ); diff --git a/comicpress-options.php b/comicpress-options.php index ce2dd79..10fb7cb 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -298,6 +298,20 @@ function comicpress_admin() { + + + Disable the default text in the footer?

Set to "Yes" and the text in the footer will not show.

+ + +    +
+ + + Footer text that shows up in the #footer area can be simply removed this way. + + + +

| Powered by WordPress with ComicPress | Subscribe: RSS Feed | Back to Top ↑

+ diff --git a/functions.php b/functions.php index afc93e3..dabbd6d 100644 --- a/functions.php +++ b/functions.php @@ -82,7 +82,8 @@ if (get_option('upload_path') !== false) { 'disable_lrsidebars_frontpage' => 'disable_lrsidebars_frontpage', 'calendar_directory' => 'calendar_directory', 'contact_in_menubar' => 'contact_in_menubar', - 'disable_dynamic_menubar_links' => 'disable_dynamic_menubar_links' ) as $options => $variable_name) { + 'disable_dynamic_menubar_links' => 'disable_dynamic_menubar_links', + 'disable_footer_text' => 'disable_footer_text' ) as $options => $variable_name) { $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); } diff --git a/widgets/comicdate.php b/widgets/comicdate.php index 8bd9ac2..702a37d 100644 --- a/widgets/comicdate.php +++ b/widgets/comicdate.php @@ -42,6 +42,7 @@ class widget_comicpress_comic_date extends WP_Widget { ?>

+

Date String Examples