From bba4ccaa8608b95cdd20ee25fe1066575b579cd1 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 27 Aug 2009 16:28:39 -0700 Subject: [PATCH] option to disable the left and right sidebars on the index page. Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-options-config.php | 7 ++++++- comicpress-options.php | 14 ++++++++++++++ functions.php | 1 + sidebar-left.php | 4 +++- sidebar-right.php | 4 +++- 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/comicpress-options-config.php b/comicpress-options-config.php index 0635618..a4aa041 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -171,7 +171,7 @@ $options = array ( array( "id" => "comicpress-graphicnav_directory", - "default" => "scifi", + "default" => "default", "type" => "comicpress-graphicnav_directory"), array( @@ -189,6 +189,11 @@ $options = array ( "default" => "yes", "type" => "comicpress-enable_navigation_in_menubar"), + array( + "id" => "comicpress-disable_lrsidebars_frontpage", + "default" => "no", + "type" => "comicpress-disable_lrsidebars_frontpage"), + array("type" => "close") ); diff --git a/comicpress-options.php b/comicpress-options.php index a4192d3..ceb048e 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -380,6 +380,20 @@ function comicpress_admin() { + + + Disable the left and right sidebars on the index page?

Set to "Yes" and the index page/front page of your site will not display the left and right sidebars.
+ + +    +
+ + + Minimalists dream. + + + 'enable_search_in_menubar', 'enable_rss_in_menubar' => 'enable_rss_in_menubar', 'enable_navigation_in_menubar' => 'enable_navigation_in_menubar', + 'disable_lrsidebars_frontpage' => 'disable_lrsidebars_frontpage', 'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) { $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); } diff --git a/sidebar-left.php b/sidebar-left.php index dc48916..a0ca766 100644 --- a/sidebar-left.php +++ b/sidebar-left.php @@ -1,3 +1,4 @@ + - \ No newline at end of file + + \ No newline at end of file diff --git a/sidebar-right.php b/sidebar-right.php index 2b36dcb..1425046 100644 --- a/sidebar-right.php +++ b/sidebar-right.php @@ -1,3 +1,4 @@ + - \ No newline at end of file + + \ No newline at end of file