From 30f3ebea268d057285292c2d8dc8d42e5fd0f909 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 31 Dec 2009 15:32:17 -0800 Subject: [PATCH] part 3 of removing the comicpress-config.php file from being in use, -> done, configuration page made note: blog_postcount is now seperated from the config options and a regular upper level var on the indexoptions.php currently the vars are being extracted to be the $vars that they were previously so they are backward compatible but would like to move those to be read from $comicpress_options['comicpress_config'][$key] at some point. Signed-off-by: Philip M. Hofer (Frumph) --- blog.php | 6 +++--- comicpress-options.php | 9 ++++----- functions.php | 12 ++++++------ functions/dual-columns.php | 6 +++--- index.php | 3 +-- options/configoptions.php | 26 ++++++++++++++++++++++++++ options/indexoptions.php | 9 +++++++++ single.php | 5 ++--- 8 files changed, 54 insertions(+), 22 deletions(-) diff --git a/blog.php b/blog.php index 174a445..9c30899 100644 --- a/blog.php +++ b/blog.php @@ -6,9 +6,9 @@ Template Name: Blog - -

+

-

+

'3', - 'blogcat' => '2', + 'blogcat' => '1', 'comic_folder' => 'comics', 'rss_comic_folder' => 'comics-rss', 'archive_comic_folder' => 'comics-archive', 'mini_comic_folder' => 'comics-mini', - 'archive_comic_width' => '480', 'rss_comic_width' => '320', - 'mini_comic_width' => '80', - 'blog_postcount' => '10' + 'archive_comic_width' => '480', + 'mini_comic_width' => '80' ) as $field => $value) { $comicpress_options['comicpress_config'][$field] = $value; } @@ -126,6 +125,7 @@ function comicpress_load_options() { 'cp_theme_layout' => 'standard', 'disable_comic_frontpage' => false, + 'blog_postcount' => '10', 'disable_comic_blog_frontpage' => false, 'disable_comic_blog_single' => false, 'disable_blog_frontpage' => false, @@ -144,7 +144,7 @@ function comicpress_load_options() { 'custom_image_header_width' => '980', 'custom_image_header_height' => '120', - 'enable_numbered_pagination' => false, + 'enable_numbered_pagination' => true, 'disable_page_restraints' => false, 'enable_related_comics' => false, diff --git a/functions/dual-columns.php b/functions/dual-columns.php index 5fb20dc..95152c6 100644 --- a/functions/dual-columns.php +++ b/functions/dual-columns.php @@ -1,11 +1,11 @@ + global $comicpress_options; ?>
-
- diff --git a/options/configoptions.php b/options/configoptions.php index 07f45b9..43dc254 100644 --- a/options/configoptions.php +++ b/options/configoptions.php @@ -139,7 +139,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/options/indexoptions.php b/options/indexoptions.php index 4eebba8..e117cdb 100644 --- a/options/indexoptions.php +++ b/options/indexoptions.php @@ -20,6 +20,15 @@ + + + + + + + + + diff --git a/single.php b/single.php index a480cd0..a331fff 100644 --- a/single.php +++ b/single.php @@ -10,7 +10,7 @@ if (have_posts()) : while (have_posts()) : the_post(); $next_comic = get_next_comic(); $next_comic = (array)$next_comic; $next_date = mysql2date('Y-m-j', $next_comic['post_date']); - $blog_query = 'showposts='.$blog_postcount.'&order=asc&cat=-'.exclude_comic_categories(); + $blog_query = 'showposts='.$comicpress_options['blog_postcount'].'&order=asc&cat=-'.exclude_comic_categories(); } } else { comicpress_display_post(); @@ -25,9 +25,8 @@ if (have_posts()) : while (have_posts()) : the_post();