• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tribe_get_previous_month_text函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tribe_get_recurrence_start_dates函数代码示例发布时间:2022-05-23
下一篇:
PHP tribe_get_phone函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap