• File: timezone.php
  • Full Path: /home/dealkatnwc/www/wp-content/plugins/timezone.php
  • Date Modified: 01/15/2026 11:06 PM
  • File size: 788 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php if (!defined('ABSPATH')) { exit(); }
$atts = array_map('kleor_do_shortcode_in_attribute', (array) $atts);
extract(shortcode_atts(array('filter' => '', 'offset' => ''), $atts));
$offset = strtolower($offset); switch ($offset) {
case '': $offset = 1*get_option('gmt_offset'); break;
case 'local': break;
default: $offset = round((float) str_replace(',', '.', $offset), 2); }

if (is_numeric($offset)) {
if ($offset == 0) { $timezone = 'UTC'; }
elseif ($offset > 0) { $timezone = 'UTC+'.$offset; }
elseif ($offset < 0) { $timezone = 'UTC'.$offset; }
$timezone = easy_timer_filter_data($filter, $timezone); }

else {
if (easy_timer_data('javascript_enabled') == 'yes') { add_action('wp_footer', 'easy_timer_js'); }
$timezone = '<span class="localtimezone">UTC</span>'; }