3234 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
8323 |
karl |
4 |
* Template für die Einstellungen des Trusted Shops Moduls
|
3234 |
daniel |
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
|
|
|
9 |
<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_shopid', __('Shop-ID', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_shopid')); ?>
|
3242 |
daniel |
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')); ?>
|
3238 |
daniel |
11 |
|
|
|
12 |
<div id="wpsg_mod_trustedshops_customerset_preset_layer">
|
3242 |
daniel |
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')); ?>
|
3238 |
daniel |
14 |
</div>
|
|
|
15 |
|
3234 |
daniel |
16 |
<br />
|
|
|
17 |
|
4428 |
daniel |
18 |
<div class="wpsg_mod_protectedshops">
|
8323 |
karl |
19 |
|
4428 |
daniel |
20 |
<div class="wpsg_admin_box" id="wpsg_tab">
|
6005 |
hartmut |
21 |
|
|
|
22 |
<ul class="nav nav-tabs" role="tablist">
|
|
|
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>
|
|
|
24 |
<li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Bestellabschluss', 'wpsg'); ?></a></li>
|
|
|
25 |
<li role="presentation"><a href="#tab3" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Bewertungslinks', '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>
|
|
|
27 |
</ul>
|
8323 |
karl |
28 |
|
6005 |
hartmut |
29 |
<div class="tab-content">
|
8323 |
karl |
30 |
|
6005 |
hartmut |
31 |
<div id="tab1" role="tabpanel" class="tab-pane active" >
|
4428 |
daniel |
32 |
|
8322 |
karl |
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')); ?>
|
|
|
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')); ?>
|
|
|
35 |
|
|
|
36 |
<?php if (wpsg_isSizedString($this->view['siegelURL'])) { ?>
|
|
|
37 |
<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 />
|
|
|
39 |
<?php echo __('Vorschau:', 'wpsg'); ?><br />
|
|
|
40 |
<img class="bewertung" alt="<?php echo wpsg_hspc($this->get_option('wpsg_mod_trustedshops_siegeltitle')); ?>" border="0" src="<?php echo $this->view['siegelURL']; ?>"/>
|
|
|
41 |
<?php } ?>
|
|
|
42 |
|
6005 |
hartmut |
43 |
</div>
|
3237 |
daniel |
44 |
|
6005 |
hartmut |
45 |
<div id="tab2" role="tabpanel" class="tab-pane" >
|
4428 |
daniel |
46 |
|
8322 |
karl |
47 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_orderdone', __('Link zur Bewertung', 'wpsg'), array(
|
|
|
48 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
|
|
49 |
'1' => __('Immer anzeigen', 'wpsg'),
|
|
|
50 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
|
|
51 |
), $this->get_option('wpsg_mod_trustedshops_orderdone'), array('help' => 'wpsg_mod_trustedshops_orderdone')); ?>
|
|
|
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')); ?>
|
|
|
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')); ?>
|
|
|
54 |
|
|
|
55 |
<br />
|
|
|
56 |
|
|
|
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')); ?>
|
|
|
58 |
|
6005 |
hartmut |
59 |
</div>
|
3237 |
daniel |
60 |
|
6005 |
hartmut |
61 |
<div id="tab3" role="tabpanel" class="tab-pane" >
|
4428 |
daniel |
62 |
|
|
|
63 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_customermail', __('Link zur Bewertung in Kundenmail nach Bestellabschluss', 'wpsg'), array(
|
3237 |
daniel |
64 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
|
|
65 |
'1' => __('Immer anzeigen', 'wpsg'),
|
|
|
66 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
4428 |
daniel |
67 |
), $this->get_option('wpsg_mod_trustedshops_customermail'), array('help' => 'wpsg_mod_trustedshops_customermail')); ?>
|
|
|
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')); ?>
|
3237 |
daniel |
69 |
|
4428 |
daniel |
70 |
<br />
|
|
|
71 |
|
|
|
72 |
<?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
|
|
|
73 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_invoicemail', __('Link zur Bewertung in Rechnungsmail', 'wpsg'), array(
|
|
|
74 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
|
|
75 |
'1' => __('Immer anzeigen', 'wpsg'),
|
|
|
76 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
|
|
77 |
), $this->get_option('wpsg_mod_trustedshops_invoicemail'), array('help' => 'wpsg_mod_trustedshops_invoicemail')); ?>
|
|
|
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')); ?>
|
|
|
79 |
<?php } ?>
|
|
|
80 |
|
6005 |
hartmut |
81 |
</div>
|
4428 |
daniel |
82 |
|
6005 |
hartmut |
83 |
<div id="tab4" role="tabpanel" class="tab-pane" >
|
|
|
84 |
|
8322 |
karl |
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;">
|
|
|
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>
|
|
|
89 |
|
|
|
90 |
<br />
|
|
|
91 |
|
|
|
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')); ?>
|
|
|
94 |
|
|
|
95 |
<div class="wpsg_mod_trustedshops_reminderstate_layer" style="display:none;">
|
|
|
96 |
|
|
|
97 |
<?php foreach ($this->arStatus as $state_id => $state_label) { ?>
|
6005 |
hartmut |
98 |
<?php
|
8322 |
karl |
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);
|
|
|
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));
|
6005 |
hartmut |
103 |
?>
|
8322 |
karl |
104 |
<?php } ?>
|
6005 |
hartmut |
105 |
|
8322 |
karl |
106 |
<br />
|
6005 |
hartmut |
107 |
|
8322 |
karl |
108 |
</div>
|
|
|
109 |
|
|
|
110 |
<?php echo wpsg_drawForm_Input('', __('Letzter Export', 'wpsg'), $this->view['lastExport'], array('text' => true)); ?>
|
|
|
111 |
|
|
|
112 |
<br />
|
|
|
113 |
|
|
|
114 |
<div class="wpsg_form_field">
|
|
|
115 |
<div class="wpsg_form_left"> </div>
|
|
|
116 |
<div class="wpsg_form_right wpsg_form_right_unit">
|
|
|
117 |
<?php $temp = $this->callMod('wpsg_mod_trustedshops', 'getExportData');
|
|
|
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>
|
|
|
120 |
<?php } else { ?>
|
|
|
121 |
<p><?php echo __('Derzeit keine Daten zum Export verfügbar.', 'wpsg'); ?></p>
|
|
|
122 |
<?php } ?>
|
4432 |
daniel |
123 |
</div>
|
8322 |
karl |
124 |
<div class="wpsg_clear"></div>
|
|
|
125 |
</div>
|
|
|
126 |
|
|
|
127 |
<br />
|
|
|
128 |
|
|
|
129 |
<a href="https://www.trustedshops.com/tsb2b/sa/ratings/batchRatingRequest.seam"><?php echo __('Trusted Shops Review Collector', 'wpsg'); ?></a>
|
|
|
130 |
|
6005 |
hartmut |
131 |
</div>
|
8323 |
karl |
132 |
|
3237 |
daniel |
133 |
</div>
|
8323 |
karl |
134 |
|
3237 |
daniel |
135 |
</div>
|
|
|
136 |
|
|
|
137 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
138 |
|
|
|
139 |
jQuery(document).ready(function() {
|
|
|
140 |
|
|
|
141 |
jQuery('#wpsg_tab').wpsg_tab( {
|
|
|
142 |
'cookiename': 'wpsg_trustedshop_tab',
|
|
|
143 |
'tab2': function() {
|
|
|
144 |
jQuery('.tablink').show();
|
|
|
145 |
}
|
|
|
146 |
} );
|
|
|
147 |
|
|
|
148 |
jQuery('#wpsg_mod_trustedshops_customerset').bind('change', function() {
|
|
|
149 |
|
|
|
150 |
if (jQuery(this).attr('checked') === true || jQuery(this).attr('checked') == 'checked')
|
|
|
151 |
{
|
|
|
152 |
|
|
|
153 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').show();
|
|
|
154 |
|
|
|
155 |
}
|
|
|
156 |
else
|
|
|
157 |
{
|
|
|
158 |
|
|
|
159 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').hide();
|
|
|
160 |
|
|
|
161 |
}
|
|
|
162 |
|
|
|
163 |
} ).change();
|
8322 |
karl |
164 |
|
|
|
165 |
jQuery('.wpsg_mod_trustedshops_state').bind('click', function() {
|
|
|
166 |
|
|
|
167 |
jQuery('.wpsg_mod_trustedshops_reminderstate_layer').toggle();
|
|
|
168 |
|
|
|
169 |
if (jQuery('.wpsg_mod_trustedshops_reminderstate_layer').is(':visible')) jQuery(this).html('<?php echo __('Ausblenden', 'wpsg'); ?>');
|
|
|
170 |
else jQuery(this).html('<?php echo __('Bearbeiten', 'wpsg'); ?>');
|
|
|
171 |
|
|
|
172 |
return false;
|
|
|
173 |
|
|
|
174 |
} );
|
3237 |
daniel |
175 |
|
|
|
176 |
} );
|
|
|
177 |
|
8322 |
karl |
178 |
document.addEventListener("DOMContentLoaded", function() {
|
|
|
179 |
|
|
|
180 |
var reminderCheckbox = document.getElementById('wpsg_mod_trustedshops_reminder');
|
|
|
181 |
var reminderDiv = document.getElementById('wpsg_mod_trustedshops_reminder_layer');
|
|
|
182 |
|
|
|
183 |
function toggleDivVisibility(checkbox, div)
|
|
|
184 |
{
|
|
|
185 |
|
|
|
186 |
if (checkbox.checked) div.style.display = "block";
|
|
|
187 |
else div.style.display = "none";
|
|
|
188 |
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
// Event Listener für die Checkboxen
|
|
|
192 |
reminderCheckbox.addEventListener("change", function() {
|
|
|
193 |
toggleDivVisibility(reminderCheckbox, reminderDiv);
|
|
|
194 |
});
|
|
|
195 |
|
|
|
196 |
// Überprüfen und Initialisieren des Anfangszustands der Checkboxen
|
|
|
197 |
toggleDivVisibility(reminderCheckbox, reminderDiv);
|
|
|
198 |
|
|
|
199 |
});
|
|
|
200 |
|
3237 |
daniel |
201 |
/* ]]> */</script>
|