• File: yearweek.php
  • Full Path: /home/dealkatnwc/www/wp-content/plugins/easy-timer/includes/yearweek.php
  • Date Modified: 01/15/2026 11:06 PM
  • File size: 495 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));
$T = easy_timer_extract_timestamp($offset);
$yearweek = easy_timer_filter_data($filter, date('W', $T));
if (strtolower($offset) == 'local') {
if (easy_timer_data('javascript_enabled') == 'yes') { add_action('wp_footer', 'easy_timer_js'); }
$yearweek = '<span class="localyearweek">'.$yearweek.'</span>'; }