Repository URL to install this package:
|
Version:
3.4.1 ▾
|
:php
$show = true;
if(empty($settings->date)) {
$show = false;
} else if(!empty($settings->start) AND Date::compare(Date::now('Y-m-d H:i:s'), $settings->start) == 'earlier') {
$show = false;
} else if(!empty($settings->end) AND Date::compare(Date::now('Y-m-d H:i:s'), $settings->end) == 'later') {
$show = false;
}
- if($show)
.inner
.description
!= $settings->description
.countdown{'data-final' => $settings->date}
- if($settings->calendars == 'true')
.calendars
!= Dec::a('/calendars/google/21', Dec::img('/assets/img/icons/calendar-google.png'), false)->blank()
!= Dec::a('/calendars/apple/21', Dec::img('/assets/img/icons/calendar-apple.png'), false)->blank()
.description.description-alt
!= $settings->description_alt
// js
- View::js('evsmash/widgets/misc/countdown', $settings)