>
-
+
-
+
@@ -107,15 +106,15 @@
-
-
+
- #
@@ -53,16 +53,16 @@ Template Version: 2.14
-
+
-
-
-
+
+
+
US/Canada
- $ + $
+ $ + $
US/Canada
- $
+ $
@@ -75,16 +75,16 @@ Template Version: 2.14
-
+
-
-
+
+
International
- $ + $
+ $ + $
International
- $
+ $
diff --git a/comicpress-options-config.php b/comicpress-options-config.php
deleted file mode 100644
index 71ed0e7..0000000
--- a/comicpress-options-config.php
+++ /dev/null
@@ -1,305 +0,0 @@
- "open"),
-
- array(
- "id" => "comicpress-cp_theme_layout",
- "default" => "standard",
- "type" => "comicpress-cp_theme_layout"),
-
- array(
- "id" => "comicpress-disable_page_restraints",
- "default" => "no",
- "type" => "comicpress-disable_page_restraints"),
-
- array(
- "id" => "comicpress-rascal_says",
- "default" => "no",
- "type" => "comicpress-rascal_says"),
-
- array(
- "id" => "comicpress-disable_comment_note",
- "default" => "no",
- "type" => "comicpress-disable_comment_note"),
-
- array(
- "id" => "comicpress-disable_css_style_editor",
- "default" => "no",
- "type" => "comicpress-disable_css_style_editor"),
-
- array(
- "id" => "comicpress-custom_css",
- "default" => "",
- "type" => "comicpress-custom_css"),
-
- array(
- "id" => "comicpress-disable_extended_comments",
- "default" => "no",
- "type" => "comicpress-disable_extended_comments"),
-
- array(
- "id" => "comicpress-enable_numbered_pagination",
- "default" => "yes",
- "type" => "comicpress-enable_numbered_pagination"),
-
- array(
- "id" => "comicpress-comic_clicks_next",
- "default" => "no",
- "type" => "comicpress-comic_clicks_next"),
-
- array(
- "id" => "comicpress-graphicnav_directory",
- "default" => "default",
- "type" => "comicpress-graphicnav_directory"),
-
- array(
- "id" => "comicpress-disable_default_comic_nav",
- "default" => "no",
- "type" => "comicpress-disable_default_comic_nav"),
-
- array(
- "id" => "comicpress-disable_lrsidebars_frontpage",
- "default" => "no",
- "type" => "comicpress-disable_lrsidebars_frontpage"),
- array(
- "id" => "comicpress-enable_widgetarea_use_sidebar_css",
- "default" => "no",
- "type" => "comicpress-enable_widgetarea_use_sidebar_css"),
-
- array(
- "id" => "comicpress-disable_footer_text",
- "default" => "no",
- "type" => "comicpress-disable_footer_text"),
-
- array(
- "id" => "comicpress-disable_comic_frontpage",
- "default" => "no",
- "type" => "comicpress-disable_comic_frontpage"),
-
- array(
- "id" => "comicpress-disable_comic_blog_frontpage",
- "default" => "no",
- "type" => "comicpress-disable_comic_blog_frontpage"),
-
- array(
- "id" => "comicpress-disable_comic_blog_single",
- "default" => "no",
- "type" => "comicpress-disable_comic_blog_single"),
-
- array(
- "id" => "comicpress-disable_blog_frontpage",
- "default" => "no",
- "type" => "comicpress-disable_blog_frontpage"),
- array(
- "id" => "comicpress-disable_blogheader",
- "default" => "no",
- "type" => "comicpress-disable_blogheader"),
-
- array(
- "id" => "comicpress-transcript_in_posts",
- "default" => "no",
- "type" => "comicpress-transcript_in_posts"),
-
- array(
- "id" => "comicpress-enable_related_comics",
- "default" => "no",
- "type" => "comicpress-enable_related_comics"),
-
- array(
- "id" => "comicpress-enable_related_posts",
- "default" => "no",
- "type" => "comicpress-enable_related_posts"),
-
- array(
- "id" => "comicpress-remove_wptexturize",
- "default" => "no",
- "type" => "comicpress-remove_wptexturize"),
-
- array(
- "id" => "comicpress-split_column_in_two",
- "default" => "no",
- "type" => "comicpress-split_column_in_two"),
-
- array(
- "id" => "comicpress-author_column_one",
- "default" => "1",
- "type" => "comicpress-author_column_one"),
-
- array(
- "id" => "comicpress-author_column_two",
- "default" => "1",
- "type" => "comicpress-author_column_two"),
-
- array(
- "id" => "comicpress-enable_comic_post_author_gravatar",
- "default" => "no",
- "type" => "comicpress-enable_comic_post_author_gravatar"),
-
- array(
- "id" => "comicpress-enable_post_author_gravatar",
- "default" => "no",
- "type" => "comicpress-enable_post_author_gravatar"),
-
- array(
- "id" => "comicpress-avatar_directory",
- "default" => "default",
- "type" => "comicpress-avatar_directory"),
-
- array(
- "id" => "comicpress-moods_directory",
- "default" => "default",
- "type" => "comicpress-moods_directory"),
-
- array(
- "id" => "comicpress-calendar_directory",
- "default" => "default",
- "type" => "comicpress-calendar_directory"),
-
- array(
- "id" => "comicpress-enable_comic_post_calendar",
- "default" => "no",
- "type" => "comicpress-enable_comic_post_calendar"),
-
- array(
- "id" => "comicpress-enable_post_calendar",
- "default" => "no",
- "type" => "comicpress-enable_post_calendar"),
-
- array(
- "id" => "comicpress-disable_tags_in_posts",
- "default" => "no",
- "type" => "comicpress-disable_tags_in_posts"),
-
- array(
- "id" => "comicpress-disable_categories_in_posts",
- "default" => "no",
- "type" => "comicpress-disable_categories_in_posts"),
-
- array(
- "id" => "comicpress-blogposts_with_comic",
- "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",
- "type" => "comicpress-disable_page_titles"),
-
- array(
- "id" => "comicpress-archive_display_order",
- "default" => "desc",
- "type" => "comicpress-archive_display_order"),
-
- array(
- "id" => "comicpress-excerpt_or_content_archive",
- "default" => "excerpt",
- "type" => "comicpress-excerpt_or_content_archive"),
-
- array(
- "id" => "comicpress-excerpt_or_content_search",
- "default" => "excerpt",
- "type" => "comicpress-excerpt_or_content_search"),
-
- array(
- "id" => "comicpress-category_thumbnail_postcount",
- "default" => "30",
- "type" => "comicpress-category_thumbnail_postcount"),
-
- array(
- "id" => "comicpress-contact_in_menubar",
- "default" => "no",
- "type" => "comicpress-contact_in_menubar"),
-
- array(
- "id" => "comicpress-enable_search_in_menubar",
- "default" => "no",
- "type" => "comicpress-enable_search_in_menubar"),
-
- array(
- "id" => "comicpress-enable_rss_in_menubar",
- "default" => "no",
- "type" => "comicpress-enable_rss_in_menubar"),
-
- array(
- "id" => "comicpress-enable_navigation_in_menubar",
- "default" => "yes",
- "type" => "comicpress-enable_navigation_in_menubar"),
-
-
- array(
- "id" => "comicpress-disable_dynamic_menubar_links",
- "default" => "no",
- "type" => "comicpress-disable_dynamic_menubar_links"),
-
- array(
- "id" => "comicpress-disable_default_menubar",
- "default" => "no",
- "type" => "comicpress-disable_default_menubar"),
-
- array(
- "id" => "comicpress-enable_custom_image_header",
- "default" => "no",
- "type" => "comicpress-enable_custom_image_header"),
-
- array(
- "id" => "comicpress-custom_image_header_width",
- "default" => "780",
- "type" => "comicpress-custom_image_header_width"),
-
- array(
- "id" => "comicpress-custom_image_header_height",
- "default" => "120",
- "type" => "comicpress-custom_image_header_height"),
-
- array(
- "id" => "comicpress-buy_print_email",
- "default" => "youremail@youremail.com",
- "type" => "comicpress-buy_print_email"),
-
- array(
- "id" => "comicpress-buy_print_url",
- "default" => "/shop/",
- "type" => "comicpress-buy_print_url"),
-
- array(
- "id" => "comicpress-buy_print_us_amount",
- "default" => "19.95",
- "type" => "comicpress-buy_print_us_amount"),
-
- array(
- "id" => "comicpress-buy_print_int_amount",
- "default" => "29.95",
- "type" => "comicpress-buy_print_int_amount"),
-
- array(
- "id" => "comicpress-buy_print_add_shipping",
- "default" => "yes",
- "type" => "comicpress-buy_print_add_shipping"),
-
- array(
- "id" => "comicpress-buy_print_us_ship",
- "default" => "4.95",
- "type" => "comicpress-buy_print_us_ship"),
-
- array(
- "id" => "comicpress-buy_print_int_ship",
- "default" => "9.95",
- "type" => "comicpress-buy_print_int_ship"),
-
- array(
- "id" => "comicpress-members_post_category",
- "default" => "",
- "type" => "comicpress-members_post_category"),
-
-
-
- array("type" => "close")
- );
-?>
\ No newline at end of file
diff --git a/comicpress-options.php b/comicpress-options.php
index ef08401..9d0edc0 100644
--- a/comicpress-options.php
+++ b/comicpress-options.php
@@ -1,7 +1,5 @@
+ global $upload_path, $blogcat;
+ $comicpress_options = get_option('comicpress_options'); ?>
-
+
-
+ if ($_REQUEST['action'] == 'comicpress_save_layout') {
+ $comicpress_options['cp_theme_layout'] = $_REQUEST['cp_theme_layout'];
+ $tab = 'themestyle';
+ update_option('comicpress_options',$comicpress_options);
+ }
+
+ if ($_REQUEST['action'] == 'comicpress_save_archivesearch') {
+ $comicpress_options['archive_display_order'] = $_REQUEST['archive_display_order'];
+ $comicpress_options['excerpt_or_content_archive'] = $_REQUEST['excerpt_or_content_archive'];
+ $comicpress_options['excerpt_or_content_search'] = $_REQUEST['excerpt_or_content_search'];
+ $comicpress_options['category_thumbnail_postcount'] = $_REQUEST['category_thumbnail_postcount'];
+ $tab = 'archivesearch';
+ update_option('comicpress_options',$comicpress_options);
+ }
+
+ if ($_REQUEST['action'] == 'comicpress_save_someother') {
+ $comicpress_options['disable_comic_frontpage'] = (bool)$_REQUEST['disable_comic_frontpage'];
+ $comicpress_options['disable_comic_blog_frontpage'] = (bool)$_REQUEST['disable_comic_blog_frontpage'];
+ $comicpress_options['disable_comic_blog_single'] = (bool)$_REQUEST['disable_comic_blog_single'];
+ $comicpress_options['disable_blog_frontpage'] = (bool)$_REQUEST['disable_blog_frontpage'];
+ $comicpress_options['disable_lrsidebars_frontpage'] = (bool)$_REQUEST['disable_lrsidebars_frontpage'];
+ $comicpress_options['disable_footer_text'] = (bool)$_REQUEST['disable_footer_text'];
+ $comicpress_options['disable_blogheader'] = (bool)$_REQUEST['disable_blogheader'];
+ $comicpress_options['disable_page_titles'] = (bool)$_REQUEST['disable_page_titles'];
+ $comicpress_options['static_blog'] = (bool)$_REQUEST['static_blog'];
+ $comicpress_options['disable_default_comic_nav'] = (bool)$_REQUEST['disable_default_comic_nav'];
+
+ $comicpress_options['transcript_in_posts'] = (bool)$_REQUEST['transcript_in_posts'];
+ $comicpress_options['enable_widgetarea_use_sidebar_css'] = (bool)$_REQUEST['enable_widgetarea_use_sidebar_css'];
+
+ $comicpress_options['enable_custom_image_header'] = (bool)$_REQUEST['enable_custom_image_header'];
+ $comicpress_options['custom_image_header_width'] = '980';
+ $comicpress_options['custom_image_header_height'] = '120';
+
+ $comicpress_options['enable_numbered_pagination'] = (bool)$_REQUEST['enable_numbered_pagination'];
+ $comicpress_options['disable_page_restraints'] = (bool)$_REQUEST['disable_page_restraints'];
+
+ $comicpress_options['enable_related_comics'] = (bool)$_REQUEST['enable_related_comics'];
+ $comicpress_options['enable_related_posts'] = (bool)$_REQUEST['enable_related_posts'];
+
+ $comicpress_options['comic_clicks_next'] = (bool)$_REQUEST['comic_clicks_next'];
+ $comicpress_options['rascal_says'] = (bool)$_REQUEST['rascal_says'];
+
+ $comicpress_options['enable_post_calendar'] = (bool)$_REQUEST['enable_post_calendar'];
+ $comicpress_options['enable_post_author_gravatar'] = (bool)$_REQUEST['enable_post_author_gravatar'];
+ $comicpress_options['enable_comic_post_calendar'] = (bool)$_REQUEST['enable_comic_post_calendar'];
+ $comicpress_options['enable_comic_post_author_gravatar'] = (bool)$_REQUEST['enable_comic_post_author_gravatar'];
+ $comicpress_options['disable_tags_in_posts'] = (bool)$_REQUEST['disable_tags_in_posts'];
+ $comicpress_options['disable_categories_in_posts'] = (bool)$_REQUEST['disable_categories_in_posts'];
+ $comicpress_options['disable_comment_note'] = (bool)$_REQUEST['disable_comment_note'];
+ $comicpress_options['blogposts_with_comic'] = (bool)$_REQUEST['blogposts_with_comic'];
+ $comicpress_options['remove_wptexturize'] = (bool)$_REQUEST['remove_wptexturize'];
+
+ $comicpress_options['moods_directory'] = 'default';
+ $comicpress_options['graphicnav_directory'] = 'default';
+ $comicpress_options['calendar_directory'] = 'none';
+ $comicpress_options['avatar_directory'] = 'none';
+
+ $comicpress_options['enable_search_in_menubar'] = (bool)$_REQUEST['enable_search_in_menubar'];
+ $comicpress_options['enable_rss_in_menubar'] = (bool)$_REQUEST['enable_rss_in_menubar'];
+ $comicpress_options['enable_navigation_in_menubar'] = (bool)$_REQUEST['enable_navigation_in_menubar'];
+ $comicpress_options['contact_in_menubar'] = (bool)$_REQUEST['contact_in_menubar'];
+ $comicpress_options['disable_dynamic_menubar_links'] = (bool)$_REQUEST['disable_dynamic_menubar_links'];
+ $comicpress_options['disable_default_menubar'] = (bool)$_REQUEST['disable_default_menubar'];
+
+
+
+ $comicpress_options['members_post_category'] = '';
+
+ $comicpress_options['split_column_in_two'] = (bool)$_REQUEST['split_column_in_two'];
+ $comicpress_options['author_column_one'] = '';
+ $comicpress_options['author_column_two'] = '';
+
+ $comicpress_options['buy_print_email'] = 'philip@frumph.net';
+ $comicpress_options['buy_print_url'] = '/shop/';
+ $comicpress_options['buy_print_us_amount'] = '24.95';
+ $comicpress_options['buy_print_int_amount'] = '29.95';
+ $comicpress_options['buy_print_add_shipping'] = (bool)$_REQUEST['buy_print_add_shipping'];
+ $comicpress_options['buy_print_us_ship'] = '4.95';
+ $comicpress_options['buy_print_int_ship'] = '9.95';
+
+ update_option('comicpress_options',$comicpress_options);
+ ?>
+
diff --git a/functions.php b/functions.php
index 360a01c..b78a226 100644
--- a/functions.php
+++ b/functions.php
@@ -21,6 +21,9 @@ function __comicpress_widgets_init() {
}
function __comicpress_init() {
+ global $comicpress_options;
+ // Check if the $comicpress_options exist, if not set defaults
+ $comicpress_options = comicpress_load_options();
// xili-language plugin check
if (class_exists('xili_language')) {
define('THEME_TEXTDOMAIN','comicpress');
@@ -41,8 +44,6 @@ function __comicpress_init() {
add_action('widgets_init', '__comicpress_widgets_init');
add_action('init', '__comicpress_init');
-$comicpress_version = '2.9.0.0';
-
global $wpmu_version;
if (!empty($wpmu_version)) {
@@ -70,6 +71,89 @@ if (!empty($wpmu_version)) {
require(get_template_directory() . '/comicpress-config.php');
}
+function comicpress_load_options() {
+ global $comicpress_options;
+ $comicpress_options = get_option('comicpress_options');
+ if (empty($comicpress_options)) {
+ $comicpress_options['comicpress_version'] = '2.9.0.1';
+
+ $comicpress_options['disable_comic_frontpage'] = false;
+ $comicpress_options['disable_comic_blog_frontpage'] = false;
+ $comicpress_options['disable_comic_blog_single'] = false;
+ $comicpress_options['disable_blog_frontpage'] = false;
+ $comicpress_options['disable_lrsidebars_frontpage'] = false;
+ $comicpress_options['disable_footer_text'] = false;
+ $comicpress_options['disable_blogheader'] = false;
+ $comicpress_options['disable_page_titles'] = false;
+ $comicpress_options['static_blog'] = false;
+ $comicpress_options['disable_default_comic_nav'] = false;
+
+ $comicpress_options['cp_theme_layout'] = 'standard';
+ $comicpress_options['transcript_in_posts'] = false;
+ $comicpress_options['enable_widgetarea_use_sidebar_css'] = false;
+
+ $comicpress_options['enable_custom_image_header'] = false;
+ $comicpress_options['custom_image_header_width'] = '980';
+ $comicpress_options['custom_image_header_height'] = '120';
+
+ $comicpress_options['enable_numbered_pagination'] = false;
+ $comicpress_options['disable_page_restraints'] = false;
+
+ $comicpress_options['enable_related_comics'] = false;
+ $comicpress_options['enable_related_posts'] = false;
+
+ $comicpress_options['comic_clicks_next'] = false;
+ $comicpress_options['rascal_says'] = false;
+
+ $comicpress_options['enable_post_calendar'] = false;
+ $comicpress_options['enable_post_author_gravatar'] = false;
+ $comicpress_options['enable_comic_post_calendar'] = false;
+ $comicpress_options['enable_comic_post_author_gravatar'] = false;
+ $comicpress_options['disable_tags_in_posts'] = false;
+ $comicpress_options['disable_categories_in_posts'] = false;
+ $comicpress_options['disable_comment_note'] = false;
+ $comicpress_options['blogposts_with_comic'] = false;
+ $comicpress_options['remove_wptexturize'] = false;
+
+ $comicpress_options['moods_directory'] = 'default';
+ $comicpress_options['graphicnav_directory'] = 'default';
+ $comicpress_options['calendar_directory'] = 'none';
+ $comicpress_options['avatar_directory'] = 'none';
+
+ $comicpress_options['enable_search_in_menubar'] = false;
+ $comicpress_options['enable_rss_in_menubar'] = true;
+ $comicpress_options['enable_navigation_in_menubar'] = true;
+ $comicpress_options['contact_in_menubar'] = false;
+ $comicpress_options['disable_dynamic_menubar_links'] = false;
+ $comicpress_options['disable_default_menubar'] = false;
+
+ $comicpress_options['archive_display_order'] = 'desc';
+ $comicpress_options['excerpt_or_content_archive'] = 'content';
+ $comicpress_options['excerpt_or_content_search'] = 'excerpt';
+ $comicpress_options['category_thumbnail_postcount'] = '-1';
+
+ $comicpress_options['members_post_category'] = '';
+
+ $comicpress_options['split_column_in_two'] = false;
+ $comicpress_options['author_column_one'] = '';
+ $comicpress_options['author_column_two'] = '';
+
+ $comicpress_options['buy_print_email'] = 'philip@frumph.net';
+ $comicpress_options['buy_print_url'] = '/shop/';
+ $comicpress_options['buy_print_us_amount'] = '24.95';
+ $comicpress_options['buy_print_int_amount'] = '29.95';
+ $comicpress_options['buy_print_add_shipping'] = false;
+ $comicpress_options['buy_print_us_ship'] = '4.95';
+ $comicpress_options['buy_print_int_ship'] = '9.95';
+
+ add_option('comicpress_options', $comicpress_options, '', 'yes');
+ // update_option('comicpress_options', $comicpress_options);
+ }
+ $comicpress_options['comicpress_version'] = '2.9.0.1';
+ update_option('comicpress_options', $comicpress_options);
+ return $comicpress_options;
+}
+
if (get_option('upload_path') !== false) {
$variables_to_extract = array();
@@ -78,6 +162,7 @@ if (get_option('upload_path') !== false) {
'disable_comic_blog_frontpage' => 'disable_comic_blog_frontpage',
'disable_comic_blog_single' => 'disable_comic_blog_single',
'disable_blog_frontpage' => 'disable_blog_frontpage',
+
'buy_print_email' => 'buy_print_email',
'buy_print_url' => 'buy_print_url',
'buy_print_us_amount' => 'buy_print_us_amount',
@@ -85,6 +170,7 @@ if (get_option('upload_path') !== false) {
'buy_print_add_shipping' => 'buy_print_add_shipping',
'buy_print_us_ship' => 'buy_print_us_ship',
'buy_print_int_ship' => 'buy_print_int_ship',
+
'cp_theme_layout' => 'cp_theme_layout',
'transcript_in_posts' => 'transcript_in_posts',
'enable_widgetarea_use_sidebar_css' => 'enable_widgetarea_use_sidebar_css',
@@ -119,6 +205,7 @@ if (get_option('upload_path') !== false) {
'excerpt_or_content_archive' => 'excerpt_or_content_archive',
'excerpt_or_content_search' => 'excerpt_or_content_search',
'category_thumbnail_postcount' => 'category_thumbnail_postcount',
+
'members_post_category' => 'members_post_category',
'blogposts_with_comic' => 'blogposts_with_comic',
'split_column_in_two' => 'split_column_in_two',
@@ -143,12 +230,11 @@ if (empty($calendar_directory)) $calendar_directory = 'default';
if (empty($cp_theme_layout)) $cp_theme_layout='standard';
function is_cp_theme_layout($choices) {
-global $cp_theme_layout;
- if (empty($cp_theme_layout)) $cp_theme_layout='standard';
+global $comicpress_options;
$choices = explode(",", $choices);
foreach ($choices as $choice) {
- if ($choice == $cp_theme_layout) {
+ if ($choice == $comicpress_options['cp_theme_layout']) {
return true;
}
}
@@ -897,11 +983,11 @@ function rss_count_comments(){
add_action('the_title_rss','rss_count_comments');
function comicpress_gnav_display_css() {
- global $graphicnav_directory;
- if (file_exists(get_stylesheet_directory() . '/images/nav/' . $graphicnav_directory . '/navstyle.css')) { ?>
-
-
-
+ global $comicpress_options;
+ if (file_exists(get_stylesheet_directory() . '/images/nav/' . $comicpress_options['graphicnav_directory'] . '/navstyle.css')) { ?>
+
+
+
tag for the user's avatar
*/
function comicpress_get_avatar( $id_or_email, $size = '64', $alt = false) {
- global $avatar_directory;
+ global $comicpress_options;
if ( ! get_option('show_avatars') )
return false;
@@ -45,7 +45,7 @@ function comicpress_get_avatar( $id_or_email, $size = '64', $alt = false) {
$email = $id_or_email;
}
- if ($avatar_directory != 'none' || empty($default)) $default = comicpress_random_default_avatar((string)$id_or_email);
+ if ($comicpress_options['avatar_directory'] != 'none' || empty($default)) $default = comicpress_random_default_avatar((string)$id_or_email);
if ( empty($default) ) {
$avatar_default = get_option('avatar_default');
@@ -87,7 +87,8 @@ function comicpress_get_avatar( $id_or_email, $size = '64', $alt = false) {
}
function comicpress_random_default_avatar($id_or_email = '') {
- $current_avatar_directory = get_option('comicpress-avatar_directory');
+ global $comicpress_options;
+ $current_avatar_directory = $comicpress_options['avatar_directory'];
if (empty($current_avatar_directory)) $current_avatar_directory = 'default';
if (file_exists(get_stylesheet_directory() . '/images/avatars/' . $current_avatar_directory)) {
diff --git a/functions/classes.php b/functions/classes.php
index e858d49..20fc447 100644
--- a/functions/classes.php
+++ b/functions/classes.php
@@ -18,7 +18,7 @@
add_filter('body_class','comicpress_body_class');
function comicpress_body_class($classes = '') {
- global $current_user, $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone, $post, $wp_query, $cp_theme_layout;
+ global $current_user, $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone, $post, $wp_query, $comicpress_options;
if (!empty($current_user)) {
$user_login = addslashes($current_user->user_login);
@@ -86,7 +86,7 @@ function comicpress_body_class($classes = '') {
endforeach;
}
- $classes[] = 'layout-'.$cp_theme_layout;
+ $classes[] = 'layout-'.$comicpress_options['cp_theme_layout'];
return $classes;
}
diff --git a/functions/custom-image-header.php b/functions/custom-image-header.php
index 05b6f46..7519d56 100644
--- a/functions/custom-image-header.php
+++ b/functions/custom-image-header.php
@@ -1,13 +1,13 @@
diff --git a/functions/displayblogpost.php b/functions/displayblogpost.php
index 0e9563a..47f6cc6 100644
--- a/functions/displayblogpost.php
+++ b/functions/displayblogpost.php
@@ -7,7 +7,7 @@
*/
function display_blog_post() {
- global $post, $wp_query, $authordata, $enable_related_posts, $enable_post_author_gravatar, $enable_post_calendar, $disable_categories_in_posts, $disable_tags_in_posts; ?>
+ global $post, $wp_query, $authordata, $comicpress_options; ?>
@@ -21,11 +21,11 @@ function display_blog_post() {
-
+
-
+
@@ -43,7 +43,7 @@ function display_blog_post() {
| by
-
+
@@ -57,7 +57,7 @@ function display_blog_post() {
diff --git a/functions/displaycomic.php b/functions/displaycomic.php
index 31d14f9..331b9f0 100644
--- a/functions/displaycomic.php
+++ b/functions/displaycomic.php
@@ -7,7 +7,7 @@
*/
function display_comic() {
- global $post, $wp_query, $rascal_says, $comic_clicks_next, $comic_filename_filters;
+ global $post, $wp_query, $rascal_says, $comicpress_options, $comic_filename_filters;
$next_comic = get_next_comic_permalink();
$comic = explode(".", the_comic_filename());
if ($comic[1] == 'swf') { ?>
@@ -26,16 +26,16 @@ function display_comic() {
+ if ($comicpress_options['rascal_says'] && !empty($hovertext)) { ?>
+ if ($comicpress_options['rascal_says'] && !empty($hovertext)) { ?>
diff --git a/functions/displaycomicpost.php b/functions/displaycomicpost.php
index 881c257..c479e60 100644
--- a/functions/displaycomicpost.php
+++ b/functions/displaycomicpost.php
@@ -7,7 +7,7 @@
*/
function display_comic_post() {
- global $post, $wp_query, $authordata, $enable_related_comics, $enable_comic_post_author_gravatar, $enable_comic_post_calendar, $disable_categories_in_posts, $disable_tags_in_posts;
+ global $post, $wp_query, $authordata, $comicpress_options;
$first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink();
?>
@@ -20,11 +20,11 @@ function display_comic_post() {
-
+
-
+
@@ -45,7 +45,7 @@ function display_comic_post() {
-
+
@@ -59,7 +59,7 @@ function display_comic_post() {
diff --git a/functions/dual-columns.php b/functions/dual-columns.php
index b9b3a88..43fb687 100644
--- a/functions/dual-columns.php
+++ b/functions/dual-columns.php
@@ -1,11 +1,11 @@
+ global $comicpress_options, $blog_postcount; ?>
-
- is_search && !$query->is_page && !$query->is_archive) {
$oldset = $query->get('cat');
$is_member = '';
@@ -100,8 +101,8 @@ function comicpress_profile_members_only_save() {
* Return true if the current post is in the members category.
*/
function in_members_category() {
- global $post, $category_tree, $members_post_category;
-
+ global $post, $category_tree, $comicpress_options;
+ $members_post_category = $comicpress_options['members_post_category'];
$members_post_category_array = array();
$members_post_category_array = explode($members_post_category);
diff --git a/functions/moods.php b/functions/moods.php
index eb4bfac..c2217a2 100644
--- a/functions/moods.php
+++ b/functions/moods.php
@@ -16,8 +16,8 @@
*/
function comicpress_show_mood_in_post() {
- global $post;
- $moods_directory = get_option('comicpress-moods_directory');
+ global $post, $comicpress_options;
+ $moods_directory = $comicpress_options['moods_directory'];
if (!empty($moods_directory) && $moods_directory != 'none') {
$mood_file = get_post_meta( get_the_ID(), "mood", true );
if (!empty($mood_file) && $mood_file != '') {
@@ -33,8 +33,8 @@ function comicpress_show_mood_in_post() {
}
function comicpress_showmood_edit_post() {
- global $post;
- $moods_directory = get_option('comicpress-moods_directory');
+ global $post, $comicpress_options;
+ $moods_directory = $comicpress_options['moods_directory'];
if (!empty($moods_directory) && $moods_directory != 'none') { ?>
@@ -89,7 +89,8 @@ function comicpress_showmood_edit_post() {
function comicpress_handle_edit_post_mood_save($post_id) {
- $moods_directory = get_option('comicpress-moods_directory');
+ global $comicpress_options;
+ $moods_directory = $comicpress_options['moods_directory'];
if (!empty($moods_directory) && $moods_directory != 'none') {
if (empty($_POST['postmood']) || $_POST['postmood'] == 'none') {
$postmood = 'none';
diff --git a/functions/wp-pagenavi.php b/functions/wp-pagenavi.php
index 396d99d..b114aee 100644
--- a/functions/wp-pagenavi.php
+++ b/functions/wp-pagenavi.php
@@ -26,8 +26,8 @@ Author URI: http://lesterchan.net
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-global $enable_numbered_pagination;
-if ($enable_numbered_pagination == 'yes') {
+global $comicpress_options;
+if ($comicpress_options['enable_numbered_pagination']) {
### Function: Page Navigation: Boxed Style Paging
function wp_pagenavi($before = '', $after = '') {
diff --git a/header.php b/header.php
index 800451d..905b5ea 100644
--- a/header.php
+++ b/header.php
@@ -1,3 +1,4 @@
+
>
@@ -21,11 +22,11 @@
-
+
-
+
>
@@ -35,7 +36,7 @@
-
diff --git a/image.php b/image.php
index 9cfbec7..d5d8e02 100644
--- a/image.php
+++ b/image.php
@@ -12,7 +12,7 @@
-
+
diff --git a/index.php b/index.php
index 55ab1e0..b5f5a88 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,4 @@
-
@@ -16,7 +15,7 @@
-
+
in_the_loop = true; $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post() ?>
@@ -59,7 +58,7 @@
get_sidebar('blog');
-if ($disable_comic_frontpage != 'yes' && $disable_comic_blog_frontpage != 'yes' && !is_paged() ) { ?>
+if (!$comicpress_options['disable_comic_frontpage'] && !$comicpress_options['disable_comic_blog_frontpage'] && !is_paged() ) { ?>
have_posts()) : $comicFrontpage->the_post();
display_comic_post();
$comicFrontPage->is_single = true;
@@ -67,18 +66,17 @@ if ($disable_comic_frontpage != 'yes' && $disable_comic_blog_frontpage != 'yes'
endwhile; ?>
-
+
-
-
+ if (have_posts()) { ?>
-
+
diff --git a/options/archivesearchoptions.php b/options/archivesearchoptions.php
index 49bd2dc..925e129 100644
--- a/options/archivesearchoptions.php
+++ b/options/archivesearchoptions.php
@@ -1,75 +1,63 @@
-
+
diff --git a/options/buyprintoptions.php b/options/buyprintoptions.php
index a603474..759a10d 100644
--- a/options/buyprintoptions.php
+++ b/options/buyprintoptions.php
@@ -5,9 +5,9 @@
+ case "buy_print_email": ?>
*
|
@@ -19,7 +19,7 @@
|
+ case "buy_print_url": ?>
*
|
@@ -36,7 +36,7 @@
|
+ case "buy_print_add_shipping": ?>
|
@@ -49,7 +49,7 @@
|
+ case "buy_print_us_amount": ?>
|
$
@@ -60,7 +60,7 @@
|
+ case "buy_print_us_ship": ?>
|
$
@@ -71,7 +71,7 @@
|
+ case "buy_print_int_amount": ?>
|
$
@@ -82,7 +82,7 @@
|
+ case "buy_print_int_ship": ?>
|
$
diff --git a/options/customheaderoptions.php b/options/customheaderoptions.php
index a266f59..e791b0d 100644
--- a/options/customheaderoptions.php
+++ b/options/customheaderoptions.php
@@ -4,9 +4,9 @@
+ case "enable_custom_image_header": ?>
Appearance.','comicpress'); ?>
|
@@ -20,7 +20,7 @@
|
+ case "custom_image_header_width": ?>
width of the image you want to use for Custom Header.','comicpress'); ?>
|
@@ -34,7 +34,7 @@
|
+ case "custom_image_header_height": ?>
height of the image you want to use for Custom Header.','comicpress'); ?>
|
diff --git a/options/generaloptions.php b/options/generaloptions.php
index d42b267..4d719ea 100644
--- a/options/generaloptions.php
+++ b/options/generaloptions.php
@@ -7,9 +7,9 @@
| - Main - |
+ case "disable_page_restraints": ?>
Dynamic (fills browser window) or Fixed (width is specified, e.g., 980px, 780px, etc.)','comicpress'); ?>
|
@@ -26,7 +26,7 @@
+ case "rascal_says": ?>
|
|
@@ -43,7 +43,7 @@
+ case "disable_comment_note": ?>
|
|
@@ -61,7 +61,7 @@
+ case "enable_numbered_pagination": ?>
|
|
@@ -74,7 +74,7 @@
|
+ case "comic_clicks_next": ?>
|
@@ -88,7 +88,7 @@
|
+ case "disable_default_comic_nav": ?>
|
@@ -101,7 +101,7 @@
|
+ case "enable_widgetarea_use_sidebar_css": ?>
|
@@ -154,7 +154,7 @@
+ case "disable_lrsidebars_frontpage": ?>
|
|
@@ -172,7 +172,7 @@
+ case "disable_footer_text": ?>
|
|
diff --git a/options/indexoptions.php b/options/indexoptions.php
index 7ce9ca2..f38fdcb 100644
--- a/options/indexoptions.php
+++ b/options/indexoptions.php
@@ -4,9 +4,9 @@
| |