id); do_action('mecgeneral_calendar_skin_head'); // Monthpicker Assets $this->main->load_month_picker_assets(); // Shortcode Options $local_time = (isset($this->skin_options['include_local_time']) and !empty( $this->skin_options['include_local_time'] )) ? $this->skin_options['include_local_time'] : false; $display_label = (isset($this->skin_options['display_label']) and !empty( $this->skin_options['display_label'] )) ? $this->skin_options['display_label'] : false; $reason_for_cancellation = (isset($this->skin_options['reason_for_cancellation']) and !empty( $this->skin_options['reason_for_cancellation'] )) ? $this->skin_options['reason_for_cancellation'] : false; $more_event = (isset($this->skin_options['more_event']) and !empty( $this->skin_options['more_event'] )) ? (int) $this->skin_options['more_event'] : 10; $sed_method = ''; if(isset($this->skin_options['sed_method']) and !empty($this->skin_options['sed_method'])) $sed_method = ($this->skin_options['sed_method'] == 'new') ? '_blank' : ($this->skin_options['sed_method'] == '0' ? '_self' : $this->skin_options['sed_method']); // Shortcode Filters $filter_category = get_post_meta($this->id, 'category', true) ? get_post_meta($this->id, 'category', true) : ''; $filter_location = get_post_meta($this->id, 'location', true) ? get_post_meta($this->id, 'location', true) : ''; $filter_organizer = get_post_meta($this->id, 'organizer', true) ? get_post_meta($this->id, 'organizer', true) : ''; $filter_label = get_post_meta($this->id, 'label', true) ? get_post_meta($this->id, 'label', true) : ''; $filter_tag = get_post_meta($this->id, 'tag', true) ? get_post_meta($this->id, 'tag', true) : ''; $filter_author = get_post_meta($this->id, 'author', true) ? get_post_meta($this->id, 'author', true) : ''; $show_past_events = (isset($this->atts['show_past_events']) ? $this->atts['show_past_events'] : '0'); $show_only_past_events = (isset($this->atts['show_only_past_events']) ? $this->atts['show_only_past_events'] : '0'); $show_only_one_occurrence = (isset($this->atts['show_only_one_occurrence']) && $this->atts['show_only_one_occurrence'] != '0') ? '1' : '0'; $mec_tax_input = (isset($this->atts['mec_tax_input']) && $this->atts['mec_tax_input'] != '0') ? $this->atts['mec_tax_input'] : ''; // WordPress Options $lang = substr(get_locale(), 0, strpos(get_locale(), "_")); $is_category_page = is_tax('mec_category'); $cat_id = ''; if($is_category_page) { $category = get_queried_object(); $cat_id = $category->term_id; } $week_start_day = (int) get_option('start_of_week'); if(!function_exists('mec_general_calendar_find_event')) { // Search Options function mec_general_calendar_find_event($sf_options, $find_filter) { if($find_filter == 'find') { if(($sf_options['category']['type'] != '0' && !is_null($sf_options['category']['type'])) || ($sf_options['location']['type'] != '0' && !is_null($sf_options['location']['type'])) || ($sf_options['organizer']['type'] != '0' && !is_null($sf_options['organizer']['type'])) || ($sf_options['speaker']['type'] != '0' && !is_null($sf_options['speaker']['type'])) || ($sf_options['tag']['type'] != '0' && !is_null($sf_options['tag']['type'])) || ($sf_options['label']['type'] != '0' && !is_null($sf_options['label']['type'])) || ($sf_options['event_cost']['type'] != '0' && !is_null($sf_options['event_cost']['type'])) || ($sf_options['text_search']['type'] != '0' && !is_null($sf_options['text_search']['type'])) || ($sf_options['address_search']['type'] != '0' && !is_null($sf_options['address_search']['type']))) return true; else return false; } if($find_filter == 'filter') { if(($sf_options['category']['type'] != '0' && !is_null($sf_options['category']['type'])) || ($sf_options['location']['type'] != '0' && !is_null($sf_options['location']['type'])) || ($sf_options['organizer']['type'] != '0' && !is_null($sf_options['organizer']['type'])) || ($sf_options['speaker']['type'] != '0' && !is_null($sf_options['speaker']['type'])) || ($sf_options['tag']['type'] != '0' && !is_null($sf_options['tag']['type'])) || ($sf_options['label']['type'] != '0' && !is_null($sf_options['label']['type'])) || ($sf_options['event_cost']['type'] != '0' && !is_null($sf_options['event_cost']['type'])) || ($sf_options['address_search']['type'] != '0' && !is_null($sf_options['address_search']['type']))) return true; else return false; } } } wp_enqueue_script('mec-nice-select', $this->main->asset('js/jquery.nice-select.min.js')); ?>
sf_options['category']['type'] != '0' ? $this->sf_search_field('category',array('type' => $this->sf_options['category']['type'])) : ''; echo $this->sf_options['location']['type'] != '0' ? $this->sf_search_field('location',array('type' => $this->sf_options['location']['type'])) : ''; echo $this->sf_options['organizer']['type'] != '0' ? $this->sf_search_field('organizer',array('type' => $this->sf_options['organizer']['type'])) : ''; echo $this->sf_options['speaker']['type'] != '0' ? $this->sf_search_field('speaker',array('type' => $this->sf_options['speaker']['type'])) : ''; echo $this->sf_options['tag']['type'] != '0' ? $this->sf_search_field('tag',array('type' => $this->sf_options['tag']['type'])) : ''; echo $this->sf_options['label']['type'] != '0' ? $this->sf_search_field('label',array('type' => $this->sf_options['label']['type'])) : ''; echo $this->sf_options['address_search']['type'] != '0' ? $this->sf_search_field('address_search',array('type' => $this->sf_options['address_search']['type'])) : ''; echo $this->sf_options['event_cost']['type'] != '0' ? $this->sf_search_field('event_cost',array('type' => $this->sf_options['event_cost']['type'])) : ''; echo $this->sf_reset_button ? '
' : ''; ?>