Subversion Repositories wpShopGermany4

Rev

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

<?php 
 
        /*
         * 
         * Template für die Ansicht einer einzelnen Produktgruppe
         * 
         */

        if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
                 
?>
<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 if (sizeof($p['bilder']) > 0) { ?>
                        <?php $image = array_rand($p['bilder']); ?>                     
                        <div class="wpsg_pgruppen_single_list_image">                                                           
                                <a href="<?php echo $p['url'] ?>">
                                        <?php echo wp_get_attachment_image($g['bilder'][$image]['post_id'], 'sto_productimage_555', false, array()); ?>
                                </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>