| 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/ |
Upload File : |
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package omexo
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KF75Z99');</script>
<!-- End Google Tag Manager -->
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="//gmpg.org/xfn/11">
<?php
$omexo_option = get_option('omexo_opt');
$header_style = omexo_array_get($omexo_option, 'header-style') ? $omexo_option['header-style'] : '';
$page_title_style = omexo_array_get($omexo_option, 'page-title-style') ? $omexo_option['page-title-style'] : '';
$preloader = omexo_array_get($omexo_option, 'preloader') ? $omexo_option['preloader'] : '';
$enable_page_title = omexo_array_get($omexo_option, 'page-title-switch') ? $omexo_option['page-title-switch'] : '';
$enable_sticky_header = omexo_array_get($omexo_option, 'sticky-header') ? $omexo_option['sticky-header'] : '';
$transparent_header = omexo_array_get($omexo_option, 'transparent-header') ? $omexo_option['transparent-header'] : '';
$header_social_icons = omexo_array_get($omexo_option, 'header-social-icons') ? $omexo_option['header-social-icons'] : '';
if ($enable_sticky_header == true) {
$enable_sticky_header = 'enable-sticky';
} else {
$enable_sticky_header = '';
}
wp_head();
?>
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1084634136554407');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1084634136554407&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->
</head>
<body <?php body_class(); ?>>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KF75Z99"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<?php wp_body_open(); ?>
<div id="page" class="site">
<?php if ($preloader == true) : ?>
<!-- Preeloader -->
<div class="preloader">
<div class="d-table">
<div class="d-table-cell align-middle">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<!-- Start Sticky Search -->
<div class="sticky-search-form">
<div class="search-form-wrap">
<form action="<?php echo esc_url(get_post_type_archive_link('courses')); ?>" method="get" role="search">
<div class="search-form-inner">
<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__('Ara', 'omexo') ?>" class="form-control" />
<button type="submit"><i class="fa-solid fa-magnifying-glass"></i></button>
</div>
</form>
</div>
<span class="sticky-search-close"><i class="fa fa-times"></i></span>
</div>
<!-- End Sticky Search -->
<?php if (!function_exists('elementor_theme_do_location') || !elementor_theme_do_location('header')) : ?>
<header class="site-header <?php echo esc_attr('header-' . $header_style); ?> <?php echo esc_attr($enable_sticky_header); ?> <?php echo esc_attr($transparent_header == true ? 'enable-transparent' : 'disable-transparent'); ?>">
<?php
echo get_template_part('template-parts/header/header', 'promotion');
if (class_exists('Redux_Framework_Plugin')) {
if ($header_style == 'style-one') {
get_template_part('template-parts/header/header', 'style-one');
}
elseif ($header_style == 'style-two') {
get_template_part('template-parts/header/header', 'style-two');
}
else {
get_template_part('template-parts/header/header', 'style-one');
}
}
?>
</header><!-- #masthead -->
<div class="offcanvas-menu">
<div class="offcanvas-inner-wrap">
<div class="offcanvas-close-btn">
<button class="close-btn"><i class="fa fa-times"></i></button>
</div>
<div class="offcanvas-logo">
<?php
if (has_custom_logo()) {
the_custom_logo();
} else {
$header_logo = omexo_array_get($omexo_option, 'header-logo') ? $omexo_option['header-logo'] : '';
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="main-menu-mobile">
<nav class="main-navigation-mobile navigation no-list-style">
<?php
wp_nav_menu(array(
'theme_location' => 'main-menu',
'menu_id' => 'primary-menu',
'menu_class' => '',
));
?>
</nav><!-- #site-navigation -->
</div>
</div>
</div>
<?php endif; ?>
<?php if (class_exists('Redux_Framework_Plugin')) :
if ($page_title_style == 'layout-one') {
get_template_part('template-parts/page-title/styles/style', 'one');
} elseif ($page_title_style == 'layout-two') {
get_template_part('template-parts/page-title/styles/style', 'two');
} else {
get_template_part('template-parts/page-title/styles/style', 'default');
}
?>
<?php get_template_part('template-parts/page-title/page', 'title'); ?>
<?php else : ?>
<?php get_template_part('template-parts/page-title/page-title', 'default'); ?>
<?php endif; ?>
<div id="content" class="site-content">