summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorhartmut <noreply@maennchen1.de>2017-03-10 09:06:20 +0000
committerhartmut <noreply@maennchen1.de>2017-03-10 09:06:20 +0000
commitaac6af5189d650d3a17b8a45d3eeae9ed6c1b168 (patch)
tree246b0164abba71eb5a69e47f4dff1df63b65a2fa /views/mods
parentea5a18c80886d82519151dc866789ea057d919c5 (diff)
Mediathek-Unterstützung
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6113 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_produktartikel/header_facebook.phtml8
-rw-r--r--views/mods/mod_produktartikel/header_google.phtml8
-rw-r--r--views/mods/mod_produktartikel/schemaorg.phtml8
-rw-r--r--views/mods/mod_request/requestpage.phtml6
4 files changed, 7 insertions, 23 deletions
diff --git a/views/mods/mod_produktartikel/header_facebook.phtml b/views/mods/mod_produktartikel/header_facebook.phtml
index 670923d..f8a8045 100644
--- a/views/mods/mod_produktartikel/header_facebook.phtml
+++ b/views/mods/mod_produktartikel/header_facebook.phtml
@@ -9,13 +9,7 @@
<meta property="og:title" content="<?php echo $this->view['data']['name']; ?>" />
<meta property="og:type" content="product" />
<?php if ($this->hasMod('wpsg_mod_produktbilder') && isset($this->view['data']['bilder'][0])) { ?>
-<meta property="og:image" content="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array(
- $this->view['data']['id'],
- $this->view['data']['bilder'][0],
- 100,
- 100,
- 's'
-)); ?>" />
+<meta property="og:image" content="<?php echo $this->view['data']['bilder'][0] ?>" />
<?php } ?>
<meta property="og:url" content="<?php echo $this->view['data']['url']; ?>" />
<meta property="og:description" content="<?php echo $this->view['data']['beschreibung']; ?>" />
diff --git a/views/mods/mod_produktartikel/header_google.phtml b/views/mods/mod_produktartikel/header_google.phtml
index c49420c..9d21a7a 100644
--- a/views/mods/mod_produktartikel/header_google.phtml
+++ b/views/mods/mod_produktartikel/header_google.phtml
@@ -9,11 +9,5 @@
<meta itemprop="name" content="<?php echo $this->view['data']['name']; ?>" />
<meta itemprop="description" content="<?php echo $this->view['data']['beschreibung']; ?>" />
<meta itemprop="url" content="<?php echo $this->view['data']['url']; ?>" />
-<meta itemprop="image" content="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array(
- $this->view['data']['id'],
- $this->view['data']['bilder'][0],
- 100,
- 100,
- 's'
-)); ?>" />
+<meta itemprop="image" content="<?php echo $this->view['data']['bilder'][0] ?>" />
\ No newline at end of file
diff --git a/views/mods/mod_produktartikel/schemaorg.phtml b/views/mods/mod_produktartikel/schemaorg.phtml
index 20cfd1e..daa8294 100644
--- a/views/mods/mod_produktartikel/schemaorg.phtml
+++ b/views/mods/mod_produktartikel/schemaorg.phtml
@@ -8,13 +8,7 @@
?>
<div itemscope itemtype="http://schema.org/Product" style="display:none;">
<span itemprop="name"><?php echo wpsg_hspc($this->view['data']['name']); ?></span>
- <img itemprop="image" src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array(
- $this->view['data']['id'],
- $this->view['data']['bilder'][0],
- 100,
- 100,
- 's'
- )); ?>" />
+ <img itemprop="image" src="<?php echo $this->view['data']['bilder'][0] ?>" />
<a itemprop="url" href="<?php echo $this->view['data']['url']; ?>"><?php echo $this->view['data']['name']; ?></a>
<div itemprop="description"><?php echo $this->view['data']['beschreibung']; ?></div>
</div> \ No newline at end of file
diff --git a/views/mods/mod_request/requestpage.phtml b/views/mods/mod_request/requestpage.phtml
index 96aff04..47a4a89 100644
--- a/views/mods/mod_request/requestpage.phtml
+++ b/views/mods/mod_request/requestpage.phtml
@@ -103,12 +103,14 @@
<?php if ($this->hasMod('wpsg_mod_produktbilder') && $this->get_option('wpsg_mod_request_requestpageimage') == '1') {
if (wpsg_isSizedString($request_product['product_data']['varianten_image'])) $arBilder = array($request_product['product_data']['varianten_image']);
- else $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($request_product['product_id']));
+ else $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($request_product['product_id']));
?>
<?php if (wpsg_isSizedArray($arBilder)) { ?>
<div class="wpsg_basket_productimage">
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($request_product['product_id'], array_shift($arBilder), 30, 30, 'c')); ?>" alt="<?php echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?>" />
+ <?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 echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?>" />
</div>
<?php } ?>
<?php } ?>