Created
September 18, 2022 05:26
-
-
Save genesis16/5330d1688993ec02f0b5b9efbea2fb55 to your computer and use it in GitHub Desktop.
Bootstrap header
This file contains 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
<!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<?php | |
/** | |
* dessau_select_header_meta hook | |
* | |
* @see dessau_select_header_meta() - hooked with 10 | |
* @see dessau_select_user_scalable_meta - hooked with 10 | |
* @see dessau_core_set_open_graph_meta - hooked with 10 | |
*/ | |
do_action( 'dessau_select_header_meta' ); | |
wp_head(); ?> | |
</head> | |
<body> | |
<header role="banner"> | |
<nav id="navbar-primary" class="navbar" role="navigation"> | |
<div class="container-fluid"> | |
<!-- Brand and toggle get grouped for better mobile display --> | |
<div class="navbar-header"> | |
</div> | |
<div class="collapse navbar-collapse" id="navbar-primary-collapse"> | |
<?php | |
$menu_name = 'left-wp-mobile-menu'; //menu slug or menu location | |
$locations = get_nav_menu_locations(); | |
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); | |
$menuitemsleft = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) ); | |
$menu_nameR = 'right-wp-mobile-menu'; //menu slug or menu location | |
$locationsR = get_nav_menu_locations(); | |
$menuR = wp_get_nav_menu_object( $locationsR[ $menu_nameR ] ); | |
$menuitemsright = wp_get_nav_menu_items( $menuR->term_id, array( 'order' => 'DESC' ) ); | |
?> | |
<ul class="nav navbar-nav main3parts"> | |
<?php $k=1; foreach($menuitemsleft as $menuitemsD) { | |
if($menuitemsD->menu_item_parent == '0'){ ?> | |
<li class="active-main<?php echo $menuitemsD->ID; ?>"><a href="<?php echo $menuitemsD->url; ?>"><?php echo $menuitemsD->title; ?></a></li> | |
<?php } } ?> | |
<li class="active-main5809"><a href="/portfolio">Portfolio</a> | |
<ul class="sub-menu1"><li class="sub-item"><a href="https://alphadevsite2.co/portfolio/general-practice/"> General Practice</a></li> | |
<li class="sub-item"><a href="https://alphadevsite2.co/portfolio/dental/"> Dental</a></li> | |
<li class="sub-item"><a href="https://alphadevsite2.co/portfolio/radiology/"> Radiology</a></li> | |
<li class="sub-item"><a href="https://alphadevsite2.co/portfolio/specialist-services/"> Specialist Services</a></li></ul> | |
</li> | |
<li><a href="https://alphadevsite2.co/"><img id="logo-navbar-middle" src="https://alphadevsite2.co/wp-content/uploads/2022/09/EH-Logo_Gradient-1024x336-1.png" width="200" alt="Logo"></a></li> | |
<?php $k=1; foreach($menuitemsright as $menuitemsDR) { ?> | |
<li><a href="<?php echo $menuitemsDR->url; ?>"><?php echo $menuitemsDR->title; ?></a></li> | |
<?php }?> | |
</ul> | |
</div><!-- /.navbar-collapse --> | |
</div><!-- /.container-fluid --> | |
</nav> | |
</header><!-- header role="banner" --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment