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();
?>
'>				
					<?php 
echo tribe_get_next_month_text();
?>
 &#x2192; 
					</a>
               <img src="<?php 
echo esc_url(admin_url('images/wpspin_light.gif'));
?>
" class="ajax-loading" id="ajax-loading" alt="" style='display: none'/>
				</span>
			</span>

			<span class='tribe-events-calendar-buttons'> 
示例#2
0
 /**
  * @deprecated
  */
 function sp_get_next_month_link()
 {
     _deprecated_function(__FUNCTION__, '2.0', 'tribe_get_next_month_link()');
     return tribe_get_next_month_link();
 }
示例#3
0
文件: gridview.php 项目: uoyknaht/kc
    $form = ob_get_clean();
    $tribeOptions = get_option('tribe_events_calendar_options', array());
    $eventsSlug = $tribeOptions['eventsSlug'];
    // works in localhost:
    // $needle = get_bloginfo('siteurl') . '/' . $eventsSlug;
    // $replacement = get_bloginfo('siteurl') . '/' . pll_current_language('slug') . '/' . $eventsSlug;
    // works online:
    $needle = substr(get_bloginfo('siteurl'), 0, strlen(get_bloginfo('siteurl')) - 3) . '/' . $eventsSlug;
    $replacement = get_bloginfo('siteurl') . '/' . $eventsSlug;
    $form = str_replace($needle, $replacement, $form);
    echo $form;
}
?>
			<span class='tribe-events-next-month'>
				<a href='<?php 
echo kcsite_multilingualizeUrl(tribe_get_next_month_link());
?>
' class="tribe-pjax tribe-month-navigator help-inline">
				<?php 
//echo tribe_get_next_month_text();
?>
				</a>
           <img src="<?php 
echo esc_url(admin_url('images/wpspin_light.gif'));
?>
" class="ajax-loading" id="ajax-loading" alt="" style='display: none'/>
			</span>
		</span>

		<span class='tribe-events-calendar-buttons'>
			<a class='tribe-events-button-off' href='<?php 
示例#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);
 }