当前位置: 首页>>代码示例>>PHP>>正文


PHP tribe_the_prev_event_link函数代码示例

本文整理汇总了PHP中tribe_the_prev_event_link函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_the_prev_event_link函数的具体用法?PHP tribe_the_prev_event_link怎么用?PHP tribe_the_prev_event_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了tribe_the_prev_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>';
}
开发者ID:poweronio,项目名称:mbsite,代码行数:25,代码来源:grve-events-calendar-functions.php

示例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>&laquo;</span> %title%');
?>
</li>
			<li class="tribe-events-nav-next"><?php 
tribe_the_next_event_link('%title% <span>&raquo;</span>');
?>
</li>
		</ul>
		<!-- .tribe-events-sub-nav -->
	</div>
	<!-- #tribe-events-footer -->

</div><!-- #tribe-events-content -->
开发者ID:h3rodev,项目名称:sometheme,代码行数:31,代码来源:single-event.php

示例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>&laquo;</span> %title%' ) ?></li>
			<li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>&raquo;</span>' ) ?></li>
		</ul>
		<!-- .tribe-events-sub-nav -->
	</div>
	<!-- #tribe-events-footer -->

</div><!-- #tribe-events-content -->
开发者ID:simple-beck,项目名称:project-gc,代码行数:30,代码来源:single-event.php

示例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('&laquo; %title%');
?>
</li>
			<li class="tribe-events-nav-next"><?php 
tribe_the_next_event_link('%title% &raquo;');
?>
</li>
		</ul><!-- .tribe-events-sub-nav -->
	</div><!-- #tribe-events-footer -->

</div><!-- #tribe-events-content -->
开发者ID:angelayunwu,项目名称:english-channel-wordpress-theme,代码行数:30,代码来源:single-event.php

示例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 -->
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:30,代码来源:single-event.php

示例6: count

global $post;
$same_cat = count(wp_get_object_terms($post->ID, 'category', array('fields' => 'ids'))) > 0;
if ($post->post_type == 'portfolio') {
    $same_cat = false;
}
$view_all = wpv_get_option($post->post_type . '-all-items');
if (is_singular(array('tribe_events', 'tribe_organizer', 'tribe_venue')) && function_exists('tribe_get_events_link')) {
    $view_all = tribe_get_events_link();
}
$prev_anchor = '<span class="icon theme">' . wpv_get_icon('theme-arrow-left3') . '</span>';
$next_anchor = '<span class="icon theme">' . wpv_get_icon('theme-arrow-right3') . '</span>';
?>
<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>
开发者ID:petrfaitl,项目名称:wordpress-event-theme,代码行数:31,代码来源:post-siblings-links.php

示例7: esc_url

?>

	<!-- Event footer -->
	<div id="tribe-events-footer">
		<!-- Navigation -->
	    <div class="tribe-events-back">
		      <a href="<?php 
echo esc_url(tribe_get_events_link());
?>
"> <?php 
printf('&laquo; ' . 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>&laquo;</span> Date précédente');
?>
</li-->
			        <li class="tribe-events-nav-next"><?php 
tribe_the_next_event_link('Date suivante <span>&raquo;</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>
开发者ID:gabriel-dehan,项目名称:erdf-sessions,代码行数:31,代码来源:single-event.php


注:本文中的tribe_the_prev_event_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。