<?php if (!defined('ABSPATH')) { exit(); }
load_easy_timer_textdomain();
function easy_timer_clock($atts) { include easy_timer_path('includes/clock.php'); return $clock; }
function easy_timer_counter($atts, $content) { include easy_timer_path('includes/counter.php'); return $content[$k]; }
function easy_timer_countdown($atts, $content) {
$atts = (array) $atts;
$atts['way'] = 'down';
$atts['delimiter'] = 'after';
return easy_timer_counter($atts, $content); }
function easy_timer_countup($atts, $content) {
$atts = (array) $atts;
$atts['way'] = 'up';
$atts['delimiter'] = 'before';
return easy_timer_counter($atts, $content); }
function easy_timer_extract_offset($offset) {
$offset = strtolower($offset); switch ($offset) {
case '': case 'local': $offset = 3600*get_option('gmt_offset'); break;
default: $offset = 36*(round(100*str_replace(',', '.', $offset))); }
return $offset; }
function easy_timer_extract_timestamp($offset) { return (time() + easy_timer_extract_offset($offset)); }
function easy_timer_isoyear($atts) { include easy_timer_path('includes/isoyear.php'); return $isoyear; }
function easy_timer_js() { echo '<script>'.str_replace("\n", "", file_get_contents(easy_timer_path('libraries/easy-timer.js'))).'</script>'; }
function easy_timer_lang_js() { include easy_timer_path('includes/lang-js.php'); }
function easy_timer_mktime($hr, $min, $sec, $mon = false, $day = false, $year = false) { include easy_timer_path('includes/mktime.php'); return (int) $ts; }
function easy_timer_month($atts) { include easy_timer_path('includes/month.php'); return $month; }
function easy_timer_monthday($atts) { include easy_timer_path('includes/monthday.php'); return $monthday; }
function easy_timer_timer_replace($S, $prefix, $way, $offset, $content) { include easy_timer_path('includes/timer-replace.php'); return $content; }
function easy_timer_timer_string($S) { include easy_timer_path('includes/timer-string.php'); return $timer; }
function easy_timer_timezone($atts) { include easy_timer_path('includes/timezone.php'); return $timezone; }
function easy_timer_weekday($atts) { include easy_timer_path('includes/weekday.php'); return $weekday; }
function easy_timer_year($atts) { include easy_timer_path('includes/year.php'); return $year; }
function easy_timer_yearday($atts) { include easy_timer_path('includes/yearday.php'); return $yearday; }
function easy_timer_yearweek($atts) { include easy_timer_path('includes/yearweek.php'); return $yearweek; }