summaryrefslogtreecommitdiff
path: root/views/mods/mod_productgroups
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_productgroups')
-rw-r--r--views/mods/mod_productgroups/list.phtml4
-rw-r--r--views/mods/mod_productgroups/show.phtml4
2 files changed, 2 insertions, 6 deletions
diff --git a/views/mods/mod_productgroups/list.phtml b/views/mods/mod_productgroups/list.phtml
index 6164440..3491629 100644
--- a/views/mods/mod_productgroups/list.phtml
+++ b/views/mods/mod_productgroups/list.phtml
@@ -9,8 +9,6 @@
// Produkte die neben dem Namen angezeigt werden sollen
$showP = 4;
- if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
-
?>
<?php $c = 0; foreach ((array)$this->view['data'] as $k => $g) { ?>
@@ -28,7 +26,7 @@
<div class="wpsg_pgruppen_list_image">
<a href="<?php echo $g['produkte'][$i]['url'] ?>">
- <?php echo wp_get_attachment_image($g['produkte'][$i]['bilder'][$image]['post_id'], 'sto_productimage_100', false, array()); ?>
+ <?php echo wp_get_attachment_image($g['produkte'][$i]['bilder'][0], 'thumbnail', false, array()); ?>
</a>
</div>
diff --git a/views/mods/mod_productgroups/show.phtml b/views/mods/mod_productgroups/show.phtml
index 7cf6529..2f6a0d0 100644
--- a/views/mods/mod_productgroups/show.phtml
+++ b/views/mods/mod_productgroups/show.phtml
@@ -6,8 +6,6 @@
*
*/
- 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">
@@ -17,7 +15,7 @@
<?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()); ?>
+ <?php echo wp_get_attachment_image($p['bilder'][0], 'medium', false, array()); ?>
</a>
</div>
<?php } ?>