Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / themes / carmag / header.php
diff options
context:
space:
mode:
1 files changed, 10 insertions, 3 deletions
-rw-r--r--wp-content/themes/carmag/header.php13
diff --git a/wp-content/themes/carmag/header.php b/wp-content/themes/carmag/header.php
index ca35d75..a098e7d 100644
--- a/wp-content/themes/carmag/header.php
+++ b/wp-content/themes/carmag/header.php
@@ -51,13 +51,20 @@
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<nav id="site-navigation" class="main-navigation">
- <div class="menu-toggle" aria-controls="primary-menu" aria-expanded="false" onClick="toggleDrawer()">
+ <div class="menu-toggle" aria-expanded="false" onClick="toggleDrawer()">
<span></span>
<span></span>
<span></span>
</div>
- <div class="menu-primary-container">
- <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
+ <div class="menu-container">
+ <?php
+ if ( is_user_logged_in() ) {
+ wp_nav_menu( array( 'theme_location' => 'profile', 'menu_id' => 'profile-menu' ) );
+ } else {
+ wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) );
+ }
+ ?>
+
</div><!-- .menu-primary-container -->
</nav><!-- #site-navigation -->
<?php endif; ?>