Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
evsmash/widgets / views / _widgets / misc / countdown.haml
Size: Mime:
: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)