diff options
| author | hartmut <noreply@maennchen1.de> | 2017-03-10 09:06:20 +0000 |
|---|---|---|
| committer | hartmut <noreply@maennchen1.de> | 2017-03-10 09:06:20 +0000 |
| commit | aac6af5189d650d3a17b8a45d3eeae9ed6c1b168 (patch) | |
| tree | 246b0164abba71eb5a69e47f4dff1df63b65a2fa /views/mailtemplates/html | |
| parent | ea5a18c80886d82519151dc866789ea057d919c5 (diff) | |
Mediathek-Unterstützung
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6113 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mailtemplates/html')
| -rw-r--r-- | views/mailtemplates/html/order.phtml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/views/mailtemplates/html/order.phtml b/views/mailtemplates/html/order.phtml index 39706c9..45ae41c 100644 --- a/views/mailtemplates/html/order.phtml +++ b/views/mailtemplates/html/order.phtml @@ -18,13 +18,14 @@ <table cellpadding="0" cellspacing="0">
<tr>
<td style="padding:0px; ">
- <?php if ($this->hasMod('wpsg_mod_produktbilder') && wpsg_isSizedInt($this->get_option('wpsg_mod_produktbilder_overviewimage'))) { $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->getProduktId($p['id']))); ?>
+ <?php if ($this->hasMod('wpsg_mod_produktbilder') && wpsg_isSizedInt($this->get_option('wpsg_mod_produktbilder_overviewimage'))) { $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktId($p['id']))); ?>
<?php if (wpsg_isSizedArray($arBilder)) { ?>
<a style="width:50px; width:50px; margin-right:10px; float:left;" href="<?php echo $this->getProduktLink($this->getProduktId($p['id'])); ?>" title="<?php echo wpsg_hspc(((wpsg_isSizedString($p['detailname'])?$p['detailname']:$p['name']))); ?>">
<?php if (wpsg_isSizedString($p['varianten_image'])) $arBilder = array($p['varianten_image']); ?>
-
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->getProduktId($p['id']), array_shift($arBilder), 50, 50, 'sz')); ?>" alt="<?php echo wpsg_hspc(((wpsg_isSizedString($p['detailname'])?$p['detailname']:$p['name']))); ?>" />
+
+ <?php $href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(50, 50)); ?>
+ <img src="<?php echo $href[0];?>" width="50" height="50" alt="" />
</a>
<?php } ?>
<?php } ?>
|
