diff options
Diffstat (limited to 'views/mods/mod_trustedshops')
| -rw-r--r-- | views/mods/mod_trustedshops/checkout_customer_inner.phtml | 12 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/gfx/rate_now_button_de.png | bin | 0 -> 4036 bytes | |||
| -rw-r--r-- | views/mods/mod_trustedshops/gfx/siegel.gif | bin | 0 -> 3150 bytes | |||
| -rw-r--r-- | views/mods/mod_trustedshops/invoicemail.phtml | 10 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/invoicemail_html.phtml | 11 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/mail.phtml | 15 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/mail_aftercalculation.phtml | 10 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/mail_aftercalculation_html.phtml | 11 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/mail_html.phtml | 17 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/order_done.phtml | 17 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/order_view_sidebar.phtml | 28 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/settings_edit.phtml | 199 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/widget.phtml | 51 | ||||
| -rw-r--r-- | views/mods/mod_trustedshops/widget_form.phtml | 30 |
14 files changed, 411 insertions, 0 deletions
diff --git a/views/mods/mod_trustedshops/checkout_customer_inner.phtml b/views/mods/mod_trustedshops/checkout_customer_inner.phtml new file mode 100644 index 0000000..ae4d94a --- /dev/null +++ b/views/mods/mod_trustedshops/checkout_customer_inner.phtml @@ -0,0 +1,12 @@ +<?php
+
+ /**
+ * Template für die Abfrage ob der Kunde an der Bewertung teilnehmen möchte im Checkout
+ */
+
+?>
+<div class="wpsg_checkoutblock">
+ <label for="wpsg_mod_trustedshops_set">
+ <input class="wpsg_checkout" type="checkbox" id="wpsg_mod_trustedshops_set" name="wpsg[checkout][wpsg_mod_trustedshops_set]" value="1" <?php echo (($this->view['basket']['checkout']['wpsg_mod_trustedshops_set'] == '1' || ($this->get_option('wpsg_mod_trustedshops_customerset_preset') == '1' && !isset($this->view['basket']['checkout']['wpsg_mod_trustedshops_set'])))?'checked="checked"':''); ?> /><?php echo __('Ich bin damit einverstanden, eine separate und unverbindliche Bewertungsaufforderung (<a href="https://www.trustedshops.com/" target="_blank">Trusted Shops</a>) per Mail zu erhalten.', 'wpsg'); ?>
+ </label>
+</div>
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/gfx/rate_now_button_de.png b/views/mods/mod_trustedshops/gfx/rate_now_button_de.png Binary files differnew file mode 100644 index 0000000..b05afcc --- /dev/null +++ b/views/mods/mod_trustedshops/gfx/rate_now_button_de.png diff --git a/views/mods/mod_trustedshops/gfx/siegel.gif b/views/mods/mod_trustedshops/gfx/siegel.gif Binary files differnew file mode 100644 index 0000000..6d264d6 --- /dev/null +++ b/views/mods/mod_trustedshops/gfx/siegel.gif diff --git a/views/mods/mod_trustedshops/invoicemail.phtml b/views/mods/mod_trustedshops/invoicemail.phtml new file mode 100644 index 0000000..9e2261e --- /dev/null +++ b/views/mods/mod_trustedshops/invoicemail.phtml @@ -0,0 +1,10 @@ +<?php
+
+ /**
+ * Template für den Trusted Shops Bewertungs Link in der Rechnungs - Email
+ */
+
+?>
+<?php echo $this->get_option('wpsg_mod_trustedshops_invoicemailtitle'); ?>
+https://www.trustedshops.de/bewertung/bewerten_<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>.html&buyerEmail=<?php echo urlencode(base64_encode($this->view['customer']['email'])); ?>&shopOrderID=<?php echo urlencode(base64_encode($this->view['order']['onr'])); ?>
+
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/invoicemail_html.phtml b/views/mods/mod_trustedshops/invoicemail_html.phtml new file mode 100644 index 0000000..38235a1 --- /dev/null +++ b/views/mods/mod_trustedshops/invoicemail_html.phtml @@ -0,0 +1,11 @@ +<?php
+
+ /**
+ * Template für den Trusted Shops Bewertungs Link in der Rechnungs - E-mail (HTML)
+ */
+
+?>
+<p>
+ <a href="https://www.trustedshops.de/bewertung/bewerten_<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>.html&buyerEmail=<?php echo urlencode(base64_encode($this->view['customer']['email'])); ?>&shopOrderID=<?php echo urlencode(base64_encode($this->view['order']['onr'])); ?>"><?php echo $this->get_option('wpsg_mod_trustedshops_invoicemailtitle'); ?></a>
+</p>
+
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/mail.phtml b/views/mods/mod_trustedshops/mail.phtml new file mode 100644 index 0000000..8177a8a --- /dev/null +++ b/views/mods/mod_trustedshops/mail.phtml @@ -0,0 +1,15 @@ +<?php
+
+ /**
+ * Template für die Mail an den Kunden, die manuell aus der Bestellansicht versendet werden kann
+ */
+
+?><?php echo wpsg_translate(__('Hallo #1# #2#,', 'wpsg'), $this->view['customer']['vname'], $this->view['customer']['name']); ?>
+
+<?php echo __('wir hoffen Sie waren mit dem Bestellablauf zufrieden, um unseren Service und unsere Dienstleistung zu verbessern können Sie uns über Trusted Shops bewerten. Dies können Sie kostenlos unter folgendem Link durchführen: ', 'wpsg')?>
+
+https://www.trustedshops.de/bewertung/bewerten_<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>.html&buyerEmail=<?php echo urlencode(base64_encode($this->view['customer']['email'])); ?>&shopOrderID=<?php echo urlencode(base64_encode($this->view['order']['onr'])); ?>
+
+<?php echo __("Mit freundlichen Grüßen", "wpsg"); ?>
+
+<?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?>
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/mail_aftercalculation.phtml b/views/mods/mod_trustedshops/mail_aftercalculation.phtml new file mode 100644 index 0000000..ed1faa0 --- /dev/null +++ b/views/mods/mod_trustedshops/mail_aftercalculation.phtml @@ -0,0 +1,10 @@ +<?php
+
+ /**
+ * Template für die Integration des Bewertungslinkes in die Kundenmail
+ */
+
+
+?><?php echo $this->get_option('wpsg_mod_trustedshops_customermailtitle'); ?>
+https://www.trustedshops.de/bewertung/bewerten_<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>.html&buyerEmail=<?php echo urlencode(base64_encode($this->view['customer']['email'])); ?>&shopOrderID=<?php echo urlencode(base64_encode($this->view['order']['onr'])); ?>
+
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/mail_aftercalculation_html.phtml b/views/mods/mod_trustedshops/mail_aftercalculation_html.phtml new file mode 100644 index 0000000..f0b0a05 --- /dev/null +++ b/views/mods/mod_trustedshops/mail_aftercalculation_html.phtml @@ -0,0 +1,11 @@ +<?php
+
+ /**
+ * Template für die Integration des Bewertungslinkes in die Kundenmail
+ */
+
+
+?>
+<p>
+ <a href="https://www.trustedshops.de/bewertung/bewerten_<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>.html&buyerEmail=<?php echo urlencode(base64_encode($this->view['customer']['email'])); ?>&shopOrderID=<?php echo urlencode(base64_encode($this->view['order']['onr'])); ?>"><?php echo __($this->get_option('wpsg_mod_trustedshops_customermailtitle'), 'wpsg'); ?></a>
+</p>
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/mail_html.phtml b/views/mods/mod_trustedshops/mail_html.phtml new file mode 100644 index 0000000..6d5157c --- /dev/null +++ b/views/mods/mod_trustedshops/mail_html.phtml @@ -0,0 +1,17 @@ +<?php
+
+ /**
+ * Template für die Mail an den Kunden, die manuell aus der Bestellansicht versendet werden kann (HTML)
+ */
+
+?><p><?php echo wpsg_translate(__('Hallo #1# #2#,', 'wpsg'), $this->view['customer']['vname'], $this->view['customer']['name']); ?></p>
+
+<p><?php echo __('wir hoffen Sie waren mit dem Bestellablauf zufrieden, um unseren Service und unsere Dienstleistung zu verbessern können Sie uns über Trusted Shops bewerten. Dies können Sie kostenlos unter folgendem Link durchführen: ', 'wpsg')?></p>
+
+<p>
+ <a href="https://www.trustedshops.de/bewertung/bewerten_<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>.html&buyerEmail=<?php echo urlencode(base64_encode($this->view['customer']['email'])); ?>&shopOrderID=<?php echo urlencode(base64_encode($this->view['order']['onr'])); ?>"><?php echo __('Bewertung durchführen', 'wpsg'); ?></a>
+</p>
+
+<p><?php echo __("Mit freundlichen Grüßen", "wpsg"); ?></p>
+
+<p><?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?></p>
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/order_done.phtml b/views/mods/mod_trustedshops/order_done.phtml new file mode 100644 index 0000000..9b761ff --- /dev/null +++ b/views/mods/mod_trustedshops/order_done.phtml @@ -0,0 +1,17 @@ +<?php
+
+ /**
+ * Template für die Einbindung des Trusted Shops Bewertungs Links nach Bestellabschluß
+ */
+
+?>
+
+<?php if ($this->view['wpsg_mod_trustedshops']['vote'] == '1' || $this->get_option('wpsg_mod_trustedshops_warranty') == '1') { ?>
+<div id="trustedShopsCheckout" style="display: none;">
+ <span id="tsCheckoutOrderNr"><?php echo wpsg_hspc($this->view['order']['onr']); ?></span>
+ <span id="tsCheckoutBuyerEmail"><?php echo wpsg_hspc($this->view['basket']['checkout']['email']); ?></span>
+ <span id="tsCheckoutOrderAmount"><?php echo wpsg_hspc($this->view['basket']['sum']['preis_gesamt_brutto']); ?></span>
+ <span id="tsCheckoutOrderCurrency"><?php echo wpsg_hspc($this->get_option('wpsg_currency')); ?></span>
+ <span id="tsCheckoutOrderPaymentType"><?php echo wpsg_hspc($this->arPayment[$this->view['basket']['checkout']['payment']]['name']); ?></span>
+</div>
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/order_view_sidebar.phtml b/views/mods/mod_trustedshops/order_view_sidebar.phtml new file mode 100644 index 0000000..9675bef --- /dev/null +++ b/views/mods/mod_trustedshops/order_view_sidebar.phtml @@ -0,0 +1,28 @@ +<?php
+
+ /**
+ * Template für die Trusted Shops Integration in die Bestellverwaltung
+ */
+
+?>
+<div class="postbox" id="wpsg_trustedshops">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Trusted Shops', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+
+ <?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_set', __('Einwilligung', 'wpsg'), (($this->view['data']['wpsg_mod_trustedshops_set'] == '1')?__('Ja', 'wpsg'):__('Nein', 'wpsg')), array('text' => true, 'help' => 'wpsg_mod_trustedshops_set')); ?>
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+
+ </div>
+ <div class="wpsg_form_right">
+ <a onclick="if (!confirm('<?php echo __('Der Kunde erhält eine Mail mit einem Link zur Bewertung der Bestellung. Sind Sie sich sicher?', 'wpsg'); ?>')) return false;" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&noheader=1&action=ajax&mod=wpsg_mod_trustedshops&edit_id=<?php echo $this->view['data']['id']; ?>&do=mail"><?php echo __('E-Mail mit Bewertungslink senden', 'wpsg'); ?></a>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ </div>
+</div>
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/settings_edit.phtml b/views/mods/mod_trustedshops/settings_edit.phtml new file mode 100644 index 0000000..3a89a03 --- /dev/null +++ b/views/mods/mod_trustedshops/settings_edit.phtml @@ -0,0 +1,199 @@ +<?php
+
+ /**
+ * Tempalte für die Einstellungen des Trusted Shops Moduls
+ */
+
+?>
+
+<?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_shopid', __('Shop-ID', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_shopid')); ?>
+<?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')); ?>
+
+<div id="wpsg_mod_trustedshops_customerset_preset_layer">
+ <?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')); ?>
+</div>
+
+<br />
+
+<div class="wpsg_mod_protectedshops">
+ <div class="wpsg_admin_box" id="wpsg_tab">
+ <div class="head">
+ <div class="title">
+ <div class="tab" id="tab1"><?php echo __('Trusted Shops Widget', 'wpsg'); ?></div>
+ <div class="tab" id="tab2"><?php echo __('Bestellabschluss', 'wpsg'); ?></div>
+ <div class="tab" id="tab3"><?php echo __('Bewertungslinks', 'wpsg'); ?></div>
+ <div class="tab" id="tab4"><?php echo __('Review Collector', 'wpsg'); ?></div>
+ <div class="wpsg_clear"></div>
+ </div>
+ </div>
+ <div class="content">
+
+ <div id="tabcontent1" class="tabcontent">
+
+ <?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')); ?>
+ <?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')); ?>
+
+ <?php if (wpsg_isSizedString($this->view['siegelURL'])) { ?>
+ <br />
+ <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 />
+ <?php echo __('Vorschau:', 'wpsg'); ?><br />
+ <img class="bewertung" alt="<?php echo wpsg_hspc($this->get_option('wpsg_mod_trustedshops_siegeltitle')); ?>" border="0" src="<?php echo $this->view['siegelURL']; ?>"/>
+ <?php } ?>
+
+ </div>
+
+ <div id="tabcontent2" class="tabcontent">
+
+ <?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_orderdone', __('Link zur Bewertung', 'wpsg'), array(
+ '0' => __('Nicht anzeigen', 'wpsg'),
+ '1' => __('Immer anzeigen', 'wpsg'),
+ '2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
+ ), $this->get_option('wpsg_mod_trustedshops_orderdone'), array('help' => 'wpsg_mod_trustedshops_orderdone')); ?>
+ <?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')); ?>
+ <?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')); ?>
+
+ <br />
+
+ <?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')); ?>
+
+ </div>
+
+ <div id="tabcontent3" class="tabcontent">
+
+ <?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_customermail', __('Link zur Bewertung in Kundenmail nach Bestellabschluss', 'wpsg'), array(
+ '0' => __('Nicht anzeigen', 'wpsg'),
+ '1' => __('Immer anzeigen', 'wpsg'),
+ '2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
+ ), $this->get_option('wpsg_mod_trustedshops_customermail'), array('help' => 'wpsg_mod_trustedshops_customermail')); ?>
+ <?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')); ?>
+
+ <br />
+
+ <?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
+
+ <br />
+ <?php echo wpsg_drawForm_Select('wpsg_mod_trustedshops_invoicemail', __('Link zur Bewertung in Rechnungsmail', 'wpsg'), array(
+ '0' => __('Nicht anzeigen', 'wpsg'),
+ '1' => __('Immer anzeigen', 'wpsg'),
+ '2' => __('Nur anzeigen, wenn Kunde bewerten möchte', 'wpsg')
+ ), $this->get_option('wpsg_mod_trustedshops_invoicemail'), array('help' => 'wpsg_mod_trustedshops_invoicemail')); ?>
+ <?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')); ?>
+
+ <?php } ?>
+
+ </div>
+
+ <div id="tabcontent4" class="tabcontent">
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label for="wpsg_mod_trustedshops_reminder"><?php echo __('Erinnerung', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+
+ <input type="hidden" name="wpsg_mod_trustedshops_reminder" value="0">
+ <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">
+
+ <div id="wpsg_mod_trustedshops_reminder_layer" class="wpsg_form_trustedshops_reminderDays">
+
+ <p><?php echo __('Nach', 'wpsg'); ?></p>
+ <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'); ?>">
+ <p><?php echo __('Tagen', 'wpsg'); ?></p>
+
+ </div>
+
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label for="wpsg_mod_trustedshops_reminder"><?php echo __('Bestellzustände', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+
+ <?php foreach ($this->arStatus as $state_id => $state_label) { ?>
+ <label>
+ <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; ?>" />
+ <?php echo $state_label; ?><br />
+ </label>
+ <?php } ?>
+
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+
+ <?php echo wpsg_drawForm_Input('', __('Letzter Export', 'wpsg'), $this->view['lastExport'], array('text' => true)); ?>
+
+ <br />
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left"> </div>
+ <div class="wpsg_form_right wpsg_form_right_unit">
+ <?php if (wpsg_isSizedArray($this->callMod('wpsg_mod_trustedshops', 'getExportData'))) { ?>
+ <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>
+ <?php } else { ?>
+ <p><?php echo __('Derzeit keine Daten zum Export verfügbar.', 'wpsg'); ?></p>
+ <?php } ?>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+
+ <br />
+
+ <a href="https://www.trustedshops.com/tsb2b/sa/ratings/batchRatingRequest.seam"><?php echo __('Trusted Shops Review Collector', 'wpsg'); ?></a>
+
+ </div>
+
+ </div>
+ </div>
+</div>
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_mod_trustedshops_reminder').bind('change', function() {
+
+ if (jQuery('#wpsg_mod_trustedshops_reminder').is(':checked'))
+ {
+
+ jQuery('#wpsg_mod_trustedshops_reminder_layer').show(250);
+
+ }
+ else
+ {
+
+ jQuery('#wpsg_mod_trustedshops_reminder_layer').hide(250);
+
+ }
+
+ } ).change();
+
+ jQuery('#wpsg_tab').wpsg_tab( {
+ 'cookiename': 'wpsg_trustedshop_tab',
+ 'tab2': function() {
+ jQuery('.tablink').show();
+ }
+ } );
+
+ jQuery('#wpsg_mod_trustedshops_customerset').bind('change', function() {
+
+ if (jQuery(this).attr('checked') === true || jQuery(this).attr('checked') == 'checked')
+ {
+
+ jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').show();
+
+ }
+ else
+ {
+
+ jQuery('#wpsg_mod_trustedshops_customerset_preset_layer').hide();
+
+ }
+
+ } ).change();
+
+ } );
+
+/* ]]> */</script>
\ No newline at end of file diff --git a/views/mods/mod_trustedshops/widget.phtml b/views/mods/mod_trustedshops/widget.phtml new file mode 100644 index 0000000..b7057ec --- /dev/null +++ b/views/mods/mod_trustedshops/widget.phtml @@ -0,0 +1,51 @@ +<?php
+
+ /**
+ * Template für die Ausgabe des Trusted Shops Widgets im Frontend
+ */
+
+?>
+
+<?php if ($this->view['settings']['wpsg_mod_trustedshops_siegel'] == '1') { ?>
+<div class="wpsg_mod_trustedshops_siegel">
+
+</div>
+<?php } ?>
+
+<?php if ($this->view['settings']['wpsg_mod_trustedshops_vote'] == '1') { ?>
+<div class="wpsg_mod_trustedshops_vote">
+ <a target="_blank" href="https://www.trustedshops.de/bewertung/info_<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>.html" title="<?php echo wpsg_hspc($this->get_option('wpsg_mod_trustedshops_siegeltitle')); ?>">
+ <img class="bewertung" alt="<?php echo wpsg_hspc($this->get_option('wpsg_mod_trustedshops_siegeltitle')); ?>" border="0" src="<?php echo $this->view['siegelURL']; ?>"/>
+ </a>
+</div>
+<?php } ?>
+
+<?php if ($this->view['settings']['wpsg_mod_trustedshops_badge'] == '1') { ?>
+<script type="text/javascript">/* <![CDATA[ */
+
+ (function () {
+ var _tsid = '<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>';
+ _tsConfig = {
+ 'yOffset': '0', /* offset from page bottom */
+ 'variant': 'reviews', /* text, default, small, reviews, custom, custom_reviews */
+ 'customElementId': '', /* required for variants custom and custom_reviews */
+ 'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */
+ 'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */
+ 'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */
+ 'disableResponsive': 'false', /* deactivate responsive behaviour */
+ 'disableTrustbadge': 'false', /* deactivate trustbadge */
+ 'trustCardTrigger': 'mouseenter' /* set to 'click' if you want the trustcard to be opened on click instead */
+ };
+ var _ts = document.createElement('script');
+ _ts.type = 'text/javascript';
+ _ts.charset = 'utf-8';
+ _ts.async = true;
+ _ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js';
+ var __ts = document.getElementsByTagName('script')[0];
+ __ts.parentNode.insertBefore(_ts, __ts);
+ })();
+
+/* ]]> */</script>
+<noscript><a href="https://www.trustedshops.de/shop/certificate.php?shop_id=<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>"><img title="<?php echo __('Klicken Sie auf das Gütesiegel, um die Gültigkeit zu prüfen!', 'wpsg'); ?>" src="//widgets.trustedshops.com/images/badge.png" style="position:fixed;bottom:0;right:0;" /></a></noscript>
+ <?php } ?>
+
diff --git a/views/mods/mod_trustedshops/widget_form.phtml b/views/mods/mod_trustedshops/widget_form.phtml new file mode 100644 index 0000000..f02e326 --- /dev/null +++ b/views/mods/mod_trustedshops/widget_form.phtml @@ -0,0 +1,30 @@ +<?php
+
+ /**
+ * Template für das Trusted Shops Widget im Backend
+ */
+
+?>
+
+<label>
+ <input type="checkbox" value="1" <?php echo (($this->view['wpsg_mod_trustedshops_vote'] == '1')?'checked="checked"':''); ?> name="<?php echo $this->view['widget']->get_field_name('wpsg_mod_trustedshops_vote'); ?>" id="<?php echo $this->view['widget']->get_field_id('wpsg_mod_trustedshops_vote'); ?>" /> <?php echo __('Bewertungen anzeigen', 'wpsg'); ?>
+ <a class="wpsg_form_help" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_mod_trustedshops_vote" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_mod_trustedshops_vote"></a><br />
+</label>
+<label>
+ <input type="checkbox" value="1" <?php echo (($this->view['wpsg_mod_trustedshops_badge'] == '1')?'checked="checked"':''); ?> name="<?php echo $this->view['widget']->get_field_name('wpsg_mod_trustedshops_badge'); ?>" id="<?php echo $this->view['widget']->get_field_id('wpsg_mod_trustedshops_badge'); ?>" /> <?php echo __('Badge anzeigen', 'wpsg'); ?>
+ <a class="wpsg_form_help" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_mod_trustedshops_badge" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=wpsg_mod_trustedshops_vote"></a><br />
+</label>
+
+<br />
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg_form_help').tipTip();
+
+ } );
+
+/* ]]> */</script>
+
+<?php echo wpsg_translate(__('Die weitere Konfiguration des Widgets erfolgt in den <a href="#1#">Moduleinstellungen.</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_trustedshops'); ?>
\ No newline at end of file |
