diff --git a/comicpress-options.php b/comicpress-options.php index 97cfa5d..2dfc2fa 100644 --- a/comicpress-options.php +++ b/comicpress-options.php @@ -1,47 +1,51 @@ - - - + wp_enqueue_script('jquery'); +} +function comicpress_admin_print_styles() { + wp_admin_css('css/global'); + wp_admin_css('css/colors'); + wp_admin_css('css/ie'); + wp_enqueue_style('comicpress-options', get_template_directory_uri() . '/options/options.css'); +} + +function comicpress_admin_page_head() { ?> + - +
-

-

-

- - +
+
+ __('Layout', 'comicpress'), + 'general' => __('General', 'comicpress'), + 'index' => __('Home Page', 'comicpress'), + 'post' => __('Posts & Pages', 'comicpress'), + 'archivesearch' => __('Archive & Search', 'comicpress'), + 'menubar' => __('Menubar', 'comicpress'), + 'customheader' => __('Custom Header', 'comicpress'), + 'buyprint' => __('Buy Print', 'comicpress'), + 'config' => __('Configuration', 'comicpress'), + ); -
-
-
-
-
-
-
-
-
-
+ if (empty($tab)) { $tab = array_shift(array_keys($tab_info)); } + foreach($tab_info as $tab_id => $label) { ?> +
+ +
+ +
+
- -
- +
- \ No newline at end of file +add_action('admin_menu', 'comicpress_options_setup'); diff --git a/js/tabbed_pages.js b/js/tabbed_pages.js deleted file mode 100644 index 40c44ba..0000000 --- a/js/tabbed_pages.js +++ /dev/null @@ -1,28 +0,0 @@ -/* ================================================================ -This copyright notice must be untouched at all times. - -The original version of this script and the associated (x)html -is available at http://www.stunicholls.com/various/tabbed_pages.html -Copyright (c) 2005-2007 Stu Nicholls. All rights reserved. -This script and the associated (x)html may be modified in any -way to fit your requirements. -=================================================================== */ - - -onload = function() { - var e, i = 0; - while (e = document.getElementById('cpadmin').getElementsByTagName ('DIV') [i++]) { - if (e.className == 'on' || e.className == 'off') { - e.onclick = function () { - var getEls = document.getElementsByTagName('DIV'); - for (var z=0; z +
@@ -59,9 +59,9 @@ - +
- +
@@ -71,7 +71,7 @@
- + - -
+ +
diff --git a/options/buyprintoptions.php b/options/buyprintoptions.php index 0721cb9..dbe66f9 100644 --- a/options/buyprintoptions.php +++ b/options/buyprintoptions.php @@ -1,10 +1,10 @@ -
+
- + @@ -30,12 +30,12 @@

- + "http://yourdomain.com/?p=233", "http://yourdomain.com/shop/", "/?p=233", "/shop/". - + @@ -63,7 +63,7 @@ - + - +
@@ -72,7 +72,7 @@
@@ -82,9 +82,9 @@
- +
- +
@@ -94,7 +94,7 @@
- + - +
diff --git a/options/configoptions.php b/options/configoptions.php index 43dc254..2b3f671 100644 --- a/options/configoptions.php +++ b/options/configoptions.php @@ -1,4 +1,4 @@ -
+
@@ -6,19 +6,19 @@
- + - + - + - - + ?> - - - + ?> - - + - + ?> - - - + ?> - - + - +
- ]*)>#', '
- ]*)>#', '
- + + - +
- + + - +
- + + - +
- + + - + @@ -147,7 +147,7 @@
@@ -156,7 +156,7 @@
diff --git a/options/customheaderoptions.php b/options/customheaderoptions.php index 6363502..26b4e19 100644 --- a/options/customheaderoptions.php +++ b/options/customheaderoptions.php @@ -1,10 +1,10 @@ -
+
- + @@ -39,9 +39,9 @@
- +
- +
@@ -51,7 +51,7 @@
- + - +
diff --git a/options/generaloptions.php b/options/generaloptions.php index 5c1a646..48babbd 100644 --- a/options/generaloptions.php +++ b/options/generaloptions.php @@ -1,8 +1,8 @@ -
+
- +
@@ -41,7 +41,7 @@
- /> + /> @@ -58,7 +58,7 @@
- /> + /> @@ -74,7 +74,7 @@
- + @@ -108,34 +108,34 @@ - + ?> -
- + + - + images/nav/ and place your image files inside of it and create a navstyle.css file to determine the style of your navigation display.','comicpress'); ?>
- + @@ -159,9 +159,9 @@ - +
- + @@ -180,14 +180,14 @@
- /> + />
- + @@ -197,8 +197,8 @@ -
- ]*)>#', '
- +
+ @@ -243,7 +243,7 @@
- +
@@ -255,8 +255,7 @@
- + - +
- \ No newline at end of file diff --git a/options/indexoptions.php b/options/indexoptions.php index e117cdb..3d039c6 100644 --- a/options/indexoptions.php +++ b/options/indexoptions.php @@ -1,10 +1,10 @@ -
+
- + @@ -14,7 +14,7 @@
- /> + /> @@ -40,7 +40,7 @@
- /> + /> @@ -49,7 +49,7 @@
- /> + /> @@ -58,16 +58,16 @@
- /> + />
- +
- +
@@ -77,7 +77,7 @@
- + - +
diff --git a/options/menubaroptions.php b/options/menubaroptions.php index 309bd45..303d3e5 100644 --- a/options/menubaroptions.php +++ b/options/menubaroptions.php @@ -1,4 +1,4 @@ - - + - -
+ +
diff --git a/options/options.css b/options/options.css index e2465ea..2aadc04 100644 --- a/options/options.css +++ b/options/options.css @@ -11,6 +11,7 @@ padding: 5px 0 0 0; line-height: 5px; margin: 0 0 -1px 0; + overflow: hidden } #cpadmin div { @@ -192,8 +193,8 @@ width: auto; #comicpress-version-title a { color: #333; } - -#comicpress-version-number { + +#comicpress-version-number { font-family: monospace; font-size: 16px; letter-spacing: 8px; diff --git a/options/postoptions.php b/options/postoptions.php index 762c068..8c96ca2 100644 --- a/options/postoptions.php +++ b/options/postoptions.php @@ -1,10 +1,10 @@ -
+
- + @@ -14,7 +14,7 @@
- /> + /> @@ -23,7 +23,7 @@
- /> + /> @@ -32,7 +32,7 @@
- /> + /> @@ -41,14 +41,14 @@
- /> + />
- + @@ -58,7 +58,7 @@
- /> + /> @@ -96,19 +96,19 @@
- /> + /> - http://gravatar.com. + http://gravatar.com.
- /> + /> - http://gravatar.com. + http://gravatar.com.
- + @@ -196,11 +196,11 @@ - +
- /> + /> @@ -209,14 +209,14 @@
- /> + />
- + @@ -226,7 +226,7 @@
- /> + /> @@ -235,14 +235,14 @@
- /> + />
- + @@ -252,7 +252,7 @@
- /> + /> @@ -261,7 +261,7 @@
- /> + /> @@ -270,16 +270,16 @@
- /> + />
- +
- +
@@ -289,7 +289,7 @@
- + - -
\ No newline at end of file + +
\ No newline at end of file diff --git a/options/themestyle.php b/options/themestyle.php index 97871ac..bb7a272 100644 --- a/options/themestyle.php +++ b/options/themestyle.php @@ -1,19 +1,19 @@ - -
- + +
+
- + - +
- + @@ -33,14 +33,14 @@ - - + + - + - + @@ -60,11 +60,11 @@
- +
- +
- +
@@ -74,9 +74,9 @@
- + - +
- +