summaryrefslogtreecommitdiff
path: root/views/mods/mod_basketteaser/settings_edit.phtml
blob: 3bc9610bd8c30cb2a14bbefe90cb9a95b5673061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

	/**
	 * Template für die Einstellungen des Warenkorbteaser Moduls
	 */

?>
<?php echo wpsg_drawForm_Select('wpsg_mod_basketteaser_show', __('Anzeige', 'wpsg'), array(0 => __('Unter dem Warenkorb', 'wpsg'), 1 => __('Im Warenkorb', 'wpsg')), $this->get_option('wpsg_mod_basketteaser_show'), array('help' => 'wpsg_mod_basketteaser_show')); ?>
<?php echo wpsg_drawForm_Select('wpsg_mod_basketteaser_template', __('Template für die Produkte im Warenkorb', 'wpsg'), $this->view['templates'], $this->get_option('wpsg_mod_basketteaser_template'), array('help' => 'wpsg_mod_basketteaser_template'))?>

<script type="text/javascript">

	function wpsg_mod_basketteaser_switchshow()
	{

		if (jQuery('#wpsg_mod_basketteaser_show').val() == '0') jQuery('#wpsg_mod_basketteaser_template').parent().parent().show();
		else jQuery('#wpsg_mod_basketteaser_template').parent().parent().hide();
		
	}

	jQuery(document).ready(function() {

		jQuery('#wpsg_mod_basketteaser_show').bind('change', function() { wpsg_mod_basketteaser_switchshow(); } );
		
		wpsg_mod_basketteaser_switchshow();
		
	} );

</script>