<?php
/**
 * @package         FirePlugins Framework
 * @version         1.1.146
 * 
 * @author          FirePlugins <info@fireplugins.com>
 * @link            https://www.fireplugins.com
 * @copyright       Copyright © 2026 FirePlugins All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

if (!defined('ABSPATH'))
{
	exit; // Exit if accessed directly.
}

if ($this->data->get('load_css_vars'))
{
	wp_add_inline_style('fpframework-rating-widget', '
		.fpf-rating-wrapper.' . esc_attr($this->data->get('id')) . ' {
			--rating-selected-color: ' . esc_attr($this->data->get('selected_color')) . ';
			--rating-unselected-color: ' . esc_attr($this->data->get('unselected_color')) . ';
		}
	');
}

require __DIR__ . '/rating_' . ($this->data->get('half_ratings') ? 'half' : 'default') . '.php';