HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/components/com_virtuemart/sublayouts/bs4-rating-small.php
<?php
/**
 * sublayout product rating small
 *
 * @package    VirtueMart
 * @author     Max Milbers
 * @link       https://virtuemart.net
 * @copyright  Copyright (c) 2014 VirtueMart Team. All rights reserved.
 * @license    http://www.gnu.org/copyleft/gpl.html GNU/GPL2, see LICENSE.php
 * @version    $Id: cart.php 7682 2014-02-26 17:07:20Z Milbo $
 */

defined('_JEXEC') or die('Restricted access');

$product           = $viewData['product'];
$showProductRating = $viewData['show_rating'];

if ($showProductRating && !empty($product->rating))
{
    $ratingWidthInPixel = ($product->rating * 12) . "px;";
    ?>
    <div class="vm-store-product-rating-stars d-inline-block">
        <div style="width:<?php echo $ratingWidthInPixel; ?>"></div>
    </div>
    <?php
}