Subversion Repositories wpShopGermany4

Rev

Rev 3238 | Rev 3240 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?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')); ?>
                        
<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')); ?>
</div>

<br />

<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 __('Bewertungsbutton Bestellabschluss', 'wpsg'); ?></div>
                        <div class="tab" id="tab3"><?php echo __('Bewertungslinks', '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', __('Siegel zwischenspeichern (empfohlen)', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_siegelcache')); ?>
                        <?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_siegeltitle', __('Titel des Siegels', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_siegeltitle')); ?>
                                        
                </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')); ?>
                        <?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_orderdonetitle', __('Text des Links', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_orderdonetitle')); ?>
                        <?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_orderdonelogo', __('Alternative Logo URL', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_orderdonelogo')); ?>
                                         
                        <?php if (wpsg_isSizedString($this->view['siegelURL'])) { ?>
                        <br />
                        <div class="wpsg_hinweis"><?php echo __('Das Siegel Widget muss in einen Widgetbereich eingefügt werden.', 'wpsg'); ?></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="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')); ?>
                        <?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_customermailtitle', __('Text des Links', 'wpsg'), $this->get_option('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')); ?>
                                <?php echo wpsg_drawForm_Input('wpsg_mod_trustedshops_invoicemailtitle', __('Text des Links', 'wpsg'), $this->get_option('wpsg_mod_trustedshops_invoicemailtitle')); ?>
                                
                        <?php } ?>
                                        
                </div>
                
        </div>
</div>

<script type="text/javascript">/* <![CDATA[ */

        jQuery(document).ready(function() {
                
                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>