public function taxonomy_filters($query)
 {
     if (empty($this->instance)) {
         return $query;
     }
     $tax_query = TribeEventsPro_Widgets::form_tax_query(json_decode($this->instance['filters']), $this->instance['operand']);
     if (isset($query['tax_query'])) {
         $query['tax_query'] = array_merge($query['tax_query'], $tax_query);
     } else {
         $query['tax_query'] = $tax_query;
     }
     return $query;
 }
 function widget($args, $instance)
 {
     $ecp = TribeEventsPro::instance();
     $tooltip_status = $ecp->recurring_info_tooltip_status();
     $ecp->disable_recurring_info_tooltip();
     add_filter('tribe_events_list_show_ical_link', '__return_false');
     echo $args['before_widget'];
     $defaults = array('title' => __('Events Calendar', 'tribe-events-calendar-pro'), 'count' => 5, 'filters' => null, 'operand' => 'OR');
     $instance = wp_parse_args((array) $instance, $defaults);
     $tax_query = TribeEventsPro_Widgets::form_tax_query(json_decode($instance['filters']), $instance['operand']);
     do_action('tribe_events_mini_cal_before_the_title');
     echo $instance['title'] ? $args['before_title'] . $instance['title'] . $args['after_title'] : '';
     do_action('tribe_events_mini_cal_after_the_title');
     $instance['tax_query'] = $tax_query;
     TribeEventsMiniCalendar::instance()->do_calendar($instance);
     echo $args['after_widget'];
     remove_filter('tribe_events_list_show_ical_link', '__return_false');
     if ($tooltip_status) {
         $ecp->enable_recurring_info_tooltip();
     }
 }
 /**
  * @todo revise so that our stylesheet is enqueued in time for the link to be included within the head element
  */
 private function styles_and_scripts()
 {
     wp_enqueue_script('tribe-mini-calendar', TribeEventsPro::instance()->pluginUrl . 'resources/widget-calendar.js', array('jquery'), apply_filters('tribe_events_pro_js_version', TribeEventsPro::VERSION));
     TribeEventsPro_Widgets::enqueue_calendar_widget_styles();
     $widget_data = array("ajaxurl" => admin_url('admin-ajax.php', is_ssl() ? 'https' : 'http'));
     wp_localize_script('tribe-mini-calendar', 'TribeMiniCalendar', $widget_data);
 }