| 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 |
|