| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?php
- /**
- * The template for displaying the header
- *
- * Displays all of the head element and everything up until the "site-content" div.
- *
- * @package WordPress
- * @subpackage Taskereasy
- * @since Taskereasy 1.0.0
- */
- ?>
- <!DOCTYPE HTML>
- <html <?php language_attributes(); ?>>
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link href="https://unpkg.com/ionicons@4.5.10-0/dist/css/ionicons.min.css" rel="stylesheet">
- <?php
- taskereasy_favicon();
- wp_head();
- ?>
- </head>
- <body <?php body_class(); ?>>
- <!-- Header -->
- <?php
- $header_style = (taskereasy_get_config('header_style') == 'header_style_2') ? 'nav-stacked transparent' : '';
- $header_top_transparent = (taskereasy_get_config('header_style') == 'header_style_2') ? 'transparent' : 'top-header';
- $header_bottom_transparent = (taskereasy_get_config('header_style') == 'header_style_2') ? 'transparent' : 'bottom-header';
- $top_header = (taskereasy_get_config('topHeader-enable') == '1') ? '' : 'hide_top_header';
- $phn_info = (taskereasy_get_config('header-top-phone') != '') ? taskereasy_get_config('header-top-phone') : '';
- ?>
- <header id="header" class="<?php echo esc_attr($header_style); ?>">
- <div class="header-top primary-bg <?php echo esc_attr($top_header) . ' ' . esc_attr($header_top_transparent); ?>" >
- <div class="container">
- <div class="row">
- <div class="col-6">
- <?php if(taskereasy_get_config('header-top-social') == '1'){ ?>
- <div class="follow-us">
- <ul>
- <?php if(taskereasy_get_config('facebook')) { ?>
- <li><a href="<?php echo esc_url(taskereasy_get_config('facebook')); ?>"><i class="fa fa-facebook"></i></a></li>
- <?php }
- if(taskereasy_get_config('twitter')) { ?>
- <li><a href="<?php echo esc_url(taskereasy_get_config('twitter')); ?>"><i class="fa fa-twitter"></i></a></li>
- <?php }
- if(taskereasy_get_config('linkedin')) { ?>
- <li><a href="<?php echo esc_url(taskereasy_get_config('linkedin')); ?>"><i class="fa fa-linkedin"></i></a></li>
- <?php }
- if(taskereasy_get_config('instagram')) { ?>
- <li><a href="<?php echo esc_url(taskereasy_get_config('instagram')); ?>"><i class="fa fa-instagram"></i></a></li>
- <?php }
- if(taskereasy_get_config('youtube')) { ?>
- <li><a href="<?php echo esc_url(taskereasy_get_config('youtube')); ?>"><i class="fa fa-youtube"></i></a></li>
- <?php }
- if(taskereasy_get_config('pinterest')) { ?>
- <li><a href="<?php echo esc_url(taskereasy_get_config('pinterest')); ?>"><i class="fa fa-pinterest"></i></a></li>
- <?php } ?>
- </ul>
- </div>
- <?php } ?>
- <div class="contact-info">
- <ul>
- <li><?php echo esc_html($phn_info); ?></li>
- </ul>
- </div>
- </div>
- <div class="col-6">
- <div class="text-right">
- <div class="header-links">
- <ul>
- <!--login-->
- <?php if(taskereasy_get_config('hide-user-login') == '1'){ ?>
- <li><a href="<?php echo esc_url(taskereasy_get_config('login-url')); ?>"><?php echo esc_html(taskereasy_get_config('login-text')); ?></a></li>
- <?php } ?>
- <!--support-->
- <?php if(taskereasy_get_config('hide-support') == '1'){ ?>
- <li><a href="<?php echo esc_url(taskereasy_get_config('support-url')); ?>"><?php echo esc_html(taskereasy_get_config('support-text')); ?></a></li>
- <?php } ?>
- </ul>
- </div>
- <?php
- if(taskereasy_get_config('header-top-search') == '1'){
- get_search_form();
- }
- ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Navigation -->
- <nav id="navigatio-_bar" class="navbar navbar-expand-lg navbar-default <?php echo esc_attr($header_bottom_transparent); ?>">
- <div class="container">
- <div class="ta-navbar-container">
- <div class="navbar-header clearfix">
- <div class="logo">
- <?php $logo = taskereasy_get_config('header-logo'); ?>
- <a href="<?php echo get_site_url(); ?>">
- <?php if(!empty($logo['url'])) { ?>
- <img src="<?php echo esc_url($logo['url']); ?>" alt="<?php echo bloginfo('name') ?>"/>
- <?php } else { ?>
- <h3><?php echo esc_html('Taskereasy'); ?></h3>
- <?php } ?>
- </a>
- </div>
- <!-- /Logo -->
- <button id="menu-slide" data-target="#navigation" aria-expanded="false" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- </div>
- <div class="ta-navbar-inner-container collapse navbar-collapse" id="navigation">
- <?php taskereasy_primary_menu(); ?>
- <?php if(taskereasy_get_config('hide-cta')){ ?>
- <a href="<?php echo !empty(taskereasy_get_config('cta-url')) ? esc_url(taskereasy_get_config('cta-url')) : esc_url(esc_html__('#', 'taskereasy')); ?>" class="btn header-nav-btn">
- <?php echo !empty(taskereasy_get_config('cta-text')) ? esc_html(taskereasy_get_config('cta-text')) : esc_html__('Enter Text', 'taskereasy'); ?>
- </a>
- <?php } ?>
- </div>
- </div>
- </div>
- </nav>
- <!-- Navigation end -->
- </header>
- <!-- /Header -->
|