Exemplo n.º 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);
 }
Exemplo n.º 2
0
        ?>
</a>
		<?php 
    }
    ?>
		</div>

	<?php 
} elseif (tribe_is_upcoming()) {
    ?>
		<div class="col-xs-6 text-right">
		<?php 
    if (get_next_posts_link()) {
        ?>
 
			<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');
        ?>
</a>
		<?php 
    }
    ?>

		</div>
	<?php 
}
?>
</div>
Exemplo n.º 3
0
 /**
  * @deprecated
  */
 function sp_get_upcoming_link()
 {
     _deprecated_function(__FUNCTION__, '2.0', 'tribe_get_upcoming_link()');
     return tribe_get_upcoming_link();
 }