/** * Get the title for day view * @param $title * @param null $sep * * @return string */ protected function get_title($original_title, $sep = null) { $new_title = parent::get_title($original_title, $sep); if (has_filter('tribe_events_day_view_title')) { _deprecated_function("The 'tribe_events_day_view_title' filter", '3.8', " the 'tribe_get_events_title' filter"); $title_date = date_i18n(tribe_get_date_format(true), strtotime(get_query_var('eventDate'))); $new_title = apply_filters('tribe_events_day_view_title', $new_title, $sep, $title_date); } return $new_title; }
/** * Get the title for list view * @param $title * @param null $sep * * @return string */ protected function get_title($original_title, $sep = null) { $new_title = parent::get_title($original_title, $sep); if (tribe_is_upcoming() && has_filter('tribe_upcoming_events_title')) { _deprecated_function("The 'tribe_upcoming_events_title' filter", '3.8', " the 'tribe_get_events_title' filter"); $new_title = apply_filters('tribe_upcoming_events_title', $new_title, $sep); } elseif (has_filter('tribe_past_events_title')) { _deprecated_function("The 'tribe_past_events_title' filter", '3.8', " the 'tribe_get_events_title' filter"); $new_title = apply_filters('tribe_past_events_title', $new_title, $sep); } return $new_title; }
/** * Get the title for month view * * @param string $original_title * @param string $sep * * @return string */ protected function get_title($original_title, $sep = null) { $new_title = parent::get_title($original_title, $sep); if (get_query_var('eventDate') && has_filter('tribe_month_grid_view_title')) { _deprecated_function("The 'tribe_month_grid_view_title' filter", '3.8', " the 'tribe_get_events_title' filter"); $title_date = date_i18n(tribe_get_date_option('monthAndYearFormat', 'F Y'), strtotime(get_query_var('eventDate'))); $new_title = apply_filters('tribe_month_grid_view_title', $new_title, $sep, $title_date); } elseif (has_filter('tribe_events_this_month_title')) { _deprecated_function("The 'tribe_events_this_month_title' filter", '3.8', " the 'tribe_get_events_title' filter"); $new_title = apply_filters('tribe_events_this_month_title', $new_title, $sep); } return $new_title; }