Line 25... |
Line 25... |
25 |
<li role="presentation"><a href="#tab4" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Review Collector', '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 |
</ul>
|
26 |
</ul>
|
27 |
<div class="tab-content">
|
27 |
<div class="tab-content">
|
28 |
<div id="tab1" role="tabpanel" class="tab-pane active" >
|
28 |
<div id="tab1" role="tabpanel" class="tab-pane active" >
|
29 |
|
29 |
|
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')); ?>
|
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')); ?>
|
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')); ?>
|
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')); ?>
|
32 |
|
32 |
|
33 |
<?php if (wpsg_isSizedString($this->view['siegelURL'])) { ?>
|
33 |
<?php if (wpsg_isSizedString($this->view['siegelURL'])) { ?>
|
34 |
<br />
|
34 |
<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 />
|
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 />
|
36 |
<?php echo __('Vorschau:', 'wpsg'); ?><br />
|
36 |
<?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']; ?>"/>
|
37 |
<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 } ?>
|
38 |
<?php } ?>
|
39 |
|
39 |
|
40 |
</div>
|
40 |
</div>
|
41 |
|
41 |
|
42 |
<div id="tab2" role="tabpanel" class="tab-pane" >
|
42 |
<div id="tab2" role="tabpanel" class="tab-pane" >
|
43 |
|
43 |
|
44 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_orderdone', __('Link zur Bewertung', 'wpsg'), array(
|
44 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_orderdone', __('Link zur Bewertung', 'wpsg'), array(
|
45 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
45 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
46 |
'1' => __('Immer anzeigen', 'wpsg'),
|
46 |
'1' => __('Immer anzeigen', 'wpsg'),
|
47 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
47 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
48 |
), $this->get_option('wpsg_mod_trustedshops_orderdone'), array('help' => 'wpsg_mod_trustedshops_orderdone')); ?>
|
48 |
), $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')); ?>
|
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')); ?>
|
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')); ?>
|
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')); ?>
|
51 |
|
51 |
|
52 |
<br />
|
52 |
<br />
|
53 |
|
53 |
|
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')); ?>
|
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')); ?>
|
55 |
|
55 |
|
56 |
</div>
|
56 |
</div>
|
57 |
|
57 |
|
58 |
<div id="tab3" role="tabpanel" class="tab-pane" >
|
58 |
<div id="tab3" role="tabpanel" class="tab-pane" >
|
59 |
|
59 |
|
60 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_customermail', __('Link zur Bewertung in Kundenmail nach Bestellabschluss', 'wpsg'), array(
|
60 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_customermail', __('Link zur Bewertung in Kundenmail nach Bestellabschluss', 'wpsg'), array(
|
Line 80... |
Line 80... |
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_TextStart(); ?>
|
86 |
<div id="wpsg_mod_trustedshops_reminder_layer" style="display:none;">
|
86 |
<input type="hidden" name="wpsg_mod_trustedshops_reminder" value="0">
|
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 |
<input id="wpsg_mod_trustedshops_reminder" type="checkbox" class="checkbox" <?php echo ((wpsg_isSizedInt($this->get_option('wpsg_mod_trustedshops_reminder')))?'checked="checked"':''); ?> tabindex="14" name="wpsg_mod_trustedshops_reminder" value="1">
|
88 |
</div>
|
88 |
|
89 |
|
89 |
<div id="wpsg_mod_trustedshops_reminder_layer" class="wpsg_form_trustedshops_reminderDays">
|
- |
|
- |
|
90 |
<br />
|
90 |
|
91 |
|
91 |
<p><?php echo __('Nach', 'wpsg'); ?></p>
|
92 |
<?php echo wpsg_drawForm_Link('wpsg_mod_trustedshops_link', __('Auslöser bei Statuswechsel', 'wpsg'),
|
92 |
<input id="wpsg_mod_trustedshops_reminderDays" type="text" class="text" tabindex="15" name="wpsg_mod_trustedshops_reminderDays" value="<?php echo $this->get_option('wpsg_mod_trustedshops_reminderDays'); ?>">
|
93 |
__('Bearbeiten', 'wpsg'), array('help' => 'wpsg_mod_trustedshops_link', 'class' => 'wpsg_mod_trustedshops_state')); ?>
|
93 |
<p><?php echo __('Tagen', 'wpsg'); ?></p>
|
- |
|
94 |
|
- |
|
95 |
</div>
|
- |
|
96 |
|
94 |
|
97 |
<?php echo wpsg_drawForm_TextEnd(__('Erinnerung', 'wpsg'), array('noP' => true)); ?>
|
95 |
<div class="wpsg_mod_trustedshops_reminderstate_layer" style="display:none;">
|
98 |
|
96 |
|
99 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
- |
|
100 |
<?php foreach ($this->arStatus as $state_id => $state_label) { ?>
|
97 |
<?php foreach ($this->arStatus as $state_id => $state_label) { ?>
|
101 |
<?php
|
98 |
<?php
|
102 |
$arr1 = $this->get_option('wpsg_mod_trustedshops_state');
|
99 |
$arr1 = $this->get_option('wpsg_mod_trustedshops_state');
|
103 |
$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);
|
104 |
echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_state[]', __($state_label, 'wpsg'),
|
101 |
echo wpsg_drawForm_Checkbox('wpsg_mod_trustedshops_state[]', __($state_label, 'wpsg'),
|
105 |
$chk, array('help1' => 'wpsg_shippay_mwstland',
|
102 |
$chk, array('help1' => 'wpsg_shippay_mwstland', 'value' => wpsg_hspc($state_id), 'labelright' => true));
|
106 |
'value' => wpsg_hspc($state_id),
|
- |
|
107 |
'noHidden' => true,
|
- |
|
108 |
'fullWidth' => true
|
- |
|
109 |
));
|
- |
|
110 |
?>
|
103 |
?>
|
111 |
<br />
|
- |
|
112 |
<?php } ?>
|
104 |
<?php } ?>
|
113 |
|
- |
|
114 |
<?php echo wpsg_drawForm_TextEnd(__('Bestellzustände', 'wpsg'), array('noP' => true)); ?>
|
- |
|
115 |
|
105 |
|
116 |
|
- |
|
117 |
|
- |
|
118 |
<?php echo wpsg_drawForm_Input('', __('Letzter Export', 'wpsg'), $this->view['lastExport'], array('text' => true)); ?>
|
- |
|
119 |
|
- |
|
120 |
<br />
|
106 |
<br />
|
121 |
|
107 |
|
- |
|
108 |
</div>
|
- |
|
109 |
|
- |
|
110 |
<?php echo wpsg_drawForm_Input('', __('Letzter Export', 'wpsg'), $this->view['lastExport'], array('text' => true)); ?>
|
- |
|
111 |
|
- |
|
112 |
<br />
|
- |
|
113 |
|
122 |
<div class="wpsg_form_field">
|
114 |
<div class="wpsg_form_field">
|
123 |
<div class="wpsg_form_left"> </div>
|
115 |
<div class="wpsg_form_left"> </div>
|
124 |
<div class="wpsg_form_right wpsg_form_right_unit">
|
116 |
<div class="wpsg_form_right wpsg_form_right_unit">
|
125 |
<?php $temp = $this->callMod('wpsg_mod_trustedshops', 'getExportData');
|
117 |
<?php $temp = $this->callMod('wpsg_mod_trustedshops', 'getExportData');
|
126 |
if (wpsg_isSizedArray($temp)) { ?>
|
118 |
if (wpsg_isSizedArray($temp)) { ?>
|
127 |
<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>
|
128 |
<?php } else { ?>
|
120 |
<?php } else { ?>
|
129 |
<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>
|
130 |
<?php } ?>
|
122 |
<?php } ?>
|
131 |
</div>
|
- |
|
132 |
<div class="wpsg_clear"></div>
|
- |
|
133 |
</div>
|
123 |
</div>
|
- |
|
124 |
<div class="wpsg_clear"></div>
|
- |
|
125 |
</div>
|
134 |
|
126 |
|
135 |
<br />
|
127 |
<br />
|
136 |
|
128 |
|
137 |
<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>
|
138 |
|
130 |
|
139 |
</div>
|
131 |
</div>
|
140 |
|
132 |
|
141 |
</div>
|
133 |
</div>
|
142 |
</div>
|
134 |
</div>
|
143 |
|
135 |
|
144 |
<script type="text/javascript">/* <![CDATA[ */
|
136 |
<script type="text/javascript">/* <![CDATA[ */
|
145 |
|
137 |
|
146 |
jQuery(document).ready(function() {
|
138 |
jQuery(document).ready(function() {
|
147 |
|
- |
|
148 |
jQuery('#wpsg_mod_trustedshops_reminder').bind('change', function() {
|
- |
|
149 |
|
- |
|
150 |
if (jQuery('#wpsg_mod_trustedshops_reminder').is(':checked'))
|
- |
|
151 |
{
|
- |
|
152 |
|
- |
|
153 |
jQuery('#wpsg_mod_trustedshops_reminder_layer').show(250);
|
- |
|
154 |
|
- |
|
155 |
}
|
- |
|
156 |
else
|
- |
|
157 |
{
|
- |
|
158 |
|
- |
|
159 |
jQuery('#wpsg_mod_trustedshops_reminder_layer').hide(250);
|
- |
|
160 |
|
- |
|
161 |
}
|
- |
|
162 |
|
- |
|
163 |
} ).change();
|
- |
|
164 |
|
139 |
|
165 |
jQuery('#wpsg_tab').wpsg_tab( {
|
140 |
jQuery('#wpsg_tab').wpsg_tab( {
|
166 |
'cookiename': 'wpsg_trustedshop_tab',
|
141 |
'cookiename': 'wpsg_trustedshop_tab',
|
167 |
'tab2': function() {
|
142 |
'tab2': function() {
|
168 |
jQuery('.tablink').show();
|
143 |
jQuery('.tablink').show();
|
Line 183... |
Line 158... |
183 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').hide();
|
158 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').hide();
|
184 |
|
159 |
|
185 |
}
|
160 |
}
|
186 |
|
161 |
|
187 |
} ).change();
|
162 |
} ).change();
|
- |
|
163 |
|
- |
|
164 |
jQuery('.wpsg_mod_trustedshops_state').bind('click', function() {
|
- |
|
165 |
|
- |
|
166 |
jQuery('.wpsg_mod_trustedshops_reminderstate_layer').toggle();
|
- |
|
167 |
|
- |
|
168 |
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 |
|
- |
|
171 |
return false;
|
- |
|
172 |
|
- |
|
173 |
} );
|
188 |
|
174 |
|
189 |
} );
|
175 |
} );
|
190 |
|
176 |
|
- |
|
177 |
document.addEventListener("DOMContentLoaded", function() {
|
- |
|
178 |
|
- |
|
179 |
var reminderCheckbox = document.getElementById('wpsg_mod_trustedshops_reminder');
|
- |
|
180 |
var reminderDiv = document.getElementById('wpsg_mod_trustedshops_reminder_layer');
|
- |
|
181 |
|
- |
|
182 |
function toggleDivVisibility(checkbox, div)
|
- |
|
183 |
{
|
- |
|
184 |
|
- |
|
185 |
if (checkbox.checked) div.style.display = "block";
|
- |
|
186 |
else div.style.display = "none";
|
- |
|
187 |
|
- |
|
188 |
}
|
- |
|
189 |
|
- |
|
190 |
// Event Listener für die Checkboxen
|
- |
|
191 |
reminderCheckbox.addEventListener("change", function() {
|
- |
|
192 |
toggleDivVisibility(reminderCheckbox, reminderDiv);
|
- |
|
193 |
});
|
- |
|
194 |
|
- |
|
195 |
// Überprüfen und Initialisieren des Anfangszustands der Checkboxen
|
- |
|
196 |
toggleDivVisibility(reminderCheckbox, reminderDiv);
|
- |
|
197 |
|
- |
|
198 |
});
|
- |
|
199 |
|
191 |
/* ]]> */</script>
|
200 |
/* ]]> */</script>
|
192 |
|
201 |
|