%PDF- %PDF-
Direktori : /home/lightco1/www/components/com_virtuemart/sublayouts/ |
Current File : /home/lightco1/www/components/com_virtuemart/sublayouts/rating.php |
<?php defined('_JEXEC') or die('Restricted access'); $product = $viewData['product']; if ($viewData['showRating']) { $maxrating = VmConfig::get('vm_maximum_rating_scale', 5); if (empty($product->rating)) { ?> <div class="ratingbox dummy" title="<?php echo vmText::_('COM_VIRTUEMART_UNRATED'); ?>" > </div> <?php } else { $ratingwidth = $product->rating * 24; ?> <div title=" <?php echo (vmText::_("COM_VIRTUEMART_RATING_TITLE") . round($product->rating) . '/' . $maxrating) ?>" class="ratingbox" > <div class="stars-orange" style="width:<?php echo $ratingwidth.'px'; ?>"></div> </div> <?php } }