summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-11-06 12:29:11 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-11-06 12:29:11 +0000
commit01f757ec444bd04c694c6c38ce2ac739cd050ae3 (patch)
treef58b4ee85747beda5a1d621155477396fb8bb182 /views
parent56044efe18c508757bec2b58dce6d0e0a82370a4 (diff)
- Problem kein Upload wenn Bilder verschoben und dann gelöscht worden
- Wenn keine Sortierung dann Sortierung nach ID git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6689 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
-rw-r--r--views/produkt/images_list.phtml10
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>