PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / templates / elementor / general / counter / counter.php

counter.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.6, at templates/elementor/general/counter/counter.php

66 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template: Counter Box
4 *
5 * @package RadiusTheme\SB
6 */
7
8 /**
9 * Template variables:
10 *
11 * @var $counter_count integer
12 * @var $counter_transition integer
13 * @var $counter_title string
14 * @var $icon_position string
15 * @var $counter_title_html_tag string
16 * @var $icon_html string
17 * @var $icon_type string
18 * @var $icon_bg_type string
19 * @var $prefix string
20 * @var $suffix string
21 * @var $has_prefix bool
22 * @var $has_suffix bool
23 */
24
25 use RadiusTheme\SB\Helpers\Fns;
26 use RadiusTheme\SB\Elementor\Widgets\General\Counter\Render;
27
28 // Do not allow directly accessing this file.
29 if ( ! defined( 'ABSPATH' ) ) {
30 exit( 'This script cannot be accessed directly.' );
31 }
32 ?>
33 <div class="rtsb-counter-wrapper">
34 <div class="counter-inner <?php echo esc_attr( $icon_position ); ?>">
35 <?php if ( ! empty( $icon_html ) ) { ?>
36 <div class="counter-icon-holder <?php echo esc_attr( $icon_type ); ?>">
37 <div class="icon-wrap">
38 <?php Fns::print_html( $icon_html ); ?>
39 </div>
40 </div>
41 <?php } ?>
42 <div class="rtsb-counter-content">
43 <?php
44 /**
45 * Number.
46 */
47 ?>
48 <?php
49
50 if ( ! empty( $counter_count ) ) {
51 Fns::print_html( Render::render_count_number( $counter_count, $has_prefix, $prefix, $has_suffix, $suffix, $counter_transition ) );
52 }
53
54 ?>
55 <?php
56 /**
57 * Title.
58 */
59 ?>
60 <<?php Fns::print_validated_html_tag( $counter_title_html_tag ); ?> class="rtsb-counter-title">
61 <?php Fns::print_html( $counter_title ); ?>
62 </<?php Fns::print_validated_html_tag( $counter_title_html_tag ); ?>>
63 </div>
64 </div>
65 </div>
66