Beispiel #1
0
 /**
  * Get a link to the next events
  *
  * @return string
  */
 function tribe_get_next_events_link()
 {
     $link = '';
     if (tribe_is_past() && (!empty($_REQUEST['tribe_paged']) && $_REQUEST['tribe_paged'] > 1)) {
         // if we're more than one page into the past, the next link will be in the past as well
         $link = tribe_get_past_link();
     } else {
         $link = tribe_get_upcoming_link();
     }
     return apply_filters('tribe_get_next_events_link', $link);
 }
Beispiel #2
0
    ?>
		</div>
	<?php 
}
?>

	
	<?php 
if (tribe_is_past()) {
    ?>
		<?php 
    if (get_query_var('paged') > 1) {
        ?>
			<div class="col-xs-6 text-right">
				<a href="<?php 
        echo tribe_get_past_link();
        ?>
" rel="next" class="btn-text"><?php 
        _e('Next <span class="hide-below-480">Classes</span> <span class="icon-arrow-right"></span>', 'tribe-events-calendar');
        ?>
</a>
		<?php 
    } elseif (!get_previous_posts_link()) {
        ?>
			<div class="col-xs-6 text-right">
				<a href="<?php 
        echo tribe_get_upcoming_link();
        ?>
" rel="next" class="btn-text"><?php 
        _e('Next <span class="hide-below-480">Classes</span> <span class="icon-arrow-right"></span>', 'tribe-events-calendar');
        ?>
Beispiel #3
0
 /**
  * @deprecated
  */
 function sp_get_past_link()
 {
     _deprecated_function(__FUNCTION__, '2.0', 'tribe_get_past_link()');
     return tribe_get_past_link();
 }