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">
|
6005 |
hartmut |
20 |
|
|
|
21 |
<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"><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="#tab4" aria-controls="messages" role="tab" data-toggle="tab"><?php echo __('Review Collector', 'wpsg'); ?></a></li>
|
|
|
26 |
</ul>
|
|
|
27 |
<div class="tab-content">
|
|
|
28 |
<div id="tab1" role="tabpanel" class="tab-pane active" >
|
4428 |
daniel |
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')); ?>
|
|
|
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 |
|
|
|
33 |
<?php if (wpsg_isSizedString($this->view['siegelURL'])) { ?>
|
|
|
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 />
|
|
|
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']; ?>"/>
|
|
|
38 |
<?php } ?>
|
|
|
39 |
|
6005 |
hartmut |
40 |
</div>
|
3237 |
daniel |
41 |
|
6005 |
hartmut |
42 |
<div id="tab2" role="tabpanel" class="tab-pane" >
|
4428 |
daniel |
43 |
|
|
|
44 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_orderdone', __('Link zur Bewertung', 'wpsg'), array(
|
|
|
45 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
|
|
46 |
'1' => __('Immer anzeigen', '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')); ?>
|
|
|
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')); ?>
|
|
|
51 |
|
|
|
52 |
<br />
|
|
|
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')); ?>
|
|
|
55 |
|
6005 |
hartmut |
56 |
</div>
|
3237 |
daniel |
57 |
|
6005 |
hartmut |
58 |
<div id="tab3" role="tabpanel" class="tab-pane" >
|
4428 |
daniel |
59 |
|
|
|
60 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_customermail', __('Link zur Bewertung in Kundenmail nach Bestellabschluss', 'wpsg'), array(
|
3237 |
daniel |
61 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
|
|
62 |
'1' => __('Immer anzeigen', 'wpsg'),
|
|
|
63 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
4428 |
daniel |
64 |
), $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')); ?>
|
3237 |
daniel |
66 |
|
4428 |
daniel |
67 |
<br />
|
|
|
68 |
|
|
|
69 |
<?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
|
3237 |
daniel |
70 |
|
4428 |
daniel |
71 |
<br />
|
|
|
72 |
<?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_invoicemail', __('Link zur Bewertung in Rechnungsmail', 'wpsg'), array(
|
|
|
73 |
'0' => __('Nicht anzeigen', 'wpsg'),
|
|
|
74 |
'1' => __('Immer anzeigen', 'wpsg'),
|
|
|
75 |
'2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
|
|
|
76 |
), $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 |
|
|
|
79 |
<?php } ?>
|
|
|
80 |
|
6005 |
hartmut |
81 |
</div>
|
4428 |
daniel |
82 |
|
6005 |
hartmut |
83 |
<div id="tab4" role="tabpanel" class="tab-pane" >
|
|
|
84 |
|
|
|
85 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
4432 |
daniel |
86 |
<input type="hidden" name="wpsg_mod_trustedshops_reminder" value="0">
|
|
|
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 |
|
|
|
89 |
<div id="wpsg_mod_trustedshops_reminder_layer" class="wpsg_form_trustedshops_reminderDays">
|
|
|
90 |
|
4428 |
daniel |
91 |
<p><?php echo __('Nach', 'wpsg'); ?></p>
|
|
|
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 |
<p><?php echo __('Tagen', 'wpsg'); ?></p>
|
4432 |
daniel |
94 |
|
4428 |
daniel |
95 |
</div>
|
6005 |
hartmut |
96 |
|
|
|
97 |
<?php echo wpsg_drawForm_TextEnd(__('Erinnerung', 'wpsg'), array('noP' => true)); ?>
|
|
|
98 |
|
|
|
99 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
100 |
<?php foreach ($this->arStatus as $state_id => $state_label) { ?>
|
|
|
101 |
<?php
|
|
|
102 |
$arr1 = $this->get_option('wpsg_mod_trustedshops_state');
|
|
|
103 |
$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'),
|
|
|
105 |
$chk, array('help1' => 'wpsg_shippay_mwstland',
|
|
|
106 |
'value' => wpsg_hspc($state_id),
|
|
|
107 |
'noHidden' => true,
|
|
|
108 |
'fullWidth' => true
|
|
|
109 |
));
|
|
|
110 |
?>
|
|
|
111 |
<br />
|
|
|
112 |
<?php } ?>
|
|
|
113 |
|
|
|
114 |
<?php echo wpsg_drawForm_TextEnd(__('Bestellzustände', 'wpsg'), array('noP' => true)); ?>
|
|
|
115 |
|
4428 |
daniel |
116 |
|
4432 |
daniel |
117 |
|
|
|
118 |
<?php echo wpsg_drawForm_Input('', __('Letzter Export', 'wpsg'), $this->view['lastExport'], array('text' => true)); ?>
|
|
|
119 |
|
4428 |
daniel |
120 |
<br />
|
|
|
121 |
|
|
|
122 |
<div class="wpsg_form_field">
|
|
|
123 |
<div class="wpsg_form_left"> </div>
|
|
|
124 |
<div class="wpsg_form_right wpsg_form_right_unit">
|
5997 |
hartmut |
125 |
<?php $temp = $this->callMod('wpsg_mod_trustedshops', 'getExportData');
|
|
|
126 |
if (wpsg_isSizedArray($temp)) { ?>
|
4432 |
daniel |
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>
|
4428 |
daniel |
128 |
<?php } else { ?>
|
|
|
129 |
<p><?php echo __('Derzeit keine Daten zum Export verfügbar.', 'wpsg'); ?></p>
|
|
|
130 |
<?php } ?>
|
|
|
131 |
</div>
|
|
|
132 |
<div class="wpsg_clear"></div>
|
4432 |
daniel |
133 |
</div>
|
4428 |
daniel |
134 |
|
4432 |
daniel |
135 |
<br />
|
|
|
136 |
|
|
|
137 |
<a href="https://www.trustedshops.com/tsb2b/sa/ratings/batchRatingRequest.seam"><?php echo __('Trusted Shops Review Collector', 'wpsg'); ?></a>
|
|
|
138 |
|
6005 |
hartmut |
139 |
</div>
|
4428 |
daniel |
140 |
|
3237 |
daniel |
141 |
</div>
|
|
|
142 |
</div>
|
|
|
143 |
|
|
|
144 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
145 |
|
|
|
146 |
jQuery(document).ready(function() {
|
4428 |
daniel |
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();
|
3237 |
daniel |
164 |
|
|
|
165 |
jQuery('#wpsg_tab').wpsg_tab( {
|
|
|
166 |
'cookiename': 'wpsg_trustedshop_tab',
|
|
|
167 |
'tab2': function() {
|
|
|
168 |
jQuery('.tablink').show();
|
|
|
169 |
}
|
|
|
170 |
} );
|
|
|
171 |
|
|
|
172 |
jQuery('#wpsg_mod_trustedshops_customerset').bind('change', function() {
|
|
|
173 |
|
|
|
174 |
if (jQuery(this).attr('checked') === true || jQuery(this).attr('checked') == 'checked')
|
|
|
175 |
{
|
|
|
176 |
|
|
|
177 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').show();
|
|
|
178 |
|
|
|
179 |
}
|
|
|
180 |
else
|
|
|
181 |
{
|
|
|
182 |
|
|
|
183 |
jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').hide();
|
|
|
184 |
|
|
|
185 |
}
|
|
|
186 |
|
|
|
187 |
} ).change();
|
|
|
188 |
|
|
|
189 |
} );
|
|
|
190 |
|
|
|
191 |
/* ]]> */</script>
|