diff options
| Commit | fb093e569036dcb0200afabdb29c83bc2db783d2 (patch) | |
|---|---|---|
| Author | 2020-07-15 10:10:01 +0300 | |
| Committer | 2020-07-15 10:10:01 +0300 | |
| Files | 71ee31bf39565ea6cff7b88b312bf430cf66248b /wp-content/themes/carmag/header.php | |
| tues-interns-2020-feature/registration.tar tues-interns-2020-feature/registration.tar.gz tues-interns-2020-feature/registration.zip | ||
| Parent | c09cfaaff21afdf1fa43aa81327611d3f848e7eb (diff) | |
| Parent | 860e362739eee6867b6617320ec9eae81865140a (diff) | |
Sync feature/registration with the latest master feature/registration
1 files changed, 10 insertions, 3 deletions
| -rw-r--r-- | wp-content/themes/carmag/header.php | 13 |
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; ?> |
