diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-06-21 08:58:29 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-06-21 08:58:29 +0000 |
| commit | d6997e857a7c196b6538922f2c964410906edcba (patch) | |
| tree | 473d8a9cf79d3038faf1f7cc36162710d5dd8234 | |
| parent | 2d8f1b8de0310d2fe6db6a6e7448e099f9a8a901 (diff) | |
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5565 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/mods/mod_productview/productview.phtml | 10 | ||||
| -rw-r--r-- | views/produkt/addedit_general.phtml | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml index 53c1799..26d70b9 100644 --- a/views/mods/mod_productview/productview.phtml +++ b/views/mods/mod_productview/productview.phtml @@ -79,10 +79,11 @@ <h2><?php echo $oProduct->getProductName(); ?></h2>
</div>
+ <?php if ($oProduct->rating > 0) { ?>
<div class="wpsg_star_wrap">
- <?php $star = rand(0, 5); ?>
- <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star <?php echo (($i >= $star)?'fa-star-active':''); ?>"></i><?php } ?>
+ <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star <?php echo (($i >= $oProduct->rating)?'fa-star-active':''); ?>"></i><?php } ?>
</div>
+ <?php } ?>
<div class="wpsg_mod_productview_price_wrap">
<?php $oldPrice = $oProduct->getOldPrice(); ?>
@@ -128,10 +129,11 @@ <div class="wpsg_mod_productview_go">
+ <?php if ($oProduct->rating > 0) { ?>
<div class="wpsg_star_wrap">
- <?php $star = rand(0, 5); ?>
- <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star <?php echo (($i >= $star)?'fa-star-active':''); ?>"></i><?php } ?>
+ <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star <?php echo (($i >= $oProduct->rating)?'fa-star-active':''); ?>"></i><?php } ?>
</div>
+ <?php } ?>
<div class="wpsg_center">
diff --git a/views/produkt/addedit_general.phtml b/views/produkt/addedit_general.phtml index 1eb5a91..45a6270 100644 --- a/views/produkt/addedit_general.phtml +++ b/views/produkt/addedit_general.phtml @@ -52,6 +52,9 @@ <a href="<?php echo $url; ?>"><?php echo wpsg_hspc($url); ?></a>
<?php echo wpsg_drawForm_TextEnd(__('URL', 'wpsg')); ?>
<?php } ?>
+
+ <?php echo wpsg_drawForm_Select('rating', __('Bewertungspunkte', 'wpsg'), array('0', '1', '2', '3', '4', '5'), wpsg_getInt($this->view['data']['rating'])); ?>
+
<?php $this->callMods('produkt_edit_allgemein', array(&$this->view['data'])); ?>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
