From 977803839c4d0ebd523bc554f1ae98b3a321654c Mon Sep 17 00:00:00 2001 From: Simone Date: Wed, 7 Mar 2012 23:04:35 +0100 Subject: [PATCH] Added a theme option to specify the size (in columns) for the sidebar. If you specify 0 the sidebar is taken away --- 404.php | 15 +- archive.php | 15 +- attachment.php | 13 +- author.php | 12 +- category.php | 15 +- index.php | 15 +- page.php | 15 +- search.php | 13 +- sidebar.php | 14 +- single.php | 14 +- tag.php | 13 +- theme-options.php | 393 ++++++++++++++++++++++++---------------------- 12 files changed, 283 insertions(+), 264 deletions(-) diff --git a/404.php b/404.php index de3653c..e925041 100644 --- a/404.php +++ b/404.php @@ -7,11 +7,13 @@ * @since wpbootstrap 0.1 */ -get_header(); ?> +get_header(); -
-
+global $sa_options; +$sa_settings = get_option( 'sa_options', $sa_options ); ?> +
+
-
- -
+
- - \ No newline at end of file + diff --git a/archive.php b/archive.php index 2a7725a..0d7465e 100644 --- a/archive.php +++ b/archive.php @@ -12,9 +12,8 @@ * @since wpbootstrap 0.1 */ -get_header(); ?> +get_header(); - + +global $sa_options; +$sa_settings = get_option( 'sa_options', $sa_options ); ?>
-
+
-
- -
+
- \ No newline at end of file + diff --git a/attachment.php b/attachment.php index 803d7f1..8161d21 100644 --- a/attachment.php +++ b/attachment.php @@ -7,10 +7,10 @@ * @since wpbootstrap 0.1 */ -get_header(); ?> +get_header(); -
-
+global $sa_options; +$sa_settings = get_option( 'sa_options', $sa_options ); ?> @@ -99,9 +99,6 @@
-
- -
+
- - \ No newline at end of file + diff --git a/author.php b/author.php index 91eecd6..4d435a8 100644 --- a/author.php +++ b/author.php @@ -19,10 +19,12 @@ */ if ( have_posts() ) the_post(); -?> + +global $sa_options; +$sa_settings = get_option( 'sa_options', $sa_options ); ?>
-
+
-
- -
+
- \ No newline at end of file + diff --git a/category.php b/category.php index ba66b46..3e04fbc 100644 --- a/category.php +++ b/category.php @@ -7,11 +7,14 @@ * @since wpbootstrap 0.1 */ -get_header(); ?> +get_header(); -
-
+global $sa_options; +$sa_settings = get_option( 'sa_options', $sa_options ); ?> +
+
+ -
- -
+
- \ No newline at end of file + diff --git a/index.php b/index.php index 2091d88..d6d4135 100644 --- a/index.php +++ b/index.php @@ -13,9 +13,13 @@ * @since wpbootstrap 0.1 */ -get_header(); ?> +get_header(); + +global $sa_options; +$sa_settings = get_option( 'sa_options', $sa_options ); ?> +
-
+
-
- -
+
- - \ No newline at end of file + diff --git a/page.php b/page.php index 3a70bf2..6557590 100644 --- a/page.php +++ b/page.php @@ -12,11 +12,14 @@ * @since wpbootstrap 0.1 */ -get_header(); ?> +get_header(); -
-
+global $sa_options; +$sa_settings = get_option( 'sa_options', $sa_options ); ?> +
+
+ -
- -
+
- \ No newline at end of file + diff --git a/search.php b/search.php index ce9a588..b3c2117 100644 --- a/search.php +++ b/search.php @@ -7,10 +7,13 @@ * @since wpbootstrap 0.1 */ -get_header(); ?> +get_header(); + +global $sa_options; +$sa_settings = get_option( 'sa_options', $sa_options ); ?>
-
+
-
- -
+
- \ No newline at end of file + diff --git a/sidebar.php b/sidebar.php index d29509c..140d87a 100644 --- a/sidebar.php +++ b/sidebar.php @@ -6,9 +6,16 @@ * @subpackage wpbootstrap * @since wpbootstrap 0.1 */ -?> -