| Server IP : 178.63.100.251 / Your IP : 216.73.216.228 Web Server : LiteSpeed System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64 User : truewayi ( 1855) PHP Version : 7.4.33 Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/truewayi/public_html/wp-content/themes/omexo/template-parts/header/ |
Upload File : |
<?php
$omexo_option = get_option('omexo_opt');
$header_logo = omexo_array_get($omexo_option, 'header-logo') ? $omexo_option['header-logo'] : '';
$header_email = omexo_array_get($omexo_option, 'header-email') ? $omexo_option['header-email'] : '';
$header_phone = omexo_array_get($omexo_option, 'header-contact-number') ? $omexo_option['header-contact-number'] : '';
$header_email_icon = omexo_array_get($omexo_option, 'header-email-icon') ? $omexo_option['header-email-icon'] : '';
$header_phone_icon = omexo_array_get($omexo_option, 'header-contact-icon') ? $omexo_option['header-contact-icon'] : '';
$header_social_icons = omexo_array_get($omexo_option, 'header-social-icons') ? $omexo_option['header-social-icons'] : '';
$header_cart = omexo_array_get($omexo_option, 'header-cart') ? $omexo_option['header-cart'] : '';
$header_top = omexo_array_get($omexo_option, 'header-top') ? $omexo_option['header-top'] : '';
$header_search = omexo_array_get($omexo_option, 'header-search') ? $omexo_option['header-search'] : '';
$social_icons_switcher = omexo_array_get($omexo_option, 'social-icons-switcher') ? $omexo_option['social-icons-switcher'] : '';
$transparent_header = omexo_array_get($omexo_option, 'transparent-header') ? $omexo_option['transparent-header'] : '';
$login_register_btn = omexo_array_get($omexo_option, 'header-top-login-register-title') ? $omexo_option['header-top-login-register-title'] : '';
$login_register_btn_url = omexo_array_get($omexo_option, 'header-top-login-register-title-url') ? $omexo_option['header-top-login-register-title-url'] : '';
$header_search_heading = omexo_array_get($omexo_option, 'header-search-form-heading') ? $omexo_option['header-search-form-heading'] : '';
$header_top_pormotion_text = omexo_array_get($omexo_option, 'header-top-promotion-text') ? $omexo_option['header-top-promotion-text'] : '';
$header_search_placeholder = omexo_array_get($omexo_option, 'header-search-form-placeholder') ? $omexo_option['header-search-form-placeholder'] : '';
$header_search_icon = omexo_array_get($omexo_option, 'header-search-icon') ? $omexo_option['header-search-icon'] : '';
$header_cta_btn_text = omexo_array_get($omexo_option, 'cta-btn-text') ? $omexo_option['cta-btn-text'] : '';
$header_cta_btn_url = omexo_array_get($omexo_option, 'cta-btn-url') ? $omexo_option['cta-btn-url'] : '';
?>
<?php if ($header_top == true) : ?>
<!-- start header top area -->
<div class="header-top-area style-three">
<div class="header-custom-container">
<div class="header-top-wrap">
<!-- start contact info -->
<?php if (!empty($header_email) || !empty($header_phone)) : ?>
<div class="header-contact-info">
<ul>
<?php if (!empty($header_email)) : ?>
<li><a href="mailto:<?php echo esc_html($header_email); ?>"><span><i class="fa-solid fa-<?php echo esc_attr($header_email_icon); ?>"></i></span>
<?php echo esc_html($header_email); ?></a></li>
<?php endif; ?>
<?php if (!empty($header_phone)) : ?>
<li><a href="tel:<?php echo esc_html($header_phone); ?>"><span><i class="fa-solid fa-<?php echo esc_attr($header_phone_icon); ?>"></i></span>
<?php echo esc_html($header_phone); ?></a></li>
<?php endif; ?>
</ul>
</div>
<?php endif; ?>
<?php if(!empty($header_top_pormotion_text)):?>
<div class="promotion-text">
<span><?php echo esc_html__($header_top_pormotion_text, 'omexo');?></span>
</div>
<?php endif;?>
<?php if ($social_icons_switcher == true) : ?>
<div class="header-top-social">
<ul class="no-list-style">
<?php
foreach ($header_social_icons as $header_social_icon => $icon_name) {
if ($icon_name) { ?>
<li>
<a href="<?php echo esc_url($icon_name) ?>">
<i class="fa-brands
<?php switch ($header_social_icon) {
case "facebook":
echo esc_attr('fa-' . $header_social_icon . '-f');
break;
case "linkedin":
echo esc_attr('fa-' . $header_social_icon . '-in');
break;
case "twitter":
echo esc_attr('fa-x-' . $header_social_icon);
break;
default:
echo esc_attr('fa-' . $header_social_icon);
} ?>">
</i>
</a>
</li>
<?php }
} ?>
</ul>
</div>
<?php endif; ?>
<!-- end contact info -->
<?php if(!empty($login_register_btn)):?>
<div class="login-register-btn">
<a href="<?php echo esc_url($login_register_btn_url);?>"><?php echo esc_html__($login_register_btn, 'omexo');?></a>
</div>
<?php endif;?>
</div>
</div>
</div>
<?php endif; ?>
<!-- end header top area-->
<!-- start header bottom area -->
<div class="header-btm-area">
<div class="header-sticky-menu">
<div class="header-custom-container">
<div class="main-menu-area">
<div class="site-branding">
<div class="main-logo">
<?php
if (has_custom_logo()) {
the_custom_logo();
} else {
if (!empty($header_logo['url'])) { ?>
<a href="<?php echo esc_url(home_url('/')); ?>">
<img src="<?php echo esc_url($header_logo['url']); ?>" alt="<?php esc_attr(bloginfo('name')); ?>">
</a>
<?php } else { ?>
<h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
<?php }
}
?>
</div>
<div class="sticky-logo">
<?php
$header_transparent_logo = omexo_array_get($omexo_option, 'transparent-header-logo') ? $omexo_option['transparent-header-logo'] : '';
if (!empty($header_transparent_logo['url'])) { ?>
<a href="<?php echo esc_url(home_url('/')); ?>">
<img src="<?php echo esc_url($header_transparent_logo['url']); ?>" alt="<?php esc_attr(bloginfo('name')); ?>">
</a>
<?php } else { ?>
<h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
<?php }
?>
</div>
</div>
<!-- Start Main Menu -->
<div class="main-menu text-right">
<nav id="site-navigation" class="main-navigation navigation no-list-style text-right">
<?php
wp_nav_menu(array(
'theme_location' => 'main-menu',
'menu_id' => 'primary-menu',
));
?>
</nav><!-- #site-navigation -->
</div>
<!-- End Main Menu -->
<?php if ($header_search_icon == true) : ?>
<div class="header-search expand text-right">
<span class="search-icon"><i class="fa-solid fa-magnifying-glass"></i></span>
</div>
<?php endif; ?>
<?php if (class_exists('woocommerce') && $header_cart == true) : ?>
<div class="header-cart style-three text-right">
<span class="cart-btn"><?php omexo_wc_mini_cart(); ?></sapn>
</div>
<?php endif; ?>
<?php if(!empty($header_cta_btn_text)):?>
<div class="header-cta-btn text-right">
<a href="<?php echo esc_url($header_cta_btn_url);?>"><?php echo esc_html__($header_cta_btn_text, 'omexo');?> <i class="fa-solid fa-arrow-right"></i></a>
</div>
<?php endif;?>
<!-- start mobile menu wrap -->
<div class="mobile-menu-wrap">
<button class="header-menu-bar"><i class="fa-solid fa-bars"></i></button>
</div>
<!-- end mobile menu wrap -->
</div>
</div>
</div>
</div>
<!-- end header bottom area -->
<?php if ($header_search == true) : ?>
<div class="search-wrapper text-center">
<span class="search-form-close"><i class="fa-regular fa-circle-xmark"></i></span>
<?php if(!empty($header_search_heading)):?>
<h3><?php echo esc_html__($header_search_heading, 'omexo');?></h3>
<?php endif;?>
<!-- start header search -->
<div class="search-form">
<form method="get" action="<?php echo esc_url(get_post_type_archive_link('courses')); ?>">
<input type="hidden" name="ref" value="course">
<input type="text" value="<?php echo esc_attr(get_search_query()); ?>" name="s" placeholder="<?php echo esc_attr__($header_search_placeholder, 'omexo') ?>" class="form-control" />
<button type="submit"><i class="fa-solid fa-magnifying-glass"></i></button>
</form>
</div>
<!-- end header search -->
</div>
<?php endif; ?>