balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

header-style-02.php (2473B)


      1 <?php
      2 /**
      3  * header style 02
      4  * @since 2.0.0
      5  *
      6  * */
      7 $navbar_button_url = !empty(cs_get_option('header_three_navbar_btn_url')) ? cs_get_option('header_three_navbar_btn_url') : esc_url('#');
      8 $navbar_button_text = !empty(cs_get_option('header_three_navbar_btn_text')) ? cs_get_option('header_three_navbar_btn_text') : esc_html__('Download','aapside');
      9 ?>
     10 <div class="header-style-02">
     11 	<nav class="navbar navbar-area navbar-expand-lg navbar-style-transparent">
     12 		<div class="container nav-container">
     13 			<div class="responsive-mobile-menu">
     14 				<div class="logo-wrapper">
     15 					<?php
     16 					$header_three_logo = cs_get_option('header_three_logo');
     17 					if (has_custom_logo() && empty($header_three_logo['id'])){
     18 						the_custom_logo();
     19 					}elseif (!empty($header_three_logo['id'])){
     20 						printf('<a class="site-logo" href="%1$s"><img src="%2$s" alt="%3$s"/></a>',get_home_url(),$header_three_logo['url'],$header_three_logo['alt']);
     21 					}
     22 					else{
     23 						printf('<h2 class="site-title" href="%1$s">%2$s</h2>',get_home_url(),get_bloginfo('title'));
     24 					}
     25 					?>
     26 				</div>
     27 				<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#appside_main_menu"
     28 				        aria-expanded="false" aria-label="Toggle navigation">
     29 					<span class="navbar-toggler-icon"></span>
     30 				</button>
     31 			</div>
     32 			<?php
     33 			$menu_args = [
     34 				'theme_location'  => 'main-menu',
     35 				'container_class' => 'collapse navbar-collapse',
     36 				'container_id'    => 'appside_main_menu',
     37 				'menu_class'      => 'navbar-nav',
     38 			];
     39 			if (defined('APPSIDE_MASTER_SELF_PATH')){
     40 				$menu_args['walker'] = new Appside_Megamenu_Walker();
     41 			}
     42 			wp_nav_menu($menu_args);
     43 
     44 			?>
     45 			<?php
     46 			if(!empty(cs_get_option('header_three_navbar_btn')) || !empty(cs_get_option('header_three_navbar_btn_two'))):
     47 				?>
     48 				<div class="nav-right-content">
     49 					<ul>
     50 						<li class="button-wrapper">
     51 							<?php if (!empty(cs_get_option('header_three_navbar_btn'))):?>
     52 							<a href="<?php echo esc_url($navbar_button_url)?>" class="boxed-btn btn-rounded"><?php echo esc_html($navbar_button_text);?></a>
     53 							<?php endif;?>
     54 							<?php if (!empty(cs_get_option('header_three_navbar_btn_two'))):?>
     55 							<a href="<?php echo esc_url(cs_get_option('header_three_navbar_btn_two_url'))?>" class="boxed-btn btn-rounded"><?php echo esc_html(cs_get_option('header_three_navbar_btn_two_text'));?></a>
     56 							<?php endif;?>
     57 						</li>
     58 					</ul>
     59 				</div>
     60 			<?php endif;?>
     61 		</div>
     62 	</nav>
     63 </div>