| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template: CountDown General Widget Layout |
| 4 |
* |
| 5 |
* @package RadiusTheme\SB |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Template variables: |
| 10 |
* |
| 11 |
* @var $countdown_expire_time string |
| 12 |
* @var $has_countdown_days boolean |
| 13 |
* @var $has_countdown_hours boolean |
| 14 |
* @var $has_countdown_minutes boolean |
| 15 |
* @var $has_countdown_seconds boolean |
| 16 |
* @var $countdown_days_label string |
| 17 |
* @var $countdown_hours_label string |
| 18 |
* @var $countdown_minutes_label string |
| 19 |
* @var $countdown_seconds_label string |
| 20 |
* @var $countdown_layout string |
| 21 |
* @var $has_countdown_circle string |
| 22 |
* @var $circle_stroke_width string |
| 23 |
*/ |
| 24 |
|
| 25 |
|
| 26 |
// Do not allow directly accessing this file. |
| 27 |
use RadiusTheme\SB\Helpers\Fns; |
| 28 |
use RadiusTheme\SB\Elementor\Widgets\General\CountDown\Render; |
| 29 |
|
| 30 |
if ( ! defined( 'ABSPATH' ) ) { |
| 31 |
exit( 'This script cannot be accessed directly.' ); |
| 32 |
} |
| 33 |
?> |
| 34 |
<div class="rtsb-countdown-wrapper"> |
| 35 |
<div class="rtsb-countdown rtsbcd1 <?php echo esc_attr( $has_countdown_circle ); ?>" data-deadline-date-time="<?php echo esc_attr( $countdown_expire_time ); ?>"> |
| 36 |
|
| 37 |
<?php |
| 38 |
if ( $has_countdown_days ) { |
| 39 |
Fns::print_html( Render::render_countdown( 'rtsb-day', $countdown_days_label, $countdown_layout, $circle_stroke_width ) ); |
| 40 |
} |
| 41 |
?> |
| 42 |
<?php |
| 43 |
if ( $has_countdown_hours ) { |
| 44 |
Fns::print_html( Render::render_countdown( 'rtsb-hr', $countdown_hours_label, $countdown_layout, $circle_stroke_width ) ); |
| 45 |
} |
| 46 |
?> |
| 47 |
<?php |
| 48 |
if ( $has_countdown_minutes ) { |
| 49 |
Fns::print_html( Render::render_countdown( 'rtsb-min', $countdown_minutes_label, $countdown_layout, $circle_stroke_width ) ); |
| 50 |
} |
| 51 |
?> |
| 52 |
<?php |
| 53 |
if ( $has_countdown_seconds ) { |
| 54 |
Fns::print_html( Render::render_countdown( 'rtsb-sec', $countdown_seconds_label, $countdown_layout, $circle_stroke_width ) ); |
| 55 |
} |
| 56 |
?> |
| 57 |
|
| 58 |
</div> |
| 59 |
</div> |
| 60 |
|