1 |
<?php
|
1 |
<?php
|
2 |
|
2 |
|
3 |
/**
|
3 |
/**
|
4 |
* Tempalte für die Einstellungen des Trusted Shops Moduls
|
4 |
* Template für die Einstellungen des Trusted Shops Moduls
|
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
|
8 |
|
9 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_shopid', __('Shop-ID', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_shopid')); ?>
|
9 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_shopid', __('Shop-ID', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_shopid')); ?>
|
10 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_customerset', __('Abfrage Bewertungseinwilligung (im Checkout)', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_customerset'), array('help' => 'wpsg_mod_trustedshops_customerset')); ?>
|
10 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_customerset', __('Abfrage Bewertungseinwilligung (im Checkout)', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_customerset'), array('help' => 'wpsg_mod_trustedshops_customerset')); ?>
|
11 |
|
11 |
|
12 |
<div id="wpsg_mod_trustedshops_customerset_preset_layer">
|
12 |
<div id="wpsg_mod_trustedshops_customerset_preset_layer">
|
13 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_customerset_preset', __('Als Vorauswahl aktiv', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_customerset_preset'), array('help' => 'wpsg_mod_trustedshops_customerset_preset')); ?>
|
13 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_customerset_preset', __('Als Vorauswahl aktiv', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_customerset_preset'), array('help' => 'wpsg_mod_trustedshops_customerset_preset')); ?>
|
14 |
</div>
|
14 |
</div>
|
15 |
|
15 |
|
16 |
<br />
|
16 |
<br />
|
17 |
|
17 |
|
18 |
<div class="wpsg_mod_protectedshops">
|
18 |
<div class="wpsg_mod_protectedshops">
|
- |
|
19 |
|
19 |
<div class="wpsg_admin_box" id="wpsg_tab">
|
20 |
<div class="wpsg_admin_box" id="wpsg_tab">
|
20 |
|
21 |
|
21 |
<ul class="nav nav-tabs" role="tablist">
|
22 |
<ul class="nav nav-tabs" role="tablist">
|
22 |
<li role="presentation" class="active"><a href="#tab1" aria-controls="home" role="tab" data-toggle="tab"><?php echo __('Trusted Shops Widget', 'wpsg'); ?></a></li>
|
23 |
<li role="presentation" class="active"><a href="#tab1" aria-controls="home" role="tab" data-toggle="tab"><?php echo __('Trusted Shops Widget', 'wpsg'); ?></a></li>
|
23 |
<li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Bestellabschluss', 'wpsg'); ?></a></li>
|
24 |
<li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Bestellabschluss', 'wpsg'); ?></a></li>
|
24 |
<li role="presentation"><a href="#tab3" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Bewertungslinks', 'wpsg'); ?></a></li>
|
25 |
<li role="presentation"><a href="#tab3" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Bewertungslinks', 'wpsg'); ?></a></li>
|
25 |
<li role="presentation"><a href="#tab4" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Review Collector', 'wpsg'); ?></a></li>
|
26 |
<li role="presentation"><a href="#tab4" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Review Collector', 'wpsg'); ?></a></li>
|
26 |
</ul>
|
27 |
</ul>
|
- |
|
28 |
|
27 |
<div class="tab-content">
|
29 |
<div class="tab-content">
|
- |
|
30 |
|
28 |
<div id="tab1" role="tabpanel" class="tab-pane active" >
|
31 |
<div id="tab1" role="tabpanel" class="tab-pane active" >
|
29 |
|
32 |
|
30 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_siegelcache', __('Bewertungsbild zwischenspeichern (empfohlen)', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_siegelcache'), array('help' => 'wpsg_mod_trustedshops_siegelcache')); ?>
|
33 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_siegelcache', __('Bewertungsbild zwischenspeichern (empfohlen)', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_siegelcache'), array('help' => 'wpsg_mod_trustedshops_siegelcache')); ?>
|
31 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_siegeltitle', __('Titel des Bewertungsbildes', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_siegeltitle'), array('help' => 'wpsg_mod_trustedshops_siegeltitle')); ?>
|
34 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_siegeltitle', __('Titel des Bewertungsbildes', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_siegeltitle'), array('help' => 'wpsg_mod_trustedshops_siegeltitle')); ?>
|
32 |
|
35 |
|
33 |
<?php if (wpsg_isSizedString($this->view['siegelURL'])) { ?>
|
36 |
<?php if (wpsg_isSizedString($this->view['siegelURL'])) { ?>
|
34 |
<br />
|
37 |
<br />
|
35 |
<div class="wpsg_hinweis"><?php echo wpsg_translate(__('Das Trusted Shops Widget muss in einen <a href="#1#">Widgetbereich</a> eingefügt werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/widgets.php'); ?></div><br />
|
38 |
<div class="wpsg_hinweis"><?php echo wpsg_translate(__('Das Trusted Shops Widget muss in einen <a href="#1#">Widgetbereich</a> eingefügt werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/widgets.php'); ?></div><br />
|
36 |
<?php echo __('Vorschau:', 'wpsg'); ?><br />
|
39 |
<?php echo __('Vorschau:', 'wpsg'); ?><br />
|
37 |
<img class="bewertung" alt="<?php echo wpsg_hspc($this->get_option('wpsg_mod_trustedshops_siegeltitle')); ?>" border="0" src="<?php echo $this->view['siegelURL']; ?>"/>
|
40 |
<img class="bewertung" alt="<?php echo wpsg_hspc($this->get_option('wpsg_mod_trustedshops_siegeltitle')); ?>" border="0" src="<?php echo $this->view['siegelURL']; ?>"/>
|
38 |
<?php } ?>
|
41 |
<?php } ?>
|
39 |
|
42 |
|
40 |
</div>
|
43 |
</div>
|
41 |
|
44 |
|
42 |
<div id="tab2" role="tabpanel" class="tab-pane" >
|
45 |
<div id="tab2" role="tabpanel" class="tab-pane" >
|
43 |
|
46 |
|
44 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_orderdone', __('Link zur Bewertung', 'wpsg'), array(
|
47 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_orderdone', __('Link zur Bewertung', 'wpsg'), array(
|
45 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
48 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
46 |
'1' => __('Immer anzeigen', 'wpsg'),
|
49 |
'1' => __('Immer anzeigen', 'wpsg'),
|
47 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
50 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
48 |
), $this->get_option('wpsg_mod_trustedshops_orderdone'), array('help' => 'wpsg_mod_trustedshops_orderdone')); ?>
|
51 |
), $this->get_option('wpsg_mod_trustedshops_orderdone'), array('help' => 'wpsg_mod_trustedshops_orderdone')); ?>
|
49 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_orderdonetitle', __('Titel des Links', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_orderdonetitle'), array('help' => 'wpsg_mod_trustedshops_orderdonetitle')); ?>
|
52 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_orderdonetitle', __('Titel des Links', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_orderdonetitle'), array('help' => 'wpsg_mod_trustedshops_orderdonetitle')); ?>
|
50 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_orderdonelogo', __('Alternative Logo URL', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_orderdonelogo'), array('help' => 'wpsg_mod_trustedshops_orderdonelogo')); ?>
|
53 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_orderdonelogo', __('Alternative Logo URL', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_orderdonelogo'), array('help' => 'wpsg_mod_trustedshops_orderdonelogo')); ?>
|
51 |
|
54 |
|
52 |
<br />
|
55 |
<br />
|
53 |
|
56 |
|
54 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_warranty', __('Trusted Shops Käuferschutz (Garantie)', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_warranty'), array('help' => 'wpsg_mod_trustedshops_warranty')); ?>
|
57 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_warranty', __('Trusted Shops Käuferschutz (Garantie)', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_warranty'), array('help' => 'wpsg_mod_trustedshops_warranty')); ?>
|
55 |
|
58 |
|
56 |
</div>
|
59 |
</div>
|
57 |
|
60 |
|
58 |
<div id="tab3" role="tabpanel" class="tab-pane" >
|
61 |
<div id="tab3" role="tabpanel" class="tab-pane" >
|
59 |
|
62 |
|
60 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_customermail', __('Link zur Bewertung in Kundenmail nach Bestellabschluss', 'wpsg'), array(
|
63 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_customermail', __('Link zur Bewertung in Kundenmail nach Bestellabschluss', 'wpsg'), array(
|
61 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
64 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
62 |
'1' => __('Immer anzeigen', 'wpsg'),
|
65 |
'1' => __('Immer anzeigen', 'wpsg'),
|
63 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
66 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
64 |
), $this->get_option('wpsg_mod_trustedshops_customermail'), array('help' => 'wpsg_mod_trustedshops_customermail')); ?>
|
67 |
), $this->get_option('wpsg_mod_trustedshops_customermail'), array('help' => 'wpsg_mod_trustedshops_customermail')); ?>
|
65 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_customermailtitle', __('Text des Links', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_customermailtitle'), array('help' => 'wpsg_mod_trustedshops_customermailtitle')); ?>
|
68 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_customermailtitle', __('Text des Links', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_customermailtitle'), array('help' => 'wpsg_mod_trustedshops_customermailtitle')); ?>
|
66 |
|
69 |
|
67 |
<br />
|
70 |
<br />
|
68 |
|
71 |
|
69 |
<?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
|
72 |
<?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
|
70 |
|
- |
|
71 |
<br />
|
- |
|
72 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_invoicemail', __('Link zur Bewertung in Rechnungsmail', 'wpsg'), array(
|
73 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_invoicemail', __('Link zur Bewertung in Rechnungsmail', 'wpsg'), array(
|
73 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
74 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
74 |
'1' => __('Immer anzeigen', 'wpsg'),
|
75 |
'1' => __('Immer anzeigen', 'wpsg'),
|
75 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
76 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
76 |
), $this->get_option('wpsg_mod_trustedshops_invoicemail'), array('help' => 'wpsg_mod_trustedshops_invoicemail')); ?>
|
77 |
), $this->get_option('wpsg_mod_trustedshops_invoicemail'), array('help' => 'wpsg_mod_trustedshops_invoicemail')); ?>
|
77 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_invoicemailtitle', __('Text des Links', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_invoicemailtitle'), array('help' => 'wpsg_mod_trustedshops_invoicemailtitle')); ?>
|
78 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_invoicemailtitle', __('Text des Links', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_invoicemailtitle'), array('help' => 'wpsg_mod_trustedshops_invoicemailtitle')); ?>
|
78 |
|
- |
|
79 |
<?php } ?>
|
79 |
<?php } ?>
|
80 |
|
80 |
|
81 |
</div>
|
81 |
</div>
|
82 |
|
82 |
|
83 |
<div id="tab4" role="tabpanel" class="tab-pane" >
|
83 |
<div id="tab4" role="tabpanel" class="tab-pane" >
|
84 |
|
84 |
|
85 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_reminder', __('Erinnerung', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_reminder'), array('help' => 'wpsg_mod_trustedshops_reminder')); ?>
|
85 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_reminder', __('Erinnerung', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_reminder'), array('help' => 'wpsg_mod_trustedshops_reminder')); ?>
|
86 |
<div id="wpsg_mod_trustedshops_reminder_layer" style="display:none;">
|
86 |
<div id="wpsg_mod_trustedshops_reminder_layer" style="display:none;">
|
87 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_reminderDays', __('Zeitspanne zum versenden der Erinnerunsmail in Tagen', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_reminderDays'), array('help' => 'wpsg_mod_trustedshops_reminderDays')); ?>
|
87 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_reminderDays', __('Zeitspanne zum versenden der Erinnerunsmail in Tagen', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_reminderDays'), array('help' => 'wpsg_mod_trustedshops_reminderDays')); ?>
|
88 |
</div>
|
88 |
</div>
|
89 |
|
89 |
|
90 |
<br />
|
90 |
<br />
|
91 |
|
91 |
|
92 |
<?php echo wpsg_drawForm_Link('wpsg_mod_trustedshops_link', __('Auslöser bei Statuswechsel', 'wpsg'),
|
92 |
<?php echo wpsg_drawForm_Link('wpsg_mod_trustedshops_link', __('Auslöser bei Statuswechsel', 'wpsg'),
|
93 |
__('Bearbeiten', 'wpsg'), array('help' => 'wpsg_mod_trustedshops_link', 'class' => 'wpsg_mod_trustedshops_state')); ?>
|
93 |
__('Bearbeiten', 'wpsg'), array('help' => 'wpsg_mod_trustedshops_link', 'class' => 'wpsg_mod_trustedshops_state')); ?>
|
94 |
|
94 |
|
95 |
<div class="wpsg_mod_trustedshops_reminderstate_layer" style="display:none;">
|
95 |
<div class="wpsg_mod_trustedshops_reminderstate_layer" style="display:none;">
|
96 |
|
96 |
|
97 |
<?php foreach ($this->arStatus as $state_id => $state_label) { ?>
|
97 |
<?php foreach ($this->arStatus as $state_id => $state_label) { ?>
|
98 |
<?php
|
98 |
<?php
|
99 |
$arr1 = $this->get_option('wpsg_mod_trustedshops_state');
|
99 |
$arr1 = $this->get_option('wpsg_mod_trustedshops_state');
|
100 |
$chk = ((in_array($state_id, (array)$this->get_option('wpsg_mod_trustedshops_state')))?1:0);
|
100 |
$chk = ((in_array($state_id, (array)$this->get_option('wpsg_mod_trustedshops_state')))?1:0);
|
101 |
echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_state[]', __($state_label, 'wpsg'),
|
101 |
echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_state[]', __($state_label, 'wpsg'),
|
102 |
$chk, array('help1' => 'wpsg_shippay_mwstland', 'value' => wpsg_hspc($state_id), 'labelright' => true));
|
102 |
$chk, array('help1' => 'wpsg_shippay_mwstland', 'value' => wpsg_hspc($state_id), 'labelright' => true));
|
103 |
?>
|
103 |
?>
|
104 |
<?php } ?>
|
104 |
<?php } ?>
|
105 |
|
105 |
|
106 |
<br />
|
106 |
<br />
|
107 |
|
107 |
|
108 |
</div>
|
108 |
</div>
|
109 |
|
109 |
|
110 |
<?php echo wpsg_drawForm_Input('', __('Letzter Export', 'wpsg'), $this->view['lastExport'], array('text' => true)); ?>
|
110 |
<?php echo wpsg_drawForm_Input('', __('Letzter Export', 'wpsg'), $this->view['lastExport'], array('text' => true)); ?>
|
111 |
|
111 |
|
112 |
<br />
|
112 |
<br />
|
113 |
|
113 |
|
114 |
<div class="wpsg_form_field">
|
114 |
<div class="wpsg_form_field">
|
115 |
<div class="wpsg_form_left"> </div>
|
115 |
<div class="wpsg_form_left"> </div>
|
116 |
<div class="wpsg_form_right wpsg_form_right_unit">
|
116 |
<div class="wpsg_form_right wpsg_form_right_unit">
|
117 |
<?php $temp = $this->callMod('wpsg_mod_trustedshops', 'getExportData');
|
117 |
<?php $temp = $this->callMod('wpsg_mod_trustedshops', 'getExportData');
|
118 |
if (wpsg_isSizedArray($temp)) { ?>
|
118 |
if (wpsg_isSizedArray($temp)) { ?>
|
119 |
<a target="_blank" onclick="location.href=location.href;" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_trustedshops&do=export&noheader=1" class="button"><?php echo __('CSV-Export-Datei erstellen', 'wpsg'); ?></a>
|
119 |
<a target="_blank" onclick="location.href=location.href;" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_trustedshops&do=export&noheader=1" class="button"><?php echo __('CSV-Export-Datei erstellen', 'wpsg'); ?></a>
|
120 |
<?php } else { ?>
|
120 |
<?php } else { ?>
|
121 |
<p><?php echo __('Derzeit keine Daten zum Export verfügbar.', 'wpsg'); ?></p>
|
121 |
<p><?php echo __('Derzeit keine Daten zum Export verfügbar.', 'wpsg'); ?></p>
|
122 |
<?php } ?>
|
122 |
<?php } ?>
|
123 |
</div>
|
123 |
</div>
|
124 |
<div class="wpsg_clear"></div>
|
124 |
<div class="wpsg_clear"></div>
|
125 |
</div>
|
125 |
</div>
|
126 |
|
126 |
|
127 |
<br />
|
127 |
<br />
|
128 |
|
128 |
|
129 |
<a href="https://www.trustedshops.com/tsb2b/sa/ratings/batchRatingRequest.seam"><?php echo __('Trusted Shops Review Collector', 'wpsg'); ?></a>
|
129 |
<a href="https://www.trustedshops.com/tsb2b/sa/ratings/batchRatingRequest.seam"><?php echo __('Trusted Shops Review Collector', 'wpsg'); ?></a>
|
130 |
|
130 |
|
131 |
</div>
|
131 |
</div>
|
132 |
|
132 |
|
133 |
</div>
|
133 |
</div>
|
- |
|
134 |
|
134 |
</div>
|
135 |
</div>
|
135 |
|
136 |
|
136 |
<script type="text/javascript">/* <![CDATA[ */
|
137 |
<script type="text/javascript">/* <![CDATA[ */
|
137 |
|
138 |
|
138 |
jQuery(document).ready(function() {
|
139 |
jQuery(document).ready(function() {
|
139 |
|
140 |
|
140 |
jQuery('#wpsg_tab').wpsg_tab( {
|
141 |
jQuery('#wpsg_tab').wpsg_tab( {
|
141 |
'cookiename': 'wpsg_trustedshop_tab',
|
142 |
'cookiename': 'wpsg_trustedshop_tab',
|
142 |
'tab2': function() {
|
143 |
'tab2': function() {
|
143 |
jQuery('.tablink').show();
|
144 |
jQuery('.tablink').show();
|
144 |
}
|
145 |
}
|
145 |
} );
|
146 |
} );
|
146 |
|
147 |
|
147 |
jQuery('#wpsg_mod_trustedshops_customerset').bind('change', function() {
|
148 |
jQuery('#wpsg_mod_trustedshops_customerset').bind('change', function() {
|
148 |
|
149 |
|
149 |
if (jQuery(this).attr('checked') === true || jQuery(this).attr('checked') == 'checked')
|
150 |
if (jQuery(this).attr('checked') === true || jQuery(this).attr('checked') == 'checked')
|
150 |
{
|
151 |
{
|
151 |
|
152 |
|
152 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').show();
|
153 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').show();
|
153 |
|
154 |
|
154 |
}
|
155 |
}
|
155 |
else
|
156 |
else
|
156 |
{
|
157 |
{
|
157 |
|
158 |
|
158 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').hide();
|
159 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').hide();
|
159 |
|
160 |
|
160 |
}
|
161 |
}
|
161 |
|
162 |
|
162 |
} ).change();
|
163 |
} ).change();
|
163 |
|
164 |
|
164 |
jQuery('.wpsg_mod_trustedshops_state').bind('click', function() {
|
165 |
jQuery('.wpsg_mod_trustedshops_state').bind('click', function() {
|
165 |
|
166 |
|
166 |
jQuery('.wpsg_mod_trustedshops_reminderstate_layer').toggle();
|
167 |
jQuery('.wpsg_mod_trustedshops_reminderstate_layer').toggle();
|
167 |
|
168 |
|
168 |
if (jQuery('.wpsg_mod_trustedshops_reminderstate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
|
169 |
if (jQuery('.wpsg_mod_trustedshops_reminderstate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
|
169 |
else jQuery(this).html('<?php echo __('Bearbeiten', 'wpsg'); ?>');
|
170 |
else jQuery(this).html('<?php echo __('Bearbeiten', 'wpsg'); ?>');
|
170 |
|
171 |
|
171 |
return false;
|
172 |
return false;
|
172 |
|
173 |
|
173 |
} );
|
174 |
} );
|
174 |
|
175 |
|
175 |
} );
|
176 |
} );
|
176 |
|
177 |
|
177 |
document.addEventListener("DOMContentLoaded", function() {
|
178 |
document.addEventListener("DOMContentLoaded", function() {
|
178 |
|
179 |
|
179 |
var reminderCheckbox = document.getElementById('wpsg_mod_trustedshops_reminder');
|
180 |
var reminderCheckbox = document.getElementById('wpsg_mod_trustedshops_reminder');
|
180 |
var reminderDiv = document.getElementById('wpsg_mod_trustedshops_reminder_layer');
|
181 |
var reminderDiv = document.getElementById('wpsg_mod_trustedshops_reminder_layer');
|
181 |
|
182 |
|
182 |
function toggleDivVisibility(checkbox, div)
|
183 |
function toggleDivVisibility(checkbox, div)
|
183 |
{
|
184 |
{
|
184 |
|
185 |
|
185 |
if (checkbox.checked) div.style.display = "block";
|
186 |
if (checkbox.checked) div.style.display = "block";
|
186 |
else div.style.display = "none";
|
187 |
else div.style.display = "none";
|
187 |
|
188 |
|
188 |
}
|
189 |
}
|
189 |
|
190 |
|
190 |
// Event Listener für die Checkboxen
|
191 |
// Event Listener für die Checkboxen
|
191 |
reminderCheckbox.addEventListener("change", function() {
|
192 |
reminderCheckbox.addEventListener("change", function() {
|
192 |
toggleDivVisibility(reminderCheckbox, reminderDiv);
|
193 |
toggleDivVisibility(reminderCheckbox, reminderDiv);
|
193 |
});
|
194 |
});
|
194 |
|
195 |
|
195 |
// Überprüfen und Initialisieren des Anfangszustands der Checkboxen
|
196 |
// Überprüfen und Initialisieren des Anfangszustands der Checkboxen
|
196 |
toggleDivVisibility(reminderCheckbox, reminderDiv);
|
197 |
toggleDivVisibility(reminderCheckbox, reminderDiv);
|
197 |
|
198 |
|
198 |
});
|
199 |
});
|
199 |
|
200 |
|
200 |
/* ]]> */</script>
|
201 |
/* ]]> */</script>
|