From 4cdb669c4a193c4a321f348742b6886f29058393 Mon Sep 17 00:00:00 2001 From: thomas Date: Tue, 27 Mar 2018 07:54:37 +0000 Subject: - Urlaubsfunktion für die Lieferzeit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6954 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/css/frontend.css | 1 + .../produkt_addedit_allgemein.phtml | 59 ++++++++++++++-------- views/mods/mod_deliverytime/settings_edit.phtml | 16 ++++++ views/produkttemplates/standard.phtml | 13 +++-- 4 files changed, 66 insertions(+), 23 deletions(-) diff --git a/views/css/frontend.css b/views/css/frontend.css index cf3c3a3..853d3c1 100644 --- a/views/css/frontend.css +++ b/views/css/frontend.css @@ -241,6 +241,7 @@ input.wpsg_error { border-color:red !important; } font-weight: 800; margin-bottom: 0.5em; } +.wpsg_product_deliverytime_holiday { height:50px; padding:10px; width:50%; float:right; border:1px solid #ff0000; } @media (max-width:400px) { diff --git a/views/mods/mod_deliverytime/produkt_addedit_allgemein.phtml b/views/mods/mod_deliverytime/produkt_addedit_allgemein.phtml index f53b258..9576850 100644 --- a/views/mods/mod_deliverytime/produkt_addedit_allgemein.phtml +++ b/views/mods/mod_deliverytime/produkt_addedit_allgemein.phtml @@ -17,30 +17,42 @@ view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_deliverytime']), array('unit' => __('Tage', 'wpsg'), 'help' => 'wpsg_mod_deliverytime_input')); ?> - get_option('wpsg_mod_deliverytime_store'))) */ {?> - view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storeproduct'])) - //echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime[wpsg_mod_deliverytime_storeproduct1]', __('Als Offlineprodukt anzeigen', 'wpsg'), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storeproduct'], array('help' => 'wpsg_mod_deliverytime_store'));?> - 'Moduleinstellungen', 1 => 'Offlineprodukt', 2 => 'Onlineprodukt'), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storeproduct'], array('noIndex' => true, 'help' => 'wpsg_mod_deliverytime_store')); ?> - -
- view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storetext'], array('help' => 'wpsg_mod_deliverytime_storetext')); ?> - - view['pages']; unset($arPageWithoutCreate['-1']); ?> - __('Keine Verlinkung auf eine Seite anzeigen', 'wpsg') - ), $arPageWithoutCreate), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storelink'], array('help' => 'wpsg_page_mod_deliverytime_storelink')); ?> -
+ view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storeproduct'])) {?> + 'Moduleinstellungen', 1 => 'Offlineprodukt', 2 => 'Onlineprodukt'), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storeproduct'], array('noIndex' => true, 'help' => 'wpsg_mod_deliverytime_store')); ?> -
+
+ view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storetext'], array('help' => 'wpsg_mod_deliverytime_storetext')); ?> + + view['pages']; unset($arPageWithoutCreate['-1']); ?> + __('Keine Verlinkung auf eine Seite anzeigen', 'wpsg') + ), $arPageWithoutCreate), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_storelink'], array('help' => 'wpsg_page_mod_deliverytime_storelink')); ?> +
+ +
+ + + + hasMod('wpsg_mod_deliverytime') && ($this->get_option('wpsg_mod_deliverytime_delay') == '1')) { ?> + 'Moduleinstellungen', 1 => 'Anzeigen', 2 => 'Nicht anzeigen'), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_delay'], array('noIndex' => true, 'help' => 'wpsg_mod_deliverytime_delay')); ?> + - view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_delay'], array('help' => 'wpsg_mod_deliverytime_delay')); ?> - 'Moduleinstellungen', 1 => 'Anzeigen', 2 => 'Nicht anzeigen'), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_delay'], array('noIndex' => true, 'help' => 'wpsg_mod_deliverytime_delay')); ?> - +
+ + + hasMod('wpsg_mod_deliverytime') && ($this->get_option('wpsg_mod_deliverytime_holiday') == '1')) { ?> + 'Moduleinstellungen', 1 => 'Produktspezifische Einstellung'), $this->view['wpsg_mod_deliverytime']['wpsg_mod_deliverytime_holiday'], array('noIndex' => true, 'help' => 'wpsg_mod_deliverytime_holiday')); ?> + +
@@ -69,6 +81,13 @@ } ).change(); + jQuery('#wpsg_mod_deliverytimewpsg_mod_deliverytime_holiday').bind('change', function() { + + if (jQuery(this).val() == 1) jQuery('.wpsg_mod_deliverytime_holiday_activ').show(); + else jQuery('.wpsg_mod_deliverytime_holiday_activ').hide(); + + } ).change(); + jQuery('#wpsg_mod_deliverytimewpsg_mod_deliverytime_source').bind('change', function() { if (jQuery(this).val() == 1) jQuery('.wpsg_mod_deliverytime_show').show(); diff --git a/views/mods/mod_deliverytime/settings_edit.phtml b/views/mods/mod_deliverytime/settings_edit.phtml index d1b8d13..e206c65 100644 --- a/views/mods/mod_deliverytime/settings_edit.phtml +++ b/views/mods/mod_deliverytime/settings_edit.phtml @@ -40,6 +40,15 @@

+get_option('wpsg_mod_deliverytime_holiday'), array('help' => 'wpsg_mod_deliverytime_holiday')); ?> + + +

+ get_option('wpsg_mod_deliverytime_show_product'), array('help' => 'wpsg_mod_deliverytime_show_product')); ?> get_option('wpsg_mod_deliverytime_show_basket'), array('help' => 'wpsg_mod_deliverytime_show_basket')); ?> get_option('wpsg_mod_deliverytime_show_overview'), array('help' => 'wpsg_mod_deliverytime_show_overview')); ?> @@ -80,6 +89,13 @@ else jQuery('.wpsg_mod_deliverytime_delay_activ').hide(); } ).change(); + + jQuery('#wpsg_mod_deliverytime_holiday').bind('change', function() { + + if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_deliverytime_holiday_activ').show(); + else jQuery('.wpsg_mod_deliverytime_holiday_activ').hide(); + + } ).change(); } ); diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index e94fa9d..0d0d5f1 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -239,13 +239,20 @@ view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> /> - + hasMod('wpsg_mod_deliverytime') && ($this->get_option('wpsg_mod_deliverytime_holiday') == '1')) { ?> -
callMod('wpsg_mod_deliverytime', 'holidayText', array($this->view['data']['product_key']))); ?>
+ callMod('wpsg_mod_deliverytime', 'holiday', array($this->view['data']['product_key']))) { ?> - +
+ + callMod('wpsg_mod_deliverytime', 'displayHolidaytext', array($this->view['data']['product_key']))); ?> + +
+ + + -- cgit v1.2.3