3234 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
3237 |
daniel |
4 |
* Tempalte 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">
|
|
|
19 |
<div class="wpsg_admin_box" id="wpsg_tab">
|
|
|
20 |
<div class="head">
|
|
|
21 |
<div class="title">
|
|
|
22 |
<div class="tab" id="tab1"><?php echo __('Trusted Shops Widget', 'wpsg'); ?></div>
|
|
|
23 |
<div class="tab" id="tab2"><?php echo __('Bestellabschluss', 'wpsg'); ?></div>
|
|
|
24 |
<div class="tab" id="tab3"><?php echo __('Bewertungslinks', 'wpsg'); ?></div>
|
|
|
25 |
<div class="tab" id="tab4"><?php echo __('Review Collector', 'wpsg'); ?></div>
|
|
|
26 |
<div class="wpsg_clear"></div>
|
|
|
27 |
</div>
|
3237 |
daniel |
28 |
</div>
|
4428 |
daniel |
29 |
<div class="content">
|
3247 |
daniel |
30 |
|
4428 |
daniel |
31 |
<div id="tabcontent1" class="tabcontent">
|
|
|
32 |
|
|
|
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 |
|
|
|
43 |
</div>
|
3237 |
daniel |
44 |
|
4428 |
daniel |
45 |
<div id="tabcontent2" class="tabcontent">
|
|
|
46 |
|
|
|
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 |
|
|
|
59 |
</div>
|
3237 |
daniel |
60 |
|
4428 |
daniel |
61 |
<div id="tabcontent3" class="tabcontent">
|
|
|
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')) { ?>
|
3237 |
daniel |
73 |
|
4428 |
daniel |
74 |
<br />
|
|
|
75 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_invoicemail', __('Link zur Bewertung in Rechnungsmail', 'wpsg'), array(
|
|
|
76 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
|
|
77 |
'1' => __('Immer anzeigen', 'wpsg'),
|
|
|
78 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
|
|
79 |
), $this->get_option('wpsg_mod_trustedshops_invoicemail'), array('help' => 'wpsg_mod_trustedshops_invoicemail')); ?>
|
|
|
80 |
<?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')); ?>
|
|
|
81 |
|
|
|
82 |
<?php } ?>
|
|
|
83 |
|
|
|
84 |
</div>
|
|
|
85 |
|
|
|
86 |
<div id="tabcontent4" class="tabcontent">
|
|
|
87 |
|
4432 |
daniel |
88 |
<div class="wpsg_form_field">
|
|
|
89 |
<div class="wpsg_form_left">
|
|
|
90 |
<label for="wpsg_mod_trustedshops_reminder"><?php echo __('Erinnerung', 'wpsg'); ?>:</label>
|
|
|
91 |
</div>
|
|
|
92 |
<div class="wpsg_form_right">
|
|
|
93 |
|
|
|
94 |
<input type="hidden" name="wpsg_mod_trustedshops_reminder" value="0">
|
|
|
95 |
<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">
|
|
|
96 |
|
|
|
97 |
<div id="wpsg_mod_trustedshops_reminder_layer" class="wpsg_form_trustedshops_reminderDays">
|
|
|
98 |
|
4428 |
daniel |
99 |
<p><?php echo __('Nach', 'wpsg'); ?></p>
|
|
|
100 |
<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'); ?>">
|
|
|
101 |
<p><?php echo __('Tagen', 'wpsg'); ?></p>
|
4432 |
daniel |
102 |
|
4428 |
daniel |
103 |
</div>
|
4432 |
daniel |
104 |
|
4428 |
daniel |
105 |
</div>
|
4432 |
daniel |
106 |
<div class="wpsg_clear"></div>
|
4428 |
daniel |
107 |
</div>
|
|
|
108 |
|
4432 |
daniel |
109 |
<div class="wpsg_form_field">
|
|
|
110 |
<div class="wpsg_form_left">
|
|
|
111 |
<label for="wpsg_mod_trustedshops_reminder"><?php echo __('Bestellzustände', 'wpsg'); ?>:</label>
|
|
|
112 |
</div>
|
|
|
113 |
<div class="wpsg_form_right">
|
|
|
114 |
|
|
|
115 |
<?php foreach ($this->arStatus as $state_id => $state_label) { ?>
|
|
|
116 |
<label>
|
|
|
117 |
<input type="checkbox" class="checkbox" name="wpsg_mod_trustedshops_state[]" <?php echo ((in_array($state_id, (array)$this->get_option('wpsg_mod_trustedshops_state')))?'checked="checked"':''); ?> value="<?php echo $state_id; ?>" />
|
|
|
118 |
<?php echo $state_label; ?><br />
|
|
|
119 |
</label>
|
|
|
120 |
<?php } ?>
|
|
|
121 |
|
|
|
122 |
</div>
|
|
|
123 |
<div class="wpsg_clear"></div>
|
|
|
124 |
</div>
|
|
|
125 |
|
|
|
126 |
<?php echo wpsg_drawForm_Input('', __('Letzter Export', 'wpsg'), $this->view['lastExport'], array('text' => true)); ?>
|
|
|
127 |
|
4428 |
daniel |
128 |
<br />
|
|
|
129 |
|
|
|
130 |
<div class="wpsg_form_field">
|
|
|
131 |
<div class="wpsg_form_left"> </div>
|
|
|
132 |
<div class="wpsg_form_right wpsg_form_right_unit">
|
5997 |
hartmut |
133 |
<?php $temp = $this->callMod('wpsg_mod_trustedshops', 'getExportData');
|
|
|
134 |
if (wpsg_isSizedArray($temp)) { ?>
|
4432 |
daniel |
135 |
<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>
|
4428 |
daniel |
136 |
<?php } else { ?>
|
|
|
137 |
<p><?php echo __('Derzeit keine Daten zum Export verfügbar.', 'wpsg'); ?></p>
|
|
|
138 |
<?php } ?>
|
|
|
139 |
</div>
|
|
|
140 |
<div class="wpsg_clear"></div>
|
4432 |
daniel |
141 |
</div>
|
4428 |
daniel |
142 |
|
4432 |
daniel |
143 |
<br />
|
|
|
144 |
|
|
|
145 |
<a href="https://www.trustedshops.com/tsb2b/sa/ratings/batchRatingRequest.seam"><?php echo __('Trusted Shops Review Collector', 'wpsg'); ?></a>
|
|
|
146 |
|
4428 |
daniel |
147 |
</div>
|
|
|
148 |
|
3237 |
daniel |
149 |
</div>
|
|
|
150 |
</div>
|
|
|
151 |
</div>
|
|
|
152 |
|
|
|
153 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
154 |
|
|
|
155 |
jQuery(document).ready(function() {
|
4428 |
daniel |
156 |
|
|
|
157 |
jQuery('#wpsg_mod_trustedshops_reminder').bind('change', function() {
|
|
|
158 |
|
|
|
159 |
if (jQuery('#wpsg_mod_trustedshops_reminder').is(':checked'))
|
|
|
160 |
{
|
|
|
161 |
|
|
|
162 |
jQuery('#wpsg_mod_trustedshops_reminder_layer').show(250);
|
|
|
163 |
|
|
|
164 |
}
|
|
|
165 |
else
|
|
|
166 |
{
|
|
|
167 |
|
|
|
168 |
jQuery('#wpsg_mod_trustedshops_reminder_layer').hide(250);
|
|
|
169 |
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
} ).change();
|
3237 |
daniel |
173 |
|
|
|
174 |
jQuery('#wpsg_tab').wpsg_tab( {
|
|
|
175 |
'cookiename': 'wpsg_trustedshop_tab',
|
|
|
176 |
'tab2': function() {
|
|
|
177 |
jQuery('.tablink').show();
|
|
|
178 |
}
|
|
|
179 |
} );
|
|
|
180 |
|
|
|
181 |
jQuery('#wpsg_mod_trustedshops_customerset').bind('change', function() {
|
|
|
182 |
|
|
|
183 |
if (jQuery(this).attr('checked') === true || jQuery(this).attr('checked') == 'checked')
|
|
|
184 |
{
|
|
|
185 |
|
|
|
186 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').show();
|
|
|
187 |
|
|
|
188 |
}
|
|
|
189 |
else
|
|
|
190 |
{
|
|
|
191 |
|
|
|
192 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').hide();
|
|
|
193 |
|
|
|
194 |
}
|
|
|
195 |
|
|
|
196 |
} ).change();
|
|
|
197 |
|
|
|
198 |
} );
|
|
|
199 |
|
|
|
200 |
/* ]]> */</script>
|