diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-05-27 12:43:25 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-05-27 12:43:25 +0000 |
| commit | ec56d4ca7ecc5e38d705ac6a3386ea140ae3038e (patch) | |
| tree | 43856683bf86b1a3e30773e89cb5f298068248d9 /views/mods/mod_productview/productview.phtml | |
| parent | 5d4eb81fd2fc62275386470656da7ab2148c0828 (diff) | |
- Filter Frontend/Backend
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5521 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_productview/productview.phtml')
| -rw-r--r-- | views/mods/mod_productview/productview.phtml | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml index e643db7..c98b4b3 100644 --- a/views/mods/mod_productview/productview.phtml +++ b/views/mods/mod_productview/productview.phtml @@ -18,17 +18,30 @@ <?php if (wpsg_isSizedArray($this->view['wpsg_mod_productview']['products'])) { ?>
<div class="wpsg_mod_productview-order <?php echo $this->view['wpsg_mod_productview']['col_class']['order']; ?>">
- <?php echo __('Sortierung', 'wpsg'); ?><span class="glyphicon glyphicon-menu-down"></span>
- <strong>Neueste zuerst</strong>
+ <?php echo __('Sortierung', 'wpsg'); $order = $this->view['wpsg_mod_productview']['order']; ?>
+ <?php if (substr($order, -3) === 'asc') { ?>
+ <span class="glyphicon glyphicon-menu-up"></span>
+ <?php } else { ?>
+ <span class="glyphicon glyphicon-menu-down"></span>
+ <?php } ?>
+
+ <strong><?php echo $this->view['wpsg_mod_productview']['arOrder'][$order]; ?></strong>
+ <div class="wpsg_mod_productview-order-layer">
+ <div class="inner">
+ <?php foreach ($this->view['wpsg_mod_productview']['arOrder'] as $value => $label) { ?>
+ <a href="#" class="<?php echo (($this->view['wpsg_mod_productview']['order'] === $value)?'selected':''); ?>" data-productview-index="<?php echo $this->view['wpsg_mod_productview']['index']; ?>" data-order="<?php echo $value; ?>"><?php echo $label; ?></a>
+ <?php } ?>
+ </div>
+ </div>
</div>
<div class="wpsg_mod_productview-info <?php echo $this->view['wpsg_mod_productview']['col_class']['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,
- ((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']))
+ $this->view['wpsg_mod_productview']['pageMax']
); ?></strong>
- <?php echo wpsg_translate(__('von #1# Ergebnissen', 'wpsg'), sizeof($this->view['wpsg_mod_productview']['products'])); ?>
+ <?php echo wpsg_translate(__('von #1# Ergebnissen', 'wpsg'), $this->view['wpsg_mod_productview']['count']); ?>
</div>
<?php } ?>
|
