/**
 * 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>';
}
Example #2
0
    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 -->
Example #3
0
			/**
			 * 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 -->
		<?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 -->
        }
        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 -->
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>
?>

	<!-- 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>