<nav class="main-navs no-ajax bp-navs single-screen-navs horizontal users-nav" id="object-nav" role="navigation"
	 aria-label="<?php esc_attr_e( 'Member menu', 'buddypress' ); ?>">
	<ul>
		<?php
		foreach ($nav_items as $key => $item) {
			// do not show sub items
			if (!empty($item['parent']) || empty(CommunityAlly_Members_Setup::PROFILE_MENU[$key])) {
				continue;
			}
		?>
			<li class="bp-personal-tab <?php echo empty($item['selected']) ? '' : 'current selected'; ?>">
				<a href="<?php echo esc_attr($item['url']); ?>" class="communityally-nav-<?php echo $key; ?>">
					<?php echo esc_attr($item['name']); ?>

					<?php if (!empty($item['count'])) { ?>
						<span class="count <?php echo $item['count-class']; ?>"><?php echo esc_html($item['count']); ?></span>
					<?php } ?>
				</a>
			</li>
		<?php } ?>
	</ul>
</nav>