Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1854 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen innerhalb des Posts
5
	 */
1899 daniel 6
 
1854 daniel 7
?>
8
 
8053 daniel 9
<style>
6753 daniel 10
 
7902 daniel 11
    #wpsg_mod_productindex_layer { height:20rem; }
12
    #wpsg_mod_productindex_layer select,
13
    #wpsg_mod_productindex_layer input { width:25rem; }
14
    #wpsg_mod_productindex_layer #wpsg_mod_productindex_hideOrder,
15
    #wpsg_mod_productindex_layer #wpsg_mod_productindex_hideViewSelect { width:15px; height:15px; }
16
 
6753 daniel 17
</style>
18
 
6496 thomas 19
<br />
20
 
1854 daniel 21
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productindex_active', __('Seite als Produktseite verwenden', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_active', true)); ?>
22
 
6496 thomas 23
<br />
24
 
6755 thomas 25
<div id="wpsg_mod_productindex_layer" style="display:none; height:20rem;">
1899 daniel 26
 
6755 thomas 27
	<div style="width:50%; float:left;">
6496 thomas 28
 
29
		<?php /* alle Produkte */ ?>
30
		<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_show', __('Produkte', 'wpsg'), $this->view['wpsg_mod_productindex']['arShow'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_show', true)); ?>
31
		<br />
32
 
33
		<?php /* Produktanzahl */ ?>
34
		<?php echo wpsg_drawForm_Input('wpsg_mod_productindex_perPage', __('Pro Seite', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_perPage', true)); ?>
35
		<br />
36
 
37
		<?php /* kommagetrennte Produktauswahl */ ?>
38
		<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_1" style="display:none;">
39
			<?php echo wpsg_drawForm_Input('wpsg_mod_productindex_productids', __('Produktauswahl (Kommagetrennte IDs)', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_productids', true)); ?>
40
			<br />
41
		</div>
42
 
43
		<?php /* Produktgruppenauswahl*/ ?>
7886 karl 44
		<?php if ($this->hasMod('wpsg_mod_productgroups')) { ?>
6496 thomas 45
		<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_2" style="display:none;">
46
			<?php if (sizeof($this->view['wpsg_mod_productindex']['arProductGroups']) <= 0) { ?>
47
				<?php echo wpsg_drawForm_Input('', __('Produktgruppen', 'wpsg'), __('Keine Produktgruppen angelegt.', 'wpsg'), array('text' => true)); ?>
48
			<?php } else { ?>
49
				<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_groups', __('Produktgruppen', 'wpsg'), $this->view['wpsg_mod_productindex']['arProductGroups'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_groups', true), array('multiple' => ((sizeof($this->view['wpsg_mod_productindex']['arProductGroups']) < 5)?sizeof($this->view['wpsg_mod_productindex']['arProductGroups']):5))); ?>
50
			<?php } ?>
51
			<br />
52
		</div>
7886 karl 53
		<?php } ?>
6496 thomas 54
 
55
		<?php /* Produktkategorieauswahl */ ?>
7886 karl 56
		<?php if ($this->hasMod('wpsg_mod_produktartikel')) { ?>
6496 thomas 57
		<div class="wpsg_mod_productindex_layershow wpsg_mod_productindex_layer_3" style="display:none;">
58
			<?php if (sizeof($this->view['wpsg_mod_productindex']['arCategories']) <= 0) { ?>
59
				<?php echo wpsg_drawForm_Input('', __('Kategorien', 'wpsg'), __('Keine Kategorien angelegt.', 'wpsg'), array('text' => true)); ?>
60
			<?php } else { ?>
61
				<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_categories', __('Kategorien', 'wpsg'), $this->view['wpsg_mod_productindex']['arCategories'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_categories', true), array('multiple' => ((sizeof($this->view['wpsg_mod_productindex']['arCategories']) < 5)?sizeof($this->view['wpsg_mod_productindex']['arCategories']):5))); ?>
62
			<?php } ?>
63
			<br />
64
		</div>
7886 karl 65
		<?php } ?>
6496 thomas 66
 
1900 daniel 67
	</div>
6496 thomas 68
 
6755 thomas 69
	<div style="width:50%; float:right;">
6496 thomas 70
 
71
		<?php /* Produkttemplateauswahl list/grid */ ?>
72
		<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_template', __('Template', 'wpsg'), $this->view['wpsg_mod_productindex']['arTemplates'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_template', true), array('noIndex' => true)); ?>
73
 
74
		<br />
75
 
76
		<?php /* Standardsortierauswahl */ ?>
77
		<?php echo wpsg_drawForm_Select('wpsg_mod_productindex_order', __('Standardsortierung', 'wpsg'), $this->view['wpsg_mod_productindex']['arOrder'], get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_order', true)); ?>
78
 
79
		<br />
80
 
81
		<?php /* Sortierauswahl ausblenden */ ?>
82
		<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productindex_hideOrder', __('Sortierungsauswahl ausblenden', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_hideOrder', true)); ?>
83
 
84
		<br />
85
 
86
		<?php /* Ansichtswechsel ausblenden */ ?>
87
		<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productindex_hideViewSelect', __('Ansichtenwechsel ausblenden', 'wpsg'), get_post_meta($this->view['wpsg_mod_productindex']['post_id'], 'wpsg_mod_productindex_hideViewSelect', true)); ?>
88
 
1901 daniel 89
	</div>
6496 thomas 90
 
1854 daniel 91
</div>
92
 
7902 daniel 93
<script>
1854 daniel 94
 
95
	/**
96
	 * Zeigt / Versteckt die Optionen für die Produktübersichtsseite
97
	 */
7902 daniel 98
	function wpsg_mod_productindex_activate() {
99
 
100
		if (jQuery('#wpsg_mod_productindex_active').prop('checked')) {
101
 
1854 daniel 102
			jQuery('#wpsg_mod_productindex_layer').show();
7902 daniel 103
 
104
		} else {
105
 
1854 daniel 106
			jQuery('#wpsg_mod_productindex_layer').hide();
7902 daniel 107
 
1854 daniel 108
		}
109
 
7902 daniel 110
	}
1854 daniel 111
 
7902 daniel 112
	function wpsg_mod_productindex_switchShow() {
1900 daniel 113
 
114
		var show = jQuery('#wpsg_mod_productindex_show').val();
115
 
116
		jQuery('.wpsg_mod_productindex_layershow').hide();
117
		jQuery('.wpsg_mod_productindex_layer_' + show).show();
118
 
7902 daniel 119
	}
1900 daniel 120
 
1854 daniel 121
	jQuery(document).ready(function() {
122
 
1899 daniel 123
		jQuery('#wpsg_mod_productindex_active').bind('change', function() { wpsg_mod_productindex_activate(); } );
1900 daniel 124
		jQuery('#wpsg_mod_productindex_show').bind('change', function() { wpsg_mod_productindex_switchShow(); } );
1854 daniel 125
 
126
		wpsg_mod_productindex_activate();
1900 daniel 127
		wpsg_mod_productindex_switchShow();
1854 daniel 128
 
129
	} );
130
 
7902 daniel 131
</script>