From 8c81ff96f5197579caaf558eaaf5793fda92b80b Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Fri, 20 Nov 2009 06:31:37 -0800 Subject: [PATCH] Adding flag switch for static blog posts that appear on every single page. Signed-off-by: Philip M. Hofer (Frumph) --- comicpress-options-config.php | 5 ++ comicpress-options.php | 2 +- functions.php | 4 +- options/postoptions.php | 89 +++++++++-------------------------- 4 files changed, 29 insertions(+), 71 deletions(-) diff --git a/comicpress-options-config.php b/comicpress-options-config.php index 76564ce..e1f3eb7 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -177,6 +177,11 @@ $options = array ( "default" => "no", "type" => "comicpress-blogposts_with_comic"), + array( + "id" => "comicpress-static_blog", + "default" => "no", + "type" => "comicpress-static_blog"), + array( "id" => "comicpress-disable_page_titles", "default" => "no", diff --git a/comicpress-options.php b/comicpress-options.php index 7808135..ef08401 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -101,7 +101,7 @@ function comicpress_admin() { src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> - ComicPress 2.9 [ ]. Tyler Martin John Bintz Philip M. Hofer (Frumph) Danny Burleson.
+ ComicPress 2.9 [ ]. Tyler Martin John Bintz Philip M. Hofer (Frumph) Danny Burleson.


diff --git a/functions.php b/functions.php index 528c405..7a4f77e 100644 --- a/functions.php +++ b/functions.php @@ -80,7 +80,6 @@ if (get_option('upload_path') !== false) { 'enable_related_posts' => 'enable_related_posts', 'comic_clicks_next' => 'comic_clicks_next', 'rascal_says' => 'rascal_says', - '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', @@ -111,7 +110,8 @@ if (get_option('upload_path') !== false) { 'remove_wptexturize' => 'remove_wptexturize', 'disable_default_menubar' => 'disable_default_menubar', 'disable_blogheader' => 'disable_blogheader', - 'disable_page_titles' => 'disable_page_titles' ) as $options => $variable_name) { + 'disable_page_titles' => 'disable_page_titles', + 'static_blog' => 'static_blog' ) as $options => $variable_name) { $variables_to_extract[$variable_name] = get_option("comicpress-${options}"); } diff --git a/options/postoptions.php b/options/postoptions.php index f76ee48..eb4e50f 100644 --- a/options/postoptions.php +++ b/options/postoptions.php @@ -10,9 +10,7 @@ global $split_column_in_two, $author_column_one, $author_column_two; foreach ($options as $value) { switch ( $value['type'] ) { -case "comicpress-transcript_in_posts": ?> - - + case "comicpress-transcript_in_posts": ?>

@@ -66,16 +64,8 @@ case "comicpress-transcript_in_posts": ?> - - - - - -

- Authors/Avatars -

- - - - + +

- Authors/Avatars/Moods -

@@ -155,12 +145,6 @@ case "comicpress-transcript_in_posts": ?> http://gravatar.com. - - - - - -
- - - - - - - - - - - - - - +

- Calendar -

@@ -271,13 +242,6 @@ case "comicpress-transcript_in_posts": ?> - - - - - - - @@ -291,9 +255,6 @@ case "comicpress-transcript_in_posts": ?> - - - @@ -308,15 +269,9 @@ case "comicpress-transcript_in_posts": ?> - - -

- Tags/Categories -

- - -

@@ -330,10 +285,6 @@ case "comicpress-transcript_in_posts": ?> - - - - @@ -348,11 +299,7 @@ case "comicpress-transcript_in_posts": ?> - - - -

- Pages -

- +

- Pages & Blog Loop -

@@ -367,11 +314,22 @@ case "comicpress-transcript_in_posts": ?> - - - - + +
+ + +    + + + + + + +

@@ -384,11 +342,6 @@ case "comicpress-transcript_in_posts": ?> - - - - -