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/public_html/wp-content/plugins/essential-blocks/views/woocommerce/rating.php
<div class="eb-woo-product-rating-wrapper">

    <?php
        if ( ! isset( $ratingStyle ) ) {
            $ratingStyle = 'star';
        }

        if ( 'star' === $ratingStyle ) {
            for ( $i = 1; $i <= 5; $i++ ) {
                if ( $i <= $product->get_average_rating() ) {
                    echo wp_kses_post( '<span class="eb-woo-product-rating filled"><i class="fas fa-star"></i></span>' );
                } else {
                    echo wp_kses_post( '<span class="eb-woo-product-rating"><i class="far fa-star"></i></span>' );
                }
            }
        } else if ( 'number' === $ratingStyle ) {
            echo sprintf( '<span class="eb-woo-product-rating filled"><i class="fas fa-star"></i> %1$s</span>',
                esc_html( $product->get_average_rating() )
            );
        }
    ?>
</div>