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


PHP tribe_get_previous_month_text函數代碼示例

本文整理匯總了PHP中tribe_get_previous_month_text函數的典型用法代碼示例。如果您正苦於以下問題:PHP tribe_get_previous_month_text函數的具體用法?PHP tribe_get_previous_month_text怎麽用?PHP tribe_get_previous_month_text使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: tribe_events_the_mini_calendar_prev_link

/**
 * Output a link for the mini calendar month previous nav, includes data attributes needed to update the month with ajax
 *
 * @return void
 **/
function tribe_events_the_mini_calendar_prev_link()
{
    $tribe_ecp = Tribe__Events__Main::instance();
    $args = tribe_events_get_mini_calendar_args();
    $html = '<a class="tribe-mini-calendar-nav-link prev-month" href="#" data-month="' . $tribe_ecp->previousMonth($args['eventDate']) . '-01" title="' . tribe_get_previous_month_text() . '"><span>&laquo;</span></a>';
    echo apply_filters('tribe_events_the_mini_calendar_prev_link', $html);
}
開發者ID:TravisSperry,項目名稱:mpa_website,代碼行數:12,代碼來源:widgets.php

示例2: tribe_get_next_month_text

				<span><?php 
echo tribe_get_next_month_text();
?>
</span> 
			</a>
		</li>
		<li class="tribe-ajax-nav">
			<a class="tribe-mini-ajax prev-month" href="#" data-month="<?php 
echo $tribe_ecp->previousMonth($current_date);
?>
" title="<?php 
echo tribe_get_previous_month_text();
?>
">
				<span><?php 
echo tribe_get_previous_month_text();
?>
</span>
			</a>
		</li>
		<li class="tribe-loading-mini">
			<img id="ajax-loading-mini" src="<?php 
echo esc_url(admin_url('images/wpspin_light.gif'));
?>
" alt="loading..." />
		</li>
	</ul> 

	<ul class="weekdays">
		<?php 
for ($n = $startOfWeek; $n < count($tribe_ecp->daysOfWeekMin) + $startOfWeek; $n++) {
開發者ID:xdividr,項目名稱:wi,代碼行數:31,代碼來源:table-mini.php

示例3: sp_get_previous_month_text

 /**
  * @deprecated
  */
 function sp_get_previous_month_text()
 {
     _deprecated_function(__FUNCTION__, '2.0', 'tribe_get_previous_month_text()');
     return tribe_get_previous_month_text();
 }
開發者ID:brooklyntri,項目名稱:btc-plugins,代碼行數:8,代碼來源:deprecated.php

示例4: tribe_events_the_previous_month_link

 /**
  * Display an html link to the previous month. Used in the month navigation.
  *
  * No link will be returned if the link is to a month that precedes any existing
  * events.
  *
  * @return void
  * @uses tribe_get_previous_month_text()
  **/
 function tribe_events_the_previous_month_link()
 {
     $html = '';
     $url = tribe_get_previous_month_link();
     $date = Tribe__Events__Main::instance()->previousMonth(tribe_get_month_view_date());
     if ($date >= tribe_events_earliest_date(Tribe__Events__Date_Utils::DBYEARMONTHTIMEFORMAT)) {
         $text = tribe_get_previous_month_text();
         $html = '<a data-month="' . $date . '" href="' . esc_url($url) . '" rel="prev"><span>&laquo;</span> ' . $text . ' </a>';
     }
     echo apply_filters('tribe_events_the_previous_month_link', $html);
 }
開發者ID:simple-beck,項目名稱:project-gc,代碼行數:20,代碼來源:month.php

示例5: tribe_events_the_previous_month_link

 /**
  * Display an html link to the previous month. Used in the month navigation.
  *
  * @return void
  * @author Jessica Yazbek
  * @uses tribe_get_previous_month_text()
  * @since 3.0
  **/
 function tribe_events_the_previous_month_link()
 {
     $url = tribe_get_previous_month_link();
     $date = TribeEvents::instance()->previousMonth(tribe_get_month_view_date());
     $text = tribe_get_previous_month_text();
     $html = '<a data-month="' . $date . '" href="' . $url . '" rel="prev"><span>&laquo;</span> ' . $text . ' </a>';
     echo apply_filters('tribe_events_the_previous_month_link', $html);
 }
開發者ID:donwea,項目名稱:nhap.org,代碼行數:16,代碼來源:month.php

示例6: tribe_events_the_previous_month_link

 /**
  * Display an html link to the previous month. Used in the month navigation.
  *
  * No link will be returned if the link is to a month that precedes any existing
  * events.
  *
  * @uses tribe_get_previous_month_text()
  **/
 function tribe_events_the_previous_month_link()
 {
     $html = '';
     $url = tribe_get_previous_month_link();
     $date = Tribe__Events__Main::instance()->previousMonth(tribe_get_month_view_date());
     $earliest_event_date = tribe_events_earliest_date(Tribe__Date_Utils::DBYEARMONTHTIMEFORMAT);
     // Only form the link if a) we have a known earliest event date and b) the previous month date is the same or later
     if ($earliest_event_date && $date >= $earliest_event_date) {
         $text = tribe_get_previous_month_text();
         $html = '<a data-month="' . $date . '" href="' . esc_url($url) . '" rel="prev"><span>&laquo;</span> ' . $text . ' </a>';
     }
     echo apply_filters('tribe_events_the_previous_month_link', $html);
 }
開發者ID:duongnguyen92,項目名稱:tvd12v2,代碼行數:21,代碼來源:month.php


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