PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/dashboard/templates/counters.php +10 -2 6.26 → trunk View file →
@@ -1,5 +1,13 @@
1 1 <?php
2 +/**
3 + * Dashboard counters widget.
4 + *
5 + * @package Formidable
6 + *
7 + * @var array $template Widget data with a 'counters' array. Each counter has: heading, type, counter, cta and optional items.
8 + */
9 +
2 10 if ( ! defined( 'ABSPATH' ) ) {
3 11 die( 'You are not allowed to call this page directly.' );
4 12 }
5 13
@@ -18,11 +26,11 @@
18 26 <?php if ( 'currency' === $counter['type'] ) : ?>
19 27 <div class="frm-flex-box frm-gap-md">
20 28 <?php foreach ( $counter['items'] as $item ) : ?>
21 29 <b>
22 - <?php echo esc_attr( $item['counter_label']['symbol_left'] ); ?>
30 + <?php echo esc_html( $item['counter_label']['symbol_left'] ); ?>
23 31 <span class="frm-counter" data-type="<?php echo esc_attr( $counter['type'] ); ?>" data-locale="<?php echo esc_attr( get_locale() ); ?>" data-counter="<?php echo (int) $item['counter']; ?>"><?php echo (int) $item['counter']; ?></span>
24 - <?php echo esc_attr( $item['counter_label']['symbol_right'] ); ?>
32 + <?php echo esc_html( $item['counter_label']['symbol_right'] ); ?>
25 33 </b>
26 34 <?php endforeach; ?>
27 35 </div>
28 36 <?php else : ?>