From b86b35c8fd94b410367b25eb9c33ee468f2f452c Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Thu, 12 Nov 2009 18:37:15 -0800 Subject: [PATCH] new options for buyprint and other stuff Signed-off-by: Philip M. Hofer (Frumph) --- buystrip.php | 27 ++++++++++++++------------- comicpress-options-config.php | 5 +++++ functions.php | 1 + options/buyprintoptions.php | 14 ++++++++++++++ options/generaloptions.php | 23 ++++++++++++----------- style.css | 4 ++-- widgets/archive-dropdown.php | 11 +++++++++++ 7 files changed, 59 insertions(+), 26 deletions(-) diff --git a/buystrip.php b/buystrip.php index a2bd022..e97060f 100644 --- a/buystrip.php +++ b/buystrip.php @@ -1,9 +1,10 @@ @@ -44,19 +45,19 @@ Templete Author Email: philip@frumph.net
- - - - - + US/Canada
$ + $
+ + US/Canada
+ $
+
@@ -66,19 +67,19 @@ Templete Author Email: philip@frumph.net
- - - - - + International
$ + $
+ + International
+ $
+
diff --git a/comicpress-options-config.php b/comicpress-options-config.php index c4a1415..f05afed 100644 --- a/comicpress-options-config.php +++ b/comicpress-options-config.php @@ -54,6 +54,11 @@ $options = array ( "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", diff --git a/functions.php b/functions.php index f80d146..6e684e1 100644 --- a/functions.php +++ b/functions.php @@ -60,6 +60,7 @@ if (get_option('upload_path') !== false) { 'buy_print_url' => 'buy_print_url', 'buy_print_us_amount' => 'buy_print_us_amount', 'buy_print_int_amount' => 'buy_print_int_amount', + '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', diff --git a/options/buyprintoptions.php b/options/buyprintoptions.php index d3e0012..3fe3488 100644 --- a/options/buyprintoptions.php +++ b/options/buyprintoptions.php @@ -36,6 +36,20 @@ + +
+ + +    + + + + + + + +

diff --git a/options/generaloptions.php b/options/generaloptions.php index f92b922..376eb82 100644 --- a/options/generaloptions.php +++ b/options/generaloptions.php @@ -8,20 +8,20 @@ switch ( $value['type'] ) { case "comicpress-enable_widgetarea_use_sidebar_css": ?> -



+
   -
+
-

+
   @@ -35,17 +35,14 @@ -
-
-
-
+
   - + @@ -53,14 +50,14 @@ case "comicpress-comic_clicks_next": ?> -


+
   - + @@ -81,7 +78,7 @@ -



+
   @@ -194,6 +191,10 @@ + +
+
+ create_structure(get_option('comicpress-storyline-category-order')); + $categories = array_keys($storyline->_structure); + foreach ($categories as $id) { + $post = ComicPressDBInterface::get_instance()->get_first_comic($id); + } +} +*/ + function comicpress_archive_dropdown() { ?>