<?php

	/**
	 * Dieses Template wird in das Produkttemplate eingebunden und hat die Funktion die Social Media Links zu integrieren
	 */

?>
<?php if ($this->get_option('wpsg_mod_produktartikel_twitter') == '1' || $this->get_option('wpsg_mod_produktartikel_google') == '1' || $this->get_option('wpsg_mod_produktartikel_facebook') == '1') { ?>
<div class="socialshareprivacy" id="socialshareprivacy_<?php echo $this->getTemplateIndex(); ?>"></div>
<script type="text/javascript">

	jQuery(document).ready(function() {
	   
      	if (jQuery('#socialshareprivacy_<?php echo $this->getTemplateIndex(); ?>').length > 0) 
    	{
          
    		jQuery('#socialshareprivacy_<?php echo $this->getTemplateIndex(); ?>').socialSharePrivacy( {
        		'services': {
        			'facebook': {
            			'status': '<?php echo (($this->get_option('wpsg_mod_produktartikel_facebook') == '1')?'on':'off'); ?>',
            			'dummy_img': '<?php echo WPSG_URL_CONTENT.'plugins/wpshopgermany/lib/socialshareprivacy/socialshareprivacy/images/dummy_facebook.png'; ?>'
        			}, 	
    				'twitter': {
    					'status': '<?php echo (($this->get_option('wpsg_mod_produktartikel_twitter') == '1')?'on':'off'); ?>',
    					'dummy_img': '<?php echo WPSG_URL_CONTENT.'plugins/wpshopgermany/lib/socialshareprivacy/socialshareprivacy/images/dummy_twitter.png'; ?>'
					},
					'gplus': {
						'status': '<?php echo (($this->get_option('wpsg_mod_produktartikel_google') == '1')?'on':'off'); ?>',
            			'dummy_img': '<?php echo WPSG_URL_CONTENT.'plugins/wpshopgermany/lib/socialshareprivacy/socialshareprivacy/images/dummy_gplus.png'; ?>'
        			}
        		},
        		'uri': '<?php echo $this->view['data']['url']; ?>',
    			css_path: '<?php echo WPSG_URL_CONTENT; ?>plugins/wpshopgermany/lib/socialshareprivacy/socialshareprivacy/socialshareprivacy.css'    			
			} ); 

    	}
      
    } );
       
 </script>
<?php } ?>