示例#1
0
/**
 * Output a link for the mini calendar month next nav, includes data attributes needed to update the month with ajax
 *
 * @return void
 * @since 3.0
 * @author Jessica Yazbek
 **/
function tribe_events_the_mini_calendar_next_link()
{
    $tribe_ecp = TribeEvents::instance();
    $args = tribe_events_get_mini_calendar_args();
    $html = '<a class="tribe-mini-calendar-nav-link next-month" href="#" data-month="' . $tribe_ecp->nextMonth($args['eventDate']) . '-01" title="' . tribe_get_next_month_text() . '"><span>&raquo;</span></a>';
    echo apply_filters('tribe_events_the_mini_calendar_prev_link', $html);
}
示例#2
0
文件: table-mini.php 项目: xdividr/wi
				<?php 
echo $tribe_ecp->monthsShort[date('M', $date)];
echo date(' Y', $date);
?>
			</span>
		</li>
		<li class="tribe-ajax-nav">
			<a class="tribe-mini-ajax next-month" href="#" data-month="<?php 
echo $tribe_ecp->nextMonth($current_date);
?>
" title="<?php 
echo 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();
?>
示例#3
0
 /**
  * @deprecated
  */
 function sp_get_next_month_text()
 {
     _deprecated_function(__FUNCTION__, '2.0', 'tribe_get_next_month_text()');
     return tribe_get_next_month_text();
 }
示例#4
0
 /**
  * Display an html link to the next month. Used in the month navigation.
  *
  * @return void
  * @uses tribe_get_next_month_text()
  **/
 function tribe_events_the_next_month_link()
 {
     $html = '';
     $url = tribe_get_next_month_link();
     $text = tribe_get_next_month_text();
     // Check if $url is populated (an empty string may indicate the date was out-of-bounds, ie on 32bit servers)
     if (!empty($url)) {
         $date = Tribe__Events__Main::instance()->nextMonth(tribe_get_month_view_date());
         if ($date <= tribe_events_latest_date(Tribe__Events__Date_Utils::DBYEARMONTHTIMEFORMAT)) {
             $html = '<a data-month="' . $date . '" href="' . esc_url($url) . '" rel="next">' . $text . ' <span>&raquo;</span></a>';
         }
     }
     echo apply_filters('tribe_events_the_next_month_link', $html);
 }
示例#5
0
文件: month.php 项目: donwea/nhap.org
 /**
  * Display an html link to the next month. Used in the month navigation.
  *
  * @return void
  * @author Jessica Yazbek
  * @uses tribe_get_next_month_text()
  * @since 3.0
  **/
 function tribe_events_the_next_month_link()
 {
     $url = tribe_get_next_month_link();
     try {
         $date = TribeEvents::instance()->nextMonth(tribe_get_month_view_date());
         $text = tribe_get_next_month_text();
         $html = '<a data-month="' . $date . '" href="' . $url . '" rel="next">' . $text . ' <span>&raquo;</span></a>';
     } catch (OverflowException $e) {
         $html = '';
     }
     echo apply_filters('tribe_events_the_next_month_link', $html);
 }
示例#6
0
 /**
  * Display an html link to the next month. Used in the month navigation.
  *
  * @return void
  * @author Jessica Yazbek
  * @uses tribe_get_next_month_text()
  * @since 3.0
  **/
 function tribe_events_the_next_month_link()
 {
     $url = tribe_get_next_month_link();
     $date = TribeEvents::instance()->nextMonth(tribe_get_month_view_date());
     $text = tribe_get_next_month_text();
     $html = '<a data-month="' . $date . '" href="' . $url . '" rel="pref">' . $text . ' &raquo;</a>';
     echo apply_filters('tribe_events_the_next_month_link', $html);
 }