當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tribe__Events__Template_Factory::get_title方法代碼示例

本文整理匯總了PHP中Tribe__Events__Template_Factory::get_title方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tribe__Events__Template_Factory::get_title方法的具體用法?PHP Tribe__Events__Template_Factory::get_title怎麽用?PHP Tribe__Events__Template_Factory::get_title使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Tribe__Events__Template_Factory的用法示例。


在下文中一共展示了Tribe__Events__Template_Factory::get_title方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: get_title

 /**
  * 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;
 }
開發者ID:Alexander-smirnov,項目名稱:infomist,代碼行數:17,代碼來源:Day.php

示例2: get_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;
 }
開發者ID:uwmadisoncals,項目名稱:Cluster-Plugins,代碼行數:19,代碼來源:List.php

示例3: get_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;
 }
開發者ID:acutedeveloper,項目名稱:havering-intranet-development,代碼行數:21,代碼來源:Month.php


注:本文中的Tribe__Events__Template_Factory::get_title方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。