File: /var/www/vhosts/greenclinic.kz/newsite/wp-content/themes/green-clinic/header.php
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="yandex-verification" content="aaec96e94ad642c6" />
<!-- Жёстко прописанный логотип / favicon для Google и соцсетей -->
<link rel="icon" href="https://greenclinic.kz/wp-content/uploads/2024/04/cropped-favicon-32x32.png" sizes="32x32" />
<meta property="og:image" content="https://greenclinic.kz/wp-content/uploads/2024/04/cropped-favicon-32x32.png" />
<meta name="twitter:image" content="https://greenclinic.kz/wp-content/uploads/2024/04/cropped-favicon-32x32.png" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Green Clinic",
"url": "https://greenclinic.kz/",
"logo": "https://greenclinic.kz/wp-content/uploads/2024/04/cropped-favicon-32x32.png"
}
</script>
<?php wp_head(); ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
</head>
<body <?php body_class(); ?> >
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16775531146"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-16775531146');
</script>
<header class="main__header">
<div class="container">
<div class="header__before wow animate__animated animate__fadeInUp" data-wow-delay="0.5s">
<div class="row">
<?php
wp_nav_menu(
array (
'theme_location' => 'header_before',
'echo' => true,
'items_wrap' => '<ul class="row header__before-menu">%3$s</ul>',
)
);
?>
<?php if( have_rows('contacts', 'option') ): ?>
<?php while( have_rows('contacts', 'option') ) : the_row(); ?>
<div class="row work-time">
<div class="work-time__weekdays">
<!-- <?php
// Get the current language
$current_language = wpm_get_language();
// Output the appropriate translation based on the current language
if ($current_language == 'ru') {
echo 'Пн-Пт';
} elseif ($current_language == 'kz') {
echo 'ДС-ЖМ';
} else {
echo 'Mon-Fri'; // Default to Russian or the original language
}
?>: 08:00 - 20:00 -->
<?php echo esc_html(the_sub_field('weekdays')); ?>
</div>
<div class="work-time__weekend">
<!-- <?php
// Get the current language
$current_language = wpm_get_language();
// Output the appropriate translation based on the current language
if ($current_language == 'ru') {
echo 'Сб';
} elseif ($current_language == 'kz') {
echo 'СН';
} else {
echo 'Sat'; // Default to Russian or the original language
}
?>: 09.00-14.00 -->
<?php echo esc_html(the_sub_field('weekend')); ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<div class="social-header">
<?php if( have_rows('social', 'option') ): ?>
<?php while( have_rows('social', 'option') ) : the_row(); ?>
<a href="<?php echo esc_html(the_sub_field('social_link')); ?>" target="_blank" class="social-icon social-icon-inst">
<img src="<?php echo esc_html(the_sub_field('social_icon')); ?>" alt="<?php echo esc_html(the_sub_field('social_name')); ?>">
</a>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
<div class="header wow animate__animated animate__fadeInUp" data-wow-delay="1s">
<div class="row">
<div class="brand__logo">
<?php
if( has_custom_logo() ){
echo get_custom_logo();
}
?>
</div>
<div class="header__menu" >
<?php
wp_nav_menu( [
'theme_location' => 'header_menu',
'menu' => '',
'container' => false,
'echo' => true,
'items_wrap' => '<ul class="row header__menu-items">%3$s</ul>',
'depth' => 0,
'walker' => '',
] );
?>
</div>
<div class="header__lang">
<?php get_sidebar();?>
</div>
</div>
</div>
</div>
</header>
<div class="header__mobile">
<div class="row">
<div class="header__mobile_logo">
<?php
if( has_custom_logo() ){
echo get_custom_logo();
}
?>
</div>
<div class="header__mobile_lang header__lang" id="header__mobile_lang">
</div>
<div class="header__mobile_menu">
<div class="burger">
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
<div class="mobile-menu-frame" id="mobile-menu-frame">
<div class="mobile-menu-frame-header">
<div class="mobile-menu-frame-header-logo">
<?php
if( has_custom_logo() ){
echo get_custom_logo();
}
?>
</div>
<div class="social-header">
<?php if( have_rows('social', 'option') ): ?>
<?php while( have_rows('social', 'option') ) : the_row(); ?>
<a href="<?php echo esc_html(the_sub_field('social_link')); ?>" target="_blank" class="social-icon social-icon-inst">
<img src="<?php echo esc_html(the_sub_field('social_icon')); ?>" alt="<?php echo esc_html(the_sub_field('social_name')); ?>">
</a>
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="mobile-menu-frame-header-close">
<svg width="38.000000" height="38.000000" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs/>
<path d="M29.2 10.2L10.2 29.2L8.79 27.79L27.79 8.79L29.2 10.2ZM27.79 8.82L27.79 8.79C28.18 8.39 28.81 8.39 29.2 8.79C29.6 9.18 29.6 9.81 29.2 10.2L29.17 10.2L27.79 8.82ZM10.2 29.17L10.2 29.2C9.81 29.6 9.18 29.6 8.79 29.2C8.39 28.81 8.39 28.18 8.79 27.79L8.82 27.79L10.2 29.17Z" fill="#FFFFFF" fill-opacity="1.000000" fill-rule="evenodd"/>
<path d="M8.79 10.2L27.79 29.2L29.2 27.79L10.2 8.79L8.79 10.2ZM10.2 8.82L10.2 8.79C9.81 8.39 9.18 8.39 8.79 8.79C8.39 9.18 8.39 9.81 8.79 10.2L8.82 10.2L10.2 8.82ZM27.79 29.17L27.79 29.2C28.18 29.6 28.81 29.6 29.2 29.2C29.6 28.81 29.6 28.18 29.2 27.79L29.17 27.79L27.79 29.17Z" fill="#FFFFFF" fill-opacity="1.000000" fill-rule="evenodd"/>
</svg>
</div>
</div>
<div class="mobile-menu-frame-content">
<div class="mobile-menu-frame-links menu-1">
<?php
wp_nav_menu( [
'theme_location' => 'header_menu',
'menu' => '',
'container' => false,
'echo' => true,
'items_wrap' => '<ul class="header__menu-items">%3$s</ul>',
'depth' => 0,
'walker' => '',
] );
?>
</div>
<div class="mobile-menu-frame-links menu-2">
<?php
wp_nav_menu(
array (
'theme_location' => 'header_before',
'echo' => true,
'items_wrap' => '<ul class="header__before-menu">%3$s</ul>',
)
);
?>
</div>
</div>
</div>
</div>
<div class="header header-sticky">
<div class="container">
<div class="row">
<div class="brand__logo">
<?php
if( has_custom_logo() ){
echo get_custom_logo();
}
?>
</div>
<div class="header__menu" >
<?php
wp_nav_menu( [
'theme_location' => 'header_menu',
'menu' => '',
'container' => false,
'echo' => true,
'items_wrap' => '<ul class="row header__menu-items">%3$s</ul>',
'depth' => 0,
'walker' => '',
] );
?>
</div>
<div class="header__lang" id="header__lang">
<?php get_sidebar();?>
</div>
</div>
</div>
</div>