Subversion Repositories wpShopGermany4

Rev

Rev 6134 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6134 daniel 1
<?php
2
 
3
	/*
4
	 *
5
	 * Template für die Ansicht einer einzelnen Produktgruppe
6
	 *
7
	 */
8
 
9
	if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
6320 daniel 10
 
6134 daniel 11
?>
12
<div class="wpsg_pgruppen_single">
13
	<div class="wpsg_pgruppen_single_produkte_wrap">
14
		<div class="wpsg_pgruppen_single_produkte">
6320 daniel 15
		<?php foreach ((array)$this->view['data']['produkte'] as $p) { ?>
6134 daniel 16
			<?php if (sizeof($p['bilder']) > 0) { ?>
17
			<?php $image = array_rand($p['bilder']); ?>
6320 daniel 18
			<div class="wpsg_pgruppen_single_list_image">
6134 daniel 19
				<a href="<?php echo $p['url'] ?>">
6320 daniel 20
					<?php echo wp_get_attachment_image($g['bilder'][$image]['post_id'], 'sto_productimage_555', false, array()); ?>
6134 daniel 21
				</a>
22
			</div>
23
			<?php } ?>
24
		<?php } ?>
25
		</div>
26
	</div>
27
	<div style="clear:both;"></div>
28
	<div class="wpsg_pgruppen_single_titel"><?php echo $this->view['data']['name']; ?></div>
29
	<?php if ($this->view['data']['infopage'] > 0) { ?>
30
	<div class="wpsg_pgruppen_single_link">
31
		<a href="<?php echo get_permalink($this->view['data']['infopage']); ?>"><?php echo __("Mehr zur Produktgruppe", "wpsg"); ?></a>
32
	</div>
33
	<?php } ?>
34
</div>