コード例 #1
0
    die('-1');
}
$tribe_ecp = TribeEvents::instance();
?>
	
	<div id="tribe-events-content" class="grid">
      <!-- This title is here for ajax loading - do not remove if you wish to use ajax switching between month views -->
      <title><?php 
wp_title();
?>
</title>
		<div id='tribe-events-calendar-header' class="clearfix">
			<span class='tribe-events-month-nav'>
				<span class='tribe-events-prev-month'>
					<a href='<?php 
echo tribe_get_previous_month_link();
?>
'>
					&#x2190; <?php 
echo tribe_get_previous_month_text();
?>
					</a>
				</span>

				<?php 
tribe_month_year_dropdowns("tribe-events-");
?>
	
				<span class='tribe-events-next-month'>
					<a href='<?php 
echo tribe_get_next_month_link();
コード例 #2
0
 /**
  * @deprecated
  */
 function sp_get_previous_month_link()
 {
     _deprecated_function(__FUNCTION__, '2.0', 'tribe_get_previous_month_link()');
     return tribe_get_previous_month_link();
 }
コード例 #3
0
ファイル: gridview.php プロジェクト: uoyknaht/kc
// Don't load directly
if (!defined('ABSPATH')) {
    die('-1');
}
$tribe_ecp = TribeEvents::instance();
?>
	
<div id="tribe-events-content" class="grid" data-title="<?php 
wp_title();
?>
">
	<div id='tribe-events-calendar-header' class="clearfix">
		<span class='tribe-events-month-nav'>
			<span class='tribe-events-prev-month'>
				<a href='<?php 
echo kcsite_multilingualizeUrl(tribe_get_previous_month_link());
?>
' class="tribe-pjax tribe-month-navigator help-inline">
				<?php 
//echo tribe_get_previous_month_text();
?>
				</a>
			</span>

			<?php 
//tribe_month_year_dropdowns( "tribe-events-" );
?>
			<?php 
if (pll_current_language('slug') == 'lt') {
    tribe_month_year_dropdowns("tribe-events-");
} else {
コード例 #4
0
ファイル: month.php プロジェクト: simple-beck/project-gc
 /**
  * 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);
 }
コード例 #5
0
ファイル: month.php プロジェクト: donwea/nhap.org
 /**
  * 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);
 }
コード例 #6
0
ファイル: month.php プロジェクト: duongnguyen92/tvd12v2
 /**
  * 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);
 }