Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3234 daniel 1
<?php
2
 
3
	/**
3237 daniel 4
	 * Template für die Ausgabe des Trusted Shops Widgets im Frontend
3234 daniel 5
	 */
6
 
7
?>
3244 daniel 8
 
5639 daniel 9
<?php if ($this->view['widget_settings']['wpsg_mod_trustedshops_siegel'] == '1') { ?>
3244 daniel 10
<div class="wpsg_mod_trustedshops_siegel">
11
 
12
</div>
13
<?php } ?>
14
 
5639 daniel 15
<?php if ($this->view['widget_settings']['wpsg_mod_trustedshops_vote'] == '1') { ?>
3244 daniel 16
<div class="wpsg_mod_trustedshops_vote">
3243 daniel 17
	<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')); ?>">
18
		<img class="bewertung" alt="<?php echo wpsg_hspc($this->get_option('wpsg_mod_trustedshops_siegeltitle')); ?>" border="0" src="<?php echo $this->view['siegelURL']; ?>"/>
19
	</a>
3244 daniel 20
</div>
21
<?php } ?>
22
 
5639 daniel 23
<?php if ($this->view['widget_settings']['wpsg_mod_trustedshops_badge'] == '1') { ?>
3244 daniel 24
<script type="text/javascript">/* <![CDATA[ */
25
 
26
    (function () {
27
    var _tsid = '<?php echo $this->get_option('wpsg_mod_trustedshops_shopid'); ?>';
28
    _tsConfig = {
4866 roger 29
    	      'yOffset': '0', /* offset from page bottom */
30
    	      'variant': 'reviews', /* text, default, small, reviews, custom, custom_reviews */
31
    	      'customElementId': '', /* required for variants custom and custom_reviews */
32
    	      'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */
33
    	      'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */
34
    	      'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */
35
    	      'disableResponsive': 'false', /* deactivate responsive behaviour */
36
    	      'disableTrustbadge': 'false', /* deactivate trustbadge */
37
    	      'trustCardTrigger': 'mouseenter' /* set to 'click' if you want the trustcard to be opened on click instead */
3244 daniel 38
    };
39
    var _ts = document.createElement('script');
40
    _ts.type = 'text/javascript';
4866 roger 41
    _ts.charset = 'utf-8';
3244 daniel 42
    _ts.async = true;
43
    _ts.src = '//widgets.trustedshops.com/js/' + _tsid + '.js';
44
    var __ts = document.getElementsByTagName('script')[0];
45
    __ts.parentNode.insertBefore(_ts, __ts);
46
    })();
47
 
48
/* ]]> */</script>
49
<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>
50
 <?php } ?>
51