summaryrefslogtreecommitdiff
path: root/views/mods/mod_productgroups/show.phtml
blob: 0591381f45df6c44b50a42d07100bd296b851008 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php 
 
	/*
	 * 
	 * Template für die Ansicht einer einzelnen Produktgruppe
	 * 
	 */

	if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
		
	// Dimension der Bilder
	$picW = 200;
	$picH = 200;	
	$picMode = 'c';

	//$p['produktattribute'][$index]['name'];		Der Name des Attributs
	//$p['produktattribute'][$index]['value'];		Der Wert des Attributs
	//$index ist die Nummer des Produktattributs
	
	//Ausgabemöglichkeit bei aktiviertem Debug Modus
	//wpsg_debug($this->view['data']);	
	
?>
<div class="wpsg_pgruppen_single">
	<div class="wpsg_pgruppen_single_produkte_wrap">
		<div class="wpsg_pgruppen_single_produkte">
		<?php foreach ((array)$this->view['data']['produkte'] as $p) { ?>
		<?php //wpsg_debug($p) ?>
			<?php if (sizeof($p['bilder']) > 0) { ?>
			<?php $image = array_rand($p['bilder']); ?>			
			<div class="wpsg_pgruppen_single_list_image">
				<?php $image_path = $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($p['id'], $p['bilder'][$image], $picW, $picH, $picMode)) ?>				
				<a href="<?php echo $p['url'] ?>">
					<img src="<?php echo $image_path; ?>" alt="<?php echo $p['name']; ?>"/>
				</a>
			</div>
			<?php } ?>
		<?php } ?>
		</div>
	</div>
	<div style="clear:both;"></div>
	<div class="wpsg_pgruppen_single_titel"><?php echo $this->view['data']['name']; ?></div>
	<?php if ($this->view['data']['infopage'] > 0) { ?>	
	<div class="wpsg_pgruppen_single_link">
		<a href="<?php echo get_permalink($this->view['data']['infopage']); ?>"><?php echo __("Mehr zur Produktgruppe", "wpsg"); ?></a>
	</div>
	<?php } ?>	
</div>