diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/produkt/images_list.phtml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/produkt/images_list.phtml b/views/produkt/images_list.phtml index 9ccc60f..2695327 100644 --- a/views/produkt/images_list.phtml +++ b/views/produkt/images_list.phtml @@ -6,17 +6,17 @@ ?>
-<?php if (isset($this->view['ProduktBilder_MT']) && (sizeof($this->view['ProduktBilder_MT']) > 0)) { ?>
+<?php if (wpsg_isSizedArray($this->view['productImages'])) { ?>
- <?php foreach ($this->view['ProduktBilder_MT'] as $b) { ?>
+ <?php foreach ($this->view['productImages'] as $attachment_id) { ?>
- <div id="produktbild_div_<?php echo $b['pid']; ?>" class="wpsg_mod_produktbilder_admin_bild">
+ <div id="produktbild_div_<?php echo $attachment_id; ?>" class="wpsg_mod_produktbilder_admin_bild">
- <a id="produktbild_<?php echo $b['pid']; ?>" onclick="return wpsg_remove_bild_MT('<?php echo $b['pid']; ?>');" href="#" title="<?php echo __('Dieses Bild löschen.', 'wpsg'); ?>">
+ <a id="produktbild_<?php echo $attachment_id; ?>" onclick="return wpsg_remove_bild_MT('<?php echo $attachment_id; ?>');" href="#" title="<?php echo __('Dieses Bild löschen.', 'wpsg'); ?>">
<div class="box_img_wrap wpsg_be_imagelist_image">
- <?php echo wp_get_attachment_image($b['pid'], 'medium'); ?>
+ <?php echo wp_get_attachment_image($attachment_id, 'medium'); ?>
</div>
|
