File: /home/vmasmheia229/domains/cindymuscarello.com/html/wp-content/themes/kathy/header.php
<?php
/**
* The template for displaying the header
*
* Displays all of the head element and everything up until the content div.
*
* @since 1.0.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php esc_url( bloginfo( 'pingback_url' ) ); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> >
<div id="root-container" class="clearfix">
<header id="side-container">
<?php
$additional_classes = '';
$tagline = get_bloginfo( 'description' );
$display_tagline = get_theme_mod( 'kathy_ctmzr_menu_section_styles_show_tagline', true );
if ( ! empty( $tagline ) && $display_tagline ) {
$additional_classes .= ' with-tagline ';
} else {
$additional_classes .= ' no-tagline ';
}
?>
<div class="logo-tagline-wrapper <?php echo esc_attr( $additional_classes ); ?>">
<div class="logo-wrapper">
<?php if ( kathy_is_site_title_h1_allowed() ) : ?>
<h1 class="site-title-heading">
<?php endif; ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php
// Print out site logo or title
$custom_logo_id = get_theme_mod( 'custom_logo' );
$logo_image_class = '';
if ( ! empty( $custom_logo_id ) ) {
$logo_image_class = 'has-logo-image';
$image = wp_get_attachment_image_src( $custom_logo_id , 'full' );
$logo_url = $image[0];
echo '<img src="' . esc_url( $logo_url ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '" class="logo-image" />';
} else {
echo '<span class="site-title">' . esc_html( get_bloginfo( 'name' ) ) . '</span>';
}
?>
</a>
<?php if ( kathy_is_site_title_h1_allowed() ) : ?>
</h1>
<?php endif; ?>
</div>
<?php
// Print out the tagline if there is any
if ( ! empty( $tagline ) && $display_tagline ) {
echo '<span class="tagline">' . esc_html( $tagline ) . '</span>';
}
?>
</div>
<nav class="site-menu">
<?php
// Main Menu
wp_nav_menu( array(
'container' => 'ul',
'theme_location' => 'main_menu',
'menu_class' => 'menu-list menu-style',
) );
?>
<!-- Mobile menu container: the items will be generated in the JS -->
<div id="mobile-menu">
<a id="mobile-menu-toggle" href="#mobile-menu-entity">
<span class="mobile-menu-text"><?php esc_html_e( 'Menu', 'kathy' ); ?></span>
<i class="ion-navicon"></i></a>
<div id="mobile-menu-entity"></div>
</div>
</nav>
<?php if ( get_theme_mod( 'kathy_ctmzr_show_search_button', false ) ) : ?>
<div class="search-button-wrapper">
<a href="javascript:;" class="search-icon-button"><i class="ion-ios-search-strong"></i><span class="search-button-text"><?php echo esc_html__( 'Search this site', 'kathy' ); ?></span></a>
</div>
<?php endif; ?>
<div class="copyright-social-wrapper">
<?php
// Social Icon Set
kathy_display_social_icon_set( get_theme_mod( 'kathy_ctmzr_site_identity_social_network_display', 'text' ) );
// Copyright Text
$default_copyright_text = kathy_wp_kses_escape( sprintf( __( '© Kathy. Designed by <a href="%s">UXBARN</a>.', 'kathy' ), 'https://uxbarn.com' ) );
// Get the saved copyright text
$copyright_text = get_theme_mod( 'kathy_ctmzr_site_identity_copyright_text', $default_copyright_text );
?>
<?php if ( ! empty( $copyright_text ) ) : ?>
<div class="copyright">
<?php echo kathy_wp_kses_escape( $copyright_text ); ?>
</div>
<?php endif; ?>
</div>
</header>
<div id="main-container">
<main id="content-container" class="clearfix">