File: /www/wwwroot/aiwellbore.com/wp-content/themes/study-education-pro/header.php
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Study Education Pro
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php //echo get_template_directory_uri(); ?>/js/html5.js"></script>
<link rel="stylesheet" href="<?php //echo get_template_directory_uri(); ?>/css/ie.css" type="text/css" media="all" />
<![endif]-->
<?php
wp_head();
$customy_themedetails = custom_theme_all_parementercv();
?>
</head>
<body id="top" <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div class="maintopheader">
<div class="header-top">
<div class="container">
<!-- new style start-->
<div class="pp_topstrip">
<div class="top-align-right">
<div class="infobox ctravelheaderemail">
<?php
$study_education_pro_email = get_theme_mod('study_education_pro_email');
if (!empty($study_education_pro_email)) {
?>
<i class="fa fa-envelope"></i><?php
echo '<a title="' . esc_html($study_education_pro_email) . '" href="mailto:' . esc_html($study_education_pro_email) . '">' . esc_html($study_education_pro_email) . '</a>';
}
?>
</div>
<div class="infobox ctravelheaderphone">
<?php
$study_education_pro_phone = get_theme_mod('study_education_pro_phone');
if (!empty($study_education_pro_phone)) {
?>
<i class="fa fa-phone"></i>
<span class="phno">
<a title="<?php echo esc_html($study_education_pro_phone); ?>" href="tel:<?php echo esc_html($study_education_pro_phone); ?>"><?php echo esc_html($study_education_pro_phone); ?></a>
</span>
<?php } ?>
</div>
<div class="social-icons">
<?php
if (get_theme_mod('header_social_shortcode')) {
echo do_shortcode(get_theme_mod('header_social_shortcode', true));
}
?>
</div> </div>
<div class="clear"></div>
</div>
<!-- new style end -->
<div class="logo logo-left header-box">
<?php $description = get_bloginfo('description', 'display'); ?>
<?php
if (has_custom_logo()) {
$custom_logo_id = get_theme_mod('custom_logo');
$customlogo_img_alt = get_post_meta($custom_logo_id, '_wp_attachment_image_alt', true);
$customlogo_img_title = get_the_title($custom_logo_id);
$customlogimage = wp_get_attachment_image_src($custom_logo_id, 'headerlogo385and93');
$customlogo_img_url = $customlogimage[0];
?>
<a href="<?php echo esc_url(home_url('/')); ?>"> <?php study_education_the_custom_logo(); ?> </a>
<?php } else { ?>
<?php if (display_header_text() == true) { ?>
<h1><a title="<?php bloginfo('name'); ?>" href="<?php echo esc_url(home_url('/')); ?>"><?php bloginfo('name'); ?></a></h1>
<span class="tagline"><?php bloginfo('description'); ?></span>
<?php } ?>
<?php } ?>
</div> <!-- logo -->
<div class="header-box header-right">
<div class="header-navigation">
<div class="toggle">
<a class="toggleMenu" href="#">
<?php echo esc_html(get_theme_mod('header_menu_responsive_title')); ?>
</a>
</div><!-- toggle -->
<div class="header-nav">
<?php wp_nav_menu(array('theme_location' => 'primary')); ?>
</div><!-- nav --><div class="clear"></div>
</div> <!--header-navigation-->
</div><!--header-box header-right-->
<div class="clear"></div>
</div>
</div>
</div><!--maintopheader-->
<div class="clear"></div>
<?php if (is_home() || is_front_page()) { ?>
<?php
if (!empty(get_theme_mod('banners_shortcode'))) {
$short_code_slider = get_theme_mod('banners_shortcode');
echo do_shortcode($short_code_slider);
} else {
echo customy_slider_settings();
}
?>
<?php } else { ?>
<div class="innerbanner">
<?php
$header_image = get_header_image();
if (is_single() || is_archive() || is_category() || is_author() || is_search()) {
if (!empty($header_image)) {
echo '<img src="' . esc_url($header_image) . '" width="' . esc_html(get_custom_header()->width) . '" height="' . esc_html(get_custom_header()->height) . '" alt="" />';
} else {
caveinnerbannery($customy_themedetails);
}
} elseif (has_post_thumbnail()) {
$src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
$thumbnailSrc = $src[0];
echo '<img src="' . esc_url($thumbnailSrc) . '" alt="">';
} elseif (!empty($header_image)) {
echo '<img src="' . esc_url($header_image) . '" width="' . esc_html(get_custom_header()->width) . '" height="' . esc_html(get_custom_header()->height) . '" alt="" />';
} else {
caveinnerbannery($customy_themedetails);
}
?>
</div>
<?php
}