summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-03-18 12:33:41 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-03-18 12:33:41 +0000
commit5dcc69c910adb6e390c7699de5d2bc87c2a54736 (patch)
treee8decc873bb6f7638b0d27cbc7cba5824d545b35
parent681acf44472deb7671387d5d601fc7a98061610f (diff)
- Korrekte Anzahl in Produktansicht
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5422 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_productview/productview.phtml8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml
index 7e7a541..10f7cf2 100644
--- a/views/mods/mod_productview/productview.phtml
+++ b/views/mods/mod_productview/productview.phtml
@@ -19,8 +19,12 @@
</div>
<div class="col-lg-6 wpsg_mod_productview-info">
- <strong><?php echo wpsg_translate(__('Anzeige #1# - #2#', 'wpsg'), ($this->view['wpsg_mod_productview']['page'] - 1) * $this->view['wpsg_mod_productview']['per_page'] + 1, max($this->view['wpsg_mod_productview']['count'], $this->view['wpsg_mod_productview']['page'] * $this->view['wpsg_mod_productview']['per_page'])); ?></strong>
- <?php echo wpsg_translate(__('von #1# Ergebnissen', 'wpsg'), $this->view['wpsg_mod_productview']['count']); ?>
+ <strong><?php
+ echo wpsg_translate(__('Anzeige #1# - #2#', 'wpsg'),
+ ($this->view['wpsg_mod_productview']['page'] - 1) * $this->view['wpsg_mod_productview']['per_page'] + 1,
+ ((sizeof($this->view['wpsg_mod_productview']['products']) > $this->view['wpsg_mod_productview']['per_page'])?$this->view['wpsg_mod_productview']['page'] * $this->view['wpsg_mod_productview']['per_page']:sizeof($this->view['wpsg_mod_productview']['products']))
+ ); ?></strong>
+ <?php echo wpsg_translate(__('von #1# Ergebnissen', 'wpsg'), sizeof($this->view['wpsg_mod_productview']['products'])); ?>
</div>
<?php } ?>