summaryrefslogtreecommitdiff
path: root/views/mods/mod_productgroups/show.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-03-16 10:46:26 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-03-16 10:46:26 +0000
commita59b1cdd6fc3c3e6d84af40443f2d83d6055ec8d (patch)
tree6f1439e29e845a505cfaa1e4b53bf42de5533490 /views/mods/mod_productgroups/show.phtml
parent964fe0b9fd9e32646ab8b5b5ae1e5102b2bbeeb8 (diff)
- Produktgruppen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6134 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productgroups/show.phtml')
-rw-r--r--views/mods/mod_productgroups/show.phtml48
1 files changed, 48 insertions, 0 deletions
diff --git a/views/mods/mod_productgroups/show.phtml b/views/mods/mod_productgroups/show.phtml
new file mode 100644
index 0000000..0591381
--- /dev/null
+++ b/views/mods/mod_productgroups/show.phtml
@@ -0,0 +1,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> \ No newline at end of file