summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorhartmut <noreply@maennchen1.de>2017-03-10 14:06:20 +0000
committerhartmut <noreply@maennchen1.de>2017-03-10 14:06:20 +0000
commit6526f8266f901f3490888fd9d5c261377b3de76f (patch)
tree8dbd3e324ba5685ed19847c3d62ce9283a0dd62a /views
parentb1e0c46a7797401ee990d158259c277af35757c3 (diff)
Korrektur Mediathek
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6121 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
-rw-r--r--views/warenkorb/ajaxDialog.phtml14
1 files changed, 8 insertions, 6 deletions
diff --git a/views/warenkorb/ajaxDialog.phtml b/views/warenkorb/ajaxDialog.phtml
index ae2ac19..d029faf 100644
--- a/views/warenkorb/ajaxDialog.phtml
+++ b/views/warenkorb/ajaxDialog.phtml
@@ -96,12 +96,14 @@
<div class="wpsg_ajaxdialog_productrow">
<h4><?php echo $this->getProductName($rp_data['product_id']); ?></h4>
<a href="<?php echo $this->getProduktLink($rp_data['product_id']); ?>">
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <?php $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($rp_data['product_id'])); ?>
- <?php if (wpsg_isSizedArray($arBilder)) { ?>
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($rp_data['product_id'], $arBilder[0], 150, 150, 's')); ?>" alt="" />
- <?php } ?>
- <?php } ?>
+ <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
+ <?php $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktId($this->view['product_data']['id']))); ?>
+ <?php if (wpsg_isSizedArray($arBilder)) { ?>
+ <?php $href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
+ <?php $imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
+ <img src="<?php echo $href[0]; ?>" width="30" height="30" alt="" />
+ <?php } ?>
+ <?php } ?>
</a>
</div>