tutorialzine_angelov.inc in Countdown 7.2
File
plugins/countdown/tutorialzine_angelov.inc
View source
<?php
$plugin = array(
'label' => t('jQuery Countdown Plugin by Martin Angelov'),
'description' => t('A countdown with animated digits. Demo at <a href="http://tutorialzine.com/2011/12/countdown-jquery/">http://tutorialzine.com/2011/12/countdown-jquery/</a>.'),
'callback' => 'countdown_tutorialzine_angelov_build',
'supported_options' => array(),
);
function countdown_tutorialzine_angelov_build($plugin, $countdown_options) {
$path = $plugin['path'] . '/tutorialzine_angelov';
$attach['js'] = array(
$path . '/js/jquery_countdown_timer.js' => array(
'type' => 'file',
'scope' => 'footer',
),
$path . '/js/jquery_countdown_timer_init.js' => array(
'type' => 'file',
'scope' => 'footer',
),
);
$settings = array(
'jquery_countdown_timer_date' => $countdown_options['countdown_target_timestamp'],
);
$attach['js'][] = array(
'data' => array(
'jquery_countdown_timer' => $settings,
),
'type' => 'setting',
);
$attach['css'] = array(
$path . '/css/jquery_countdown_timer.css',
);
return array(
'#markup' => "<div id='jquery-countdown-timer'></div>" . "<div id='jquery-countdown-timer-note'></div>",
'#attached' => $attach,
);
}