本文整理汇总了PHP中tribe_the_next_event_link函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_the_next_event_link函数的具体用法?PHP tribe_the_next_event_link怎么用?PHP tribe_the_next_event_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tribe_the_next_event_link函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: grve_print_header_item_event_navigation
/**
* Prints Header navigation for single events
*/
function grve_print_header_item_event_navigation($element_class = "grve-nav-wrapper")
{
echo '<div class="' . $element_class . '">';
echo ' <ul class="grve-post-nav">';
?>
<li class="grve-nav-right"><?php
echo tribe_the_next_event_link('<span class="grve-icon-nav-right"></span>');
?>
</li>
<li><a href="<?php
echo tribe_get_events_link();
?>
" class="grve-icon-th-large grve-backlink"></a></li>
<li class="grve-nav-left"><?php
echo tribe_the_prev_event_link('<span class="grve-icon-nav-left"></span>');
?>
</li>
<?php
echo ' </ul>';
echo '</div>';
}
示例2: comments_template
if (get_post_type() == TribeEvents::POSTTYPE && tribe_get_option('showComments', false)) {
comments_template();
}
?>
<?php
}
?>
<!-- Event footer -->
<div id="tribe-events-footer">
<!-- Navigation -->
<!-- Navigation -->
<h3 class="tribe-events-visuallyhidden"><?php
_e('Event Navigation', 'tribe-events-calendar');
?>
</h3>
<ul class="tribe-events-sub-nav">
<li class="tribe-events-nav-previous"><?php
tribe_the_prev_event_link('<span>«</span> %title%');
?>
</li>
<li class="tribe-events-nav-next"><?php
tribe_the_next_event_link('%title% <span>»</span>');
?>
</li>
</ul>
<!-- .tribe-events-sub-nav -->
</div>
<!-- #tribe-events-footer -->
</div><!-- #tribe-events-content -->
示例3: tribe_events_single_event_meta
/**
* The tribe_events_single_event_meta() function has been deprecated and has been
* left in place only to help customers with existing meta factory customizations
* to transition: if you are one of those users, please review the new meta templates
* and make the switch!
*/
if ( ! apply_filters( 'tribe_events_single_event_meta_legacy_mode', false ) ) {
tribe_get_template_part( 'modules/meta' );
} else {
echo tribe_events_single_event_meta();
}
?>
<?php do_action( 'tribe_events_single_event_after_the_meta' ) ?>
</div> <!-- #post-x -->
<?php if ( get_post_type() == Tribe__Events__Main::POSTTYPE && tribe_get_option( 'showComments', false ) ) comments_template() ?>
<?php endwhile; ?>
<!-- Event footer -->
<div id="tribe-events-footer">
<!-- Navigation -->
<h3 class="tribe-events-visuallyhidden"><?php printf( __( '%s Navigation', 'tribe-events-calendar' ), $events_label_singular ); ?></h3>
<ul class="tribe-events-sub-nav">
<li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '<span>«</span> %title%' ) ?></li>
<li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>»</span>' ) ?></li>
</ul>
<!-- .tribe-events-sub-nav -->
</div>
<!-- #tribe-events-footer -->
</div><!-- #tribe-events-content -->
示例4: comments_template
<?php
if (get_post_type() == TribeEvents::POSTTYPE && tribe_get_option('showComments', false)) {
comments_template();
}
?>
<?php
}
?>
<!-- Event footer -->
<div id="tribe-events-footer">
<!-- Navigation -->
<!-- Navigation -->
<h3 class="tribe-events-visuallyhidden"><?php
_e('Event Navigation', 'tribe-events-calendar');
?>
</h3>
<ul class="tribe-events-sub-nav">
<li class="tribe-events-nav-previous"><?php
tribe_the_prev_event_link('« %title%');
?>
</li>
<li class="tribe-events-nav-next"><?php
tribe_the_next_event_link('%title% »');
?>
</li>
</ul><!-- .tribe-events-sub-nav -->
</div><!-- #tribe-events-footer -->
</div><!-- #tribe-events-content -->
示例5: comments_template
}
comments_template();
}
?>
<?php
}
?>
<!-- Event footer -->
<div id="tribe-events-footer">
<!-- Navigation -->
<h3 class="tribe-events-visuallyhidden"><?php
printf(__('%s Navigation', 'tribe-events-calendar'), $events_label_singular);
?>
</h3>
<ul class="tribe-events-sub-nav">
<li class="tribe-events-nav-previous"><?php
tribe_the_prev_event_link('%title%');
?>
</li>
<li class="tribe-events-nav-next"><?php
tribe_the_next_event_link('%title%');
?>
</li>
</ul>
<!-- .tribe-events-sub-nav -->
</div>
<!-- #tribe-events-footer -->
</div><!-- #tribe-events-content -->
示例6: tribe_the_prev_event_link
<span class="post-siblings">
<?php
if (is_singular('tribe_events') && function_exists('tribe_the_prev_event_link')) {
tribe_the_prev_event_link($prev_anchor);
} else {
previous_post_link('%link', $prev_anchor, $same_cat);
}
?>
<?php
if (!empty($view_all)) {
?>
<a href="<?php
echo $view_all;
?>
" class="all-items"><?php
echo do_shortcode('[icon name="theme-grid"]');
?>
</a>
<?php
}
?>
<?php
if (is_singular('tribe_events') && function_exists('tribe_the_next_event_link')) {
tribe_the_next_event_link($next_anchor);
} else {
next_post_link('%link', $next_anchor, $same_cat);
}
?>
</span>
示例7: esc_url
<!-- Navigation -->
<div class="tribe-events-back">
<a href="<?php
echo esc_url(tribe_get_events_link());
?>
"> <?php
printf('« ' . esc_html__('All %s', 'the-events-calendar'), $events_label_plural);
?>
</a>
<ul class="tribe-events-sub-nav">
<!--li class="tribe-events-nav-previous"><?php
tribe_the_prev_event_link('<span>«</span> Date précédente');
?>
</li-->
<li class="tribe-events-nav-next"><?php
tribe_the_next_event_link('Date suivante <span>»</span>');
?>
</li>
</ul>
</div>
<h3 class="tribe-events-visuallyhidden"><?php
printf(esc_html__('%s Navigation', 'the-events-calendar'), $events_label_singular);
?>
</h3>
<!-- .tribe-events-sub-nav -->
</div>
<!-- #tribe-events-footer -->
</div><!-- #tribe-events-content -->