summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-03-10 09:57:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-03-10 09:57:36 +0000
commite24fede1a415bf8933b502fd5f683509db91eb07 (patch)
tree3a1b90482e2e3af9f526c1c972000735a9744fd3
parentaac6af5189d650d3a17b8a45d3eeae9ed6c1b168 (diff)
- Keine Abwärtskompatibilität bei Kundenadressen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6115 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/produkttemplates/standard.phtml30
1 files changed, 8 insertions, 22 deletions
diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml
index 09e3ffe..af3c3e3 100644
--- a/views/produkttemplates/standard.phtml
+++ b/views/produkttemplates/standard.phtml
@@ -30,32 +30,18 @@ if (!function_exists('is_plugin_active'))
<?php /* Block für die Produktbilder START */ ?>
<?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
<div class="wpsg_produkt_produktbilder">
- <?php
- $pbw = $this->get_option('wpsg_mod_produktbilder_width');
- $pbh = $this->get_option('wpsg_mod_produktbilder_height');
- $pbm = $this->get_option('wpsg_mod_produktbilder_mode');
- $pbArr = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['data']['id']));
- ?>
- <?php if (sizeof($pbArr)) { ?>
- <?php $i = 0; foreach ($pbArr as $b) { $i++; ?>
- <?php if ($i == 1 && !wpsg_isSizedString($this->view['data']['varianten_image']) || $b['basename'] == $this->view['data']['varianten_image']) { ?>
- <div class="wpsg_produkt_preview wpsg_pb_pic">
- <?php
- $href = wp_get_attachment_image_src($b['post_id'], Array(800, 600));
- $imgtag = wp_get_attachment_image($b['post_id'], Array($pbw, $pbh));
- ?>
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>"
- href="<?php echo $href[0]; ?>"> <?php echo $imgtag; ?>
+ <?php if (sizeof($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])))) { ?>
+ <?php $i = 0; foreach ($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])) as $b) { $i ++; ?>
+ <?php if ($i == 1 && !wpsg_isSizedString($this->view['data']['varianten_image']) || $b == $this->view['data']['varianten_image']) { ?>
+ <div class="wpsg_produkt_preview wpsg_pb_pic">
+ <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, 800, 600, $this->get_option('wpsg_mod_produktbilder_mode'))); ?>">
+ <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="<?php echo wpsg_hspc($this->view['data']['name']); ?>" />
</a>
</div>
<?php } else { ?>
<div class="wpsg_pb_pic" style="display:none;">
- <?php
- $href = wp_get_attachment_image_src($b['post_id'], Array(800, 600));
- $imgtag = wp_get_attachment_image($b['post_id'], Array($pbw, $pbh));
- ?>
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $href[0]; ?>">
- <?php echo $imgtag; ?>
+ <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, 800, 600, $this->get_option('wpsg_mod_produktbilder_mode'))); ?>">
+ <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="<?php echo wpsg_hspc($this->view['data']['name']); ?>" />
</a>
</div>
<?php } ?>