Created
November 5, 2018 19:30
-
-
Save Rayhanuc/f3eb3a1d5e454e0c379cc7ab4af98244 to your computer and use it in GitHub Desktop.
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
<header class="site-header"> | |
<div class="header-top-area"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-4"> | |
<div class="site-branding"> | |
<?php get_template_part('template-parts/headers/logo') ?> | |
</div><!-- .site-branding --> | |
</div><!-- col-md-4 end --> | |
<div class="col-md-8"> | |
<?php | |
$header_1_links = cs_get_option('header_1_links'); | |
if (!empty($header_1_links)) : | |
?> | |
<div class="header-right-btn header-1-colors"> | |
<?php foreach($header_1_links as $link) : ?> <!-- foreach loop start --> | |
<?php if(!empty($link['link'])) : ?><a<?php else : ?> <span <?php endif; ?> style="background: <?php echo esc_attr( $link['bg_color'] ) ?>; color: <?php echo esc_attr( $link['text_color'] ) ?>;" target="<?php echo esc_attr( $link['tab'] ) ?>" href="<?php echo esc_url( $link['link'] ) ?>"><?php echo esc_html( $link['link_text'] ) ?><?php if(!empty($link['link'])) : ?></a> <?php else : ?> </span><?php endif; ?> | |
<?php endforeach; ?> <!-- foreach loop end --> | |
</div> | |
<?php endif; ?> | |
</div> | |
</div> | |
</div> | |
</div><!-- Header top area end --> | |
<div class="header-bottom-area"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8"> | |
<?php | |
wp_nav_menu( array( | |
'theme_location' => 'menu-1', | |
'menu_id' => 'primary-menu', | |
) ); | |
?> | |
</div> | |
<div class="col-md-4"> | |
<div class="header-search-form"> | |
<?php get_search_form() ;?> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</header><!-- header bottom area end --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment