<div class="header-wrap">
  <div class="custom-header default-header relative">
    <div class="wrap">
      <div class="table">
        <?php do_action( 'before_branding' ); ?>
        <div class="site-branding">
          <?php if ( has_post_thumbnail() ) : ?>
          <?php
                        printf(
                            '<a href="%s" style="line-height:0;display:inline-block;"><img id="%s" src="%s" data-main="%s" data-sticky="%s" alt="%s" /></a>',
                            trailingslashit( home_url() ),
                            'wpctp-logo',
                            esc_url( wpctp_get_option( 'transparent_logo' ) ),
                            esc_url( wpctp_get_option( 'transparent_logo' ) ),
                            esc_url( wpctp_get_option( 'sticky_logo' ) ),
                            get_bloginfo( 'name' )
                        );
                    ?>
          <?php else : ?>
          <?php
                        printf(
                            '<a href="%s" style="line-height:0;display:inline-block;"><img id="%s" src="%s" data-main="%s" data-sticky="%s" alt="%s" /></a>',
                            trailingslashit( home_url() ),
                            'wpctp-logo',
                            esc_url( wpctp_get_option( 'logo' ) ),
                            esc_url( wpctp_get_option( 'logo' ) ),
                            esc_url( wpctp_get_option( 'sticky_logo' ) ),
                            get_bloginfo( 'name' )
                        );
                    ?>
          <?php endif; ?>
        </div>
        <?php do_action( 'before_navigation' ); ?>
        <?php if ( has_nav_menu( 'primary' ) ) : ?>
        <div class="navigation-top default-navigation">
          <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'wpctp' ); ?>">
            <?php wp_nav_menu( array(
                                'theme_location' => 'primary',
                                'menu_id'        => 'primary-menu',
                            ) ); ?>
          </nav>
          <!-- #site-navigation --> 
          
        </div>
        <!-- .navigation-top -->
        
        <?php endif; ?>
        <?php do_action( 'before_search_icon' ); ?>
        <div class="search-icon-wrap table-cell"><a class="wpctp-search-icon fa fa-search"></a></div>
        <?php do_action( 'after_search_icon' ); ?>
      </div>
      <div class="wpctp-search-form" style="display:none;">
        <?php get_search_form(); ?>
      </div>
    </div>
  </div>
</div>
