Created
December 22, 2016 19:20
-
-
Save jondcampbell/dfd636a34d23a075bd9a677559a16c47 to your computer and use it in GitHub Desktop.
messy mobile menu combo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function dpcc_add_slide_out_left_navigation(){ | |
| ob_start(); | |
| ?> | |
| <div id="left-nav"> | |
| <?php if ( is_user_logged_in() ) { ?> | |
| <div class="dpcc-more-slide-out-left-menu"> | |
| <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?> | |
| </div> | |
| <?php } ?> | |
| </div> | |
| <div id="mobile-left-nav"> | |
| <div class="dpcc-more-slide-out-left-menu"> | |
| <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> | |
| <?php if ( is_user_logged_in() ) { ?> | |
| <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?> | |
| <?php } ?> | |
| </div> | |
| </div> | |
| <?php | |
| echo ob_get_clean(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment