| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package FireBox |
| 4 |
* @version 1.0.6 Free |
| 5 |
* |
| 6 |
* @author FirePlugins <info@fireplugins.com> |
| 7 |
* @link https://www.fireplugins.com |
| 8 |
* @copyright Copyright © 2021 FirePlugins All Rights Reserved |
| 9 |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 |
*/ |
| 11 |
|
| 12 |
if (!defined('ABSPATH')) |
| 13 |
{ |
| 14 |
exit; // Exit if accessed directly. |
| 15 |
} |
| 16 |
$item = new \FPFramework\Libs\Registry($this->data); |
| 17 |
|
| 18 |
$suffix = $item->get('suffix', ''); |
| 19 |
$decimal_points = $item->get('decimal_points', 0); |
| 20 |
$color = $item->get('color', ''); |
| 21 |
?> |
| 22 |
<canvas |
| 23 |
class="firebox-analytics-overview-chart chart" |
| 24 |
data-chart-suffix="<?php echo esc_attr($suffix); ?>" |
| 25 |
data-chart-decimal-points="<?php echo esc_attr($decimal_points); ?>" |
| 26 |
data-chart-colors="<?php echo esc_attr($color); ?>" |
| 27 |
data-chart-data="<?php echo esc_attr(json_encode($item->get('current_period.data'))); ?>"></canvas> |