<?php 
// list admin link
$current_user = wp_get_current_user();
?>
	<div id="not-user">
		<?php 
_e('Not', 'tribe-events-community');
?>
		<i><?php 
echo esc_html($current_user->display_name);
?>
</i> ?
		<a href="<?php 
echo esc_url(tribe_community_events_logout_url());
?>
">
			<?php 
_e('Log Out', 'tribe-events-community');
?>
		</a>
	</div>

	<div style="clear:both"></div>

	<?php 
// list pagination
if (!$events->have_posts()) {
    $this->enqueueOutputMessage(__('There are no upcoming events in your queue.', 'tribe-events-community'));
}
<?php

/**
 * Header links for edit forms.
 *
 * Override this template in your own theme by creating a file at
 * [your-theme]/tribe-events/community/modules/header-links.php
 *
 * @package TribeCommunityEvents
 * @since  3.1
 * @author Modern Tribe Inc.
 *
 */
if (!defined('ABSPATH')) {
    die('-1');
}
$current_user = wp_get_current_user();
if (is_user_logged_in()) {
    echo '<div id="my-events"><a href="' . tribe_community_events_list_events_link() . '" class="button vamtam-button button-border accent2 hover-accent1"><span class="btext">' . __('My Events', 'tribe-events-community') . '</span></a></div>';
    echo '<div id="not-user">' . __('Not', 'tribe-events-community') . ' <i>' . $current_user->display_name . '</i>? <a href="' . tribe_community_events_logout_url() . '">' . __('Log Out', 'tribe-events-community') . '</a></div>';
    echo '<div style="clear:both"></div>';
}
echo tribe_community_events_get_messages();
Exemple #3
0

	<?php 
// list admin link
$current_user = wp_get_current_user();
?>
	<div id="not-user">
		<?php 
_e('Not', 'tribe-events-community');
?>
		<i><?php 
echo $current_user->display_name;
?>
</i> ?
		<a href="<?php 
echo tribe_community_events_logout_url();
?>
">
			<?php 
_e('Log Out', 'tribe-events-community');
?>
		</a>
	</div>

	<div style="clear:both"></div>

	<?php 
// list pagination
if (!$events->have_posts()) {
    $this->enqueueOutputMessage(__('There are no upcoming events in your queue.', 'tribe-events-community'));
}