summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_productgroups/list.phtml14
-rw-r--r--views/mods/mod_productgroups/show.phtml22
-rw-r--r--views/mods/mod_productview/productview.js2
-rw-r--r--views/mods/mod_productview/productview.phtml2
4 files changed, 11 insertions, 29 deletions
diff --git a/views/mods/mod_productgroups/list.phtml b/views/mods/mod_productgroups/list.phtml
index e52f3c1..6164440 100644
--- a/views/mods/mod_productgroups/list.phtml
+++ b/views/mods/mod_productgroups/list.phtml
@@ -10,20 +10,15 @@
$showP = 4;
if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
-
- // Dimension der Bilder
- $picW = 150;
- $picH = 100;
- $picMode = 's';
?>
-<?php //wpsg_debug($this->view['data']) ?>
+
<?php $c = 0; foreach ((array)$this->view['data'] as $k => $g) { ?>
<?php //wpsg_debug($g) ?>
<div class="wpsg_pgruppen_list_row">
<div class="wpsg_pgruppen_list_titel">
<a href="<?php echo WPSG_URL_WP ?>?page_id=<?php echo get_the_ID(); ?>&show=<?php echo $k ?>">
- <?php echo $g['pgruppe_name'] ?>
+ <h2><?php echo $g['pgruppe_name'] ?></h2>
</a>
</div>
<div class="wpsg_pgruppen_list_produkte">
@@ -31,10 +26,11 @@
<?php $image = array_rand($g['produkte'][$i]['bilder']); ?>
<?php if ($image >= 0 && is_int($image)) { ?>
<div class="wpsg_pgruppen_list_image">
- <?php $image_path = $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($g['produkte'][$i]['id'], $g['produkte'][$i]['bilder'][$image], $picW, $picH, $picMode)) ?>
+
<a href="<?php echo $g['produkte'][$i]['url'] ?>">
- <img src="<?php echo $image_path; ?>" alt="<?php echo $g['produkte'][$i]['name']; ?>"/>
+ <?php echo wp_get_attachment_image($g['produkte'][$i]['bilder'][$image]['post_id'], 'sto_productimage_100', false, array()); ?>
</a>
+
</div>
<?php } ?>
<?php } ?>
diff --git a/views/mods/mod_productgroups/show.phtml b/views/mods/mod_productgroups/show.phtml
index 0591381..7cf6529 100644
--- a/views/mods/mod_productgroups/show.phtml
+++ b/views/mods/mod_productgroups/show.phtml
@@ -7,31 +7,17 @@
*/
if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
-
- // Dimension der Bilder
- $picW = 200;
- $picH = 200;
- $picMode = 'c';
-
- //$p['produktattribute'][$index]['name']; Der Name des Attributs
- //$p['produktattribute'][$index]['value']; Der Wert des Attributs
- //$index ist die Nummer des Produktattributs
-
- //Ausgabemöglichkeit bei aktiviertem Debug Modus
- //wpsg_debug($this->view['data']);
-
+
?>
<div class="wpsg_pgruppen_single">
<div class="wpsg_pgruppen_single_produkte_wrap">
<div class="wpsg_pgruppen_single_produkte">
- <?php foreach ((array)$this->view['data']['produkte'] as $p) { ?>
- <?php //wpsg_debug($p) ?>
+ <?php foreach ((array)$this->view['data']['produkte'] as $p) { ?>
<?php if (sizeof($p['bilder']) > 0) { ?>
<?php $image = array_rand($p['bilder']); ?>
- <div class="wpsg_pgruppen_single_list_image">
- <?php $image_path = $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($p['id'], $p['bilder'][$image], $picW, $picH, $picMode)) ?>
+ <div class="wpsg_pgruppen_single_list_image">
<a href="<?php echo $p['url'] ?>">
- <img src="<?php echo $image_path; ?>" alt="<?php echo $p['name']; ?>"/>
+ <?php echo wp_get_attachment_image($g['bilder'][$image]['post_id'], 'sto_productimage_555', false, array()); ?>
</a>
</div>
<?php } ?>
diff --git a/views/mods/mod_productview/productview.js b/views/mods/mod_productview/productview.js
index f47eb86..97483cd 100644
--- a/views/mods/mod_productview/productview.js
+++ b/views/mods/mod_productview/productview.js
@@ -40,7 +40,7 @@
}
- jQuery('#wpsg_productview_' + index).append('<div class="wpsg_mod_productview_loading"></div>');
+ jQuery('#wpsg_productview_' + index).append('<div class="wpsg_mod_productview_loading"><div class="inner"><div class="fa fa-spinner fa-pulse fa-3x fa-fw"></div><div class="text">Bitte warten, die Ansicht wird aktualisiert.</div></div></div>');
jQuery.ajax( {
'url': wpsg_ajax.ajaxurl,
diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml
index 178e032..4e2ac50 100644
--- a/views/mods/mod_productview/productview.phtml
+++ b/views/mods/mod_productview/productview.phtml
@@ -211,5 +211,5 @@
<?php } ?>
</div>
-
+
</div> \ No newline at end of file