File: /var/www/vhosts/greenclinic.kz/newsite/wp-content/themes/green-clinic/blocks/contacts_info.php
<?php
$phone_numbers = get_sub_field('phone_numbers');
$email_list = get_sub_field('email_list');
$work_time_list = get_sub_field('work_time_list');
$phone_numbers_coo = get_sub_field('phone_numbers_cooperation');
?>
<section class="section contacts-info">
<div class="container">
<div class="contacts__details card">
<div class="contacts__detail">
<div class="contacts__detail-top">
<svg
xmlns="http://www.w3.org/2000/svg"
width="21"
height="21"
viewBox="0 0 21 21"
fill="none"
>
<g clip-path="url(#clip0_0_6139)">
<path
d="M18.375 8.75C18.375 14.875 10.5 20.125 10.5 20.125C10.5 20.125 2.625 14.875 2.625 8.75C2.625 6.66142 3.45469 4.65838 4.93153 3.18153C6.40838 1.70468 8.41142 0.875 10.5 0.875C12.5886 0.875 14.5916 1.70468 16.0685 3.18153C17.5453 4.65838 18.375 6.66142 18.375 8.75Z"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
<path
d="M10.5 11.375C11.9497 11.375 13.125 10.1997 13.125 8.75C13.125 7.30025 11.9497 6.125 10.5 6.125C9.05025 6.125 7.875 7.30025 7.875 8.75C7.875 10.1997 9.05025 11.375 10.5 11.375Z"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
</g>
<defs>
<clipPath id="clip0_0_6139">
<rect width="21" height="21" fill="white"></rect>
</clipPath>
</defs>
</svg>
<span> <?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 'Address'; // Default to Russian or the original language
}
?></span>
</div>
<p><?php echo esc_html(the_sub_field('adres')); ?></p>
</div>
<div class="contacts__detail">
<div class="contacts__detail-top">
<svg
xmlns="http://www.w3.org/2000/svg"
width="21"
height="21"
viewBox="0 0 21 21"
fill="none"
>
<g clip-path="url(#clip0_0_6147)">
<path
d="M19.2498 14.8051V17.4301C19.2507 17.6738 19.2008 17.915 19.1032 18.1383C19.0056 18.3615 18.8624 18.562 18.6828 18.7267C18.5033 18.8915 18.2913 19.0169 18.0604 19.095C17.8296 19.173 17.585 19.202 17.3423 19.1801C14.6497 18.8875 12.0634 17.9675 9.79101 16.4938C7.67686 15.1504 5.88443 13.358 4.54101 11.2438C3.06224 8.96114 2.14197 6.3622 1.85476 3.65758C1.83289 3.41562 1.86165 3.17175 1.9392 2.94151C2.01674 2.71126 2.14138 2.49969 2.30518 2.32025C2.46897 2.14082 2.66834 1.99746 2.89058 1.89929C3.11281 1.80113 3.35306 1.75031 3.59601 1.75008H6.22101C6.64565 1.74591 7.05733 1.89628 7.3793 2.17318C7.70127 2.45007 7.91158 2.8346 7.97101 3.25508C8.0818 4.09514 8.28728 4.91997 8.58351 5.71383C8.70123 6.02702 8.72671 6.36738 8.65693 6.6946C8.58714 7.02182 8.42501 7.32218 8.18976 7.56008L7.07851 8.67133C8.32412 10.8619 10.1379 12.6757 12.3285 13.9213L13.4398 12.8101C13.6777 12.5748 13.978 12.4127 14.3052 12.3429C14.6325 12.2731 14.9728 12.2986 15.286 12.4163C16.0799 12.7126 16.9047 12.918 17.7448 13.0288C18.1698 13.0888 18.558 13.3029 18.8355 13.6304C19.113 13.9579 19.2604 14.376 19.2498 14.8051Z"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
</g>
<defs>
<clipPath id="clip0_0_6147">
<rect width="21" height="21" fill="white"></rect>
</clipPath>
</defs>
</svg>
<span><?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 'Phone'; // Default to Russian or the original language
}
?></span>
</div>
<?php foreach($phone_numbers as $phone): ?>
<?php if ($phone['phone']): ?>
<p><a href="tel:<?php echo esc_html( $phone['phone'] ); ?>"><?php echo esc_html( $phone['phone'] ); ?></a></p>
<?php endif?>
<?php if ($phone['phone_description']): ?>
<p><?php echo esc_html( $phone['phone_description'] ); ?></p>
<?php endif?>
<?php endforeach;?>
</div>
<div class="contacts__detail">
<div class="contacts__detail-top">
<svg
xmlns="http://www.w3.org/2000/svg"
width="21"
height="21"
viewBox="0 0 21 21"
fill="none"
>
<g clip-path="url(#clip0_0_6160)">
<path
d="M10.5 14C12.433 14 14 12.433 14 10.5C14 8.567 12.433 7 10.5 7C8.567 7 7 8.567 7 10.5C7 12.433 8.567 14 10.5 14Z"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
<path
d="M14 6.99994V11.3749C14 12.0711 14.2766 12.7388 14.7689 13.2311C15.2611 13.7234 15.9288 13.9999 16.625 13.9999C17.3212 13.9999 17.9889 13.7234 18.4812 13.2311C18.9734 12.7388 19.25 12.0711 19.25 11.3749V10.4999C19.2499 8.5251 18.5817 6.60836 17.3541 5.06141C16.1265 3.51446 14.4117 2.42827 12.4886 1.97946C10.5654 1.53064 8.54695 1.74561 6.76144 2.58939C4.97592 3.43318 3.52836 4.85616 2.65411 6.62695C1.77986 8.39775 1.53035 10.4122 1.94616 12.3428C2.36196 14.2734 3.41861 16.0065 4.94431 17.2604C6.47001 18.5143 8.37501 19.2152 10.3496 19.2492C12.3241 19.2832 14.2521 18.6482 15.82 17.4474"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
</g>
<defs>
<clipPath id="clip0_0_6160">
<rect width="21" height="21" fill="white"></rect>
</clipPath>
</defs>
</svg>
<span>
<?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 'E-mail'; // Default to Russian or the original language
}
?>
</span>
</div>
<?php foreach($email_list as $email): ?>
<?php if ($email['email']): ?>
<p><a href="mailto:<?php echo esc_html( $email['email'] ); ?>"><?php echo esc_html( $email['email'] ); ?></a></p>
<?php endif?>
<?php if ($email['email_description']): ?>
<p><?php echo esc_html( $email['email_description'] ); ?></p>
<?php endif?>
<?php endforeach;?>
</div>
<div class="contacts__detail">
<div class="contacts__detail-top">
<svg
xmlns="http://www.w3.org/2000/svg"
width="21"
height="21"
viewBox="0 0 21 21"
fill="none"
>
<path
d="M16.625 3.5H4.375C3.4085 3.5 2.625 4.2835 2.625 5.25V17.5C2.625 18.4665 3.4085 19.25 4.375 19.25H16.625C17.5915 19.25 18.375 18.4665 18.375 17.5V5.25C18.375 4.2835 17.5915 3.5 16.625 3.5Z"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
<path
d="M14 1.75V5.25"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
<path
d="M7 1.75V5.25"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
<path
d="M2.625 8.75H18.375"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
</svg>
<span>
<?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 'Working hours'; // Default to Russian or the original language
}
?>
</span>
</div>
<?php foreach($work_time_list as $work_time): ?>
<p>
<?php if ($work_time['work_time_1']): ?>
<?php echo esc_html( $work_time['work_time_1'] ); ?>
<?php endif?>
<br class="indent" />
<span class="orange">
<?php if ($work_time['work_time_2']): ?>
<?php echo esc_html( $work_time['work_time_2'] ); ?>
<?php endif?>
</span>
</p>
<?php endforeach;?>
</div>
<div class="contacts__detail">
<div class="contacts__detail-top">
<svg
xmlns="http://www.w3.org/2000/svg"
width="21"
height="21"
viewBox="0 0 21 21"
fill="none"
>
<g clip-path="url(#clip0_0_6181)">
<path
d="M17.0089 6.86855C16.966 7.1503 17.0605 7.43555 17.2618 7.6368L18.6338 9.0088C19.045 9.42005 19.2515 9.95992 19.2515 10.4998C19.2515 11.0397 19.0459 11.5787 18.6338 11.9908L17.2242 13.4004C17.1294 13.4951 17.0138 13.5662 16.8867 13.6081C16.7595 13.6501 16.6243 13.6617 16.4918 13.6419C16.0805 13.5807 15.79 13.2219 15.6448 12.8325C15.5174 12.4885 15.3054 12.182 15.0286 11.9412C14.7517 11.7005 14.4187 11.5332 14.0603 11.4548C13.7018 11.3764 13.3294 11.3894 12.9773 11.4926C12.6252 11.5958 12.3047 11.7858 12.0453 12.0453C11.7858 12.3047 11.5958 12.6252 11.4926 12.9773C11.3894 13.3294 11.3764 13.7018 11.4548 14.0603C11.5332 14.4187 11.7005 14.7517 11.9412 15.0286C12.182 15.3054 12.4885 15.5174 12.8325 15.6448C13.2228 15.79 13.5807 16.0797 13.6419 16.4918C13.6617 16.6243 13.6502 16.7595 13.6082 16.8867C13.5663 17.0139 13.4951 17.1295 13.4004 17.2242L11.9917 18.6329C11.796 18.8292 11.5635 18.985 11.3075 19.0911C11.0514 19.1973 10.777 19.2518 10.4998 19.2515C10.2228 19.2519 9.94852 19.1975 9.69264 19.0915C9.43676 18.9855 9.20436 18.8299 9.0088 18.6338L7.6368 17.2618C7.53763 17.1625 7.41655 17.0878 7.28328 17.0437C7.15001 16.9996 7.00826 16.9874 6.86942 17.008C6.43805 17.0728 6.13442 17.449 5.97692 17.855C5.84491 18.1939 5.6305 18.4945 5.35309 18.7296C5.07568 18.9648 4.74402 19.127 4.38812 19.2018C4.03222 19.2765 3.66331 19.2613 3.31475 19.1576C2.9662 19.0539 2.649 18.8649 2.39185 18.6077C2.13471 18.3506 1.94573 18.0334 1.84201 17.6848C1.73829 17.3363 1.7231 16.9674 1.79782 16.6115C1.87255 16.2556 2.03482 15.9239 2.26996 15.6465C2.5051 15.3691 2.8057 15.1547 3.14455 15.0227C3.55055 14.8652 3.9268 14.5615 3.99067 14.1302C4.01142 13.9914 3.99936 13.8497 3.95544 13.7164C3.91153 13.5832 3.83699 13.462 3.7378 13.3628L2.3658 11.9908C2.16967 11.7952 2.01412 11.5628 1.90811 11.307C1.80209 11.0511 1.7477 10.7768 1.74805 10.4998C1.74805 9.95992 1.95455 9.42005 2.3658 9.0088L3.70105 7.67355C3.91105 7.46355 4.20942 7.36467 4.50342 7.40842C4.95405 7.4758 5.2708 7.87042 5.4423 8.29217C5.57853 8.6262 5.79526 8.92135 6.07319 9.15134C6.35111 9.38133 6.6816 9.53902 7.03521 9.61036C7.38883 9.6817 7.75461 9.66447 8.09996 9.56023C8.44531 9.45598 8.75952 9.26794 9.0146 9.01285C9.26969 8.75777 9.45773 8.44356 9.56198 8.09821C9.66622 7.75286 9.68345 7.38708 9.61211 7.03346C9.54077 6.67985 9.38308 6.34936 9.15309 6.07144C8.9231 5.79351 8.62795 5.57678 8.29392 5.44055C7.87217 5.26905 7.47755 4.9523 7.41017 4.50167C7.36642 4.20767 7.46442 3.91017 7.6753 3.6993L9.00967 2.36492C9.2052 2.16905 9.43749 2.01373 9.69321 1.90787C9.94893 1.80201 10.223 1.7477 10.4998 1.74805C11.0397 1.74805 11.5795 1.95455 11.9908 2.3658L13.3628 3.7378C13.564 3.93905 13.8493 4.03355 14.1302 3.99155C14.5615 3.9268 14.8652 3.55055 15.0227 3.14455C15.1547 2.8057 15.3691 2.5051 15.6465 2.26996C15.9239 2.03482 16.2556 1.87255 16.6115 1.79782C16.9674 1.7231 17.3363 1.73829 17.6848 1.84201C18.0334 1.94573 18.3506 2.13471 18.6077 2.39185C18.8649 2.649 19.0539 2.9662 19.1576 3.31475C19.2613 3.66331 19.2765 4.03222 19.2018 4.38812C19.127 4.74402 18.9648 5.07568 18.7296 5.35309C18.4945 5.6305 18.1939 5.84491 17.855 5.97692C17.449 6.13442 17.0728 6.43805 17.0089 6.86942V6.86855Z"
stroke="#A1D0B8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
></path>
</g>
<defs>
<clipPath id="clip0_0_6181">
<rect width="21" height="21" fill="white"></rect>
</clipPath>
</defs>
</svg>
<span>
<?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 'Cooperation and Offers'; // Default to Russian or the original language
}
?>
</span>
</div>
<?php foreach($phone_numbers_coo as $phone): ?>
<?php if ($phone['phone']): ?>
<p><a href="tel:<?php echo esc_html( $phone['phone'] ); ?>"><?php echo esc_html( $phone['phone'] ); ?></a></p>
<?php endif?>
<?php if ($phone['phone_description']): ?>
<p><?php echo esc_html( $phone['phone_description'] ); ?></p>
<?php endif?>
<?php endforeach;?>
</div>
<div class="contacts__detail">
<div class="contacts__detail-top">
<svg
xmlns="http://www.w3.org/2000/svg"
width="21"
height="21"
viewBox="0 0 21 21"
fill="none"
>
<path
d="M7.4375 14.875C7.66956 14.875 7.89212 14.7828 8.05622 14.6187C8.22031 14.4546 8.3125 14.2321 8.3125 14C8.31679 13.9417 8.31679 13.8833 8.3125 13.825C8.30292 13.7702 8.28523 13.7171 8.26 13.6675C8.24085 13.6117 8.21437 13.5588 8.18125 13.51L8.07625 13.3787C7.99303 13.2991 7.89491 13.2366 7.7875 13.195C7.62393 13.118 7.44053 13.0935 7.2625 13.125L7.105 13.1775L6.9475 13.2562C6.90166 13.2886 6.85783 13.3236 6.81625 13.3612L6.71125 13.4925C6.67813 13.5413 6.65165 13.5942 6.6325 13.65C6.60727 13.6996 6.58958 13.7527 6.58 13.8075C6.57571 13.8658 6.57571 13.9242 6.58 13.9825C6.58 14.2146 6.67219 14.4371 6.83628 14.6012C7.00038 14.7653 7.22294 14.8575 7.455 14.8575L7.4375 14.875ZM14.4375 14.875C14.6696 14.875 14.8921 14.7828 15.0562 14.6187C15.2203 14.4546 15.3125 14.2321 15.3125 14C15.3168 13.9417 15.3168 13.8833 15.3125 13.825C15.3029 13.7702 15.2852 13.7171 15.26 13.6675C15.2408 13.6117 15.2144 13.5588 15.1813 13.51L15.0763 13.3787C14.9912 13.3015 14.8935 13.2393 14.7875 13.195C14.5745 13.1075 14.3355 13.1075 14.1225 13.195C14.0165 13.2393 13.9188 13.3015 13.8338 13.3787L13.7287 13.51C13.6956 13.5588 13.6692 13.6117 13.65 13.6675C13.6248 13.7171 13.6071 13.7702 13.5975 13.825C13.5932 13.8833 13.5932 13.9417 13.5975 14C13.5985 14.2295 13.6896 14.4495 13.8512 14.6125C14.0063 14.7712 14.2159 14.865 14.4375 14.875ZM11.8125 4.375H10.0625C9.83044 4.375 9.60788 4.46719 9.44378 4.63128C9.27969 4.79538 9.1875 5.01794 9.1875 5.25C9.1875 5.48206 9.27969 5.70462 9.44378 5.86872C9.60788 6.03281 9.83044 6.125 10.0625 6.125H11.8125C12.0446 6.125 12.2671 6.03281 12.4312 5.86872C12.5953 5.70462 12.6875 5.48206 12.6875 5.25C12.6875 5.01794 12.5953 4.79538 12.4312 4.63128C12.2671 4.46719 12.0446 4.375 11.8125 4.375ZM16.1875 1.75H5.6875C4.99131 1.75 4.32363 2.02656 3.83134 2.51884C3.33906 3.01113 3.0625 3.67881 3.0625 4.375V14.875C3.06402 15.4166 3.23302 15.9444 3.54632 16.3862C3.85962 16.8279 4.30189 17.162 4.8125 17.3425V18.375C4.8125 18.6071 4.90469 18.8296 5.06878 18.9937C5.23288 19.1578 5.45544 19.25 5.6875 19.25C5.91956 19.25 6.14212 19.1578 6.30622 18.9937C6.47031 18.8296 6.5625 18.6071 6.5625 18.375V17.5H15.3125V18.375C15.3125 18.6071 15.4047 18.8296 15.5688 18.9937C15.7329 19.1578 15.9554 19.25 16.1875 19.25C16.4196 19.25 16.6421 19.1578 16.8062 18.9937C16.9703 18.8296 17.0625 18.6071 17.0625 18.375V17.3425C17.5731 17.162 18.0154 16.8279 18.3287 16.3862C18.642 15.9444 18.811 15.4166 18.8125 14.875V4.375C18.8125 3.67881 18.5359 3.01113 18.0437 2.51884C17.5514 2.02656 16.8837 1.75 16.1875 1.75ZM17.0625 14.875C17.0625 15.1071 16.9703 15.3296 16.8062 15.4937C16.6421 15.6578 16.4196 15.75 16.1875 15.75H5.6875C5.45544 15.75 5.23288 15.6578 5.06878 15.4937C4.90469 15.3296 4.8125 15.1071 4.8125 14.875V12.25H17.0625V14.875ZM17.0625 10.5H4.8125V4.375C4.8125 4.14294 4.90469 3.92038 5.06878 3.75628C5.23288 3.59219 5.45544 3.5 5.6875 3.5H16.1875C16.4196 3.5 16.6421 3.59219 16.8062 3.75628C16.9703 3.92038 17.0625 4.14294 17.0625 4.375V10.5Z"
fill="#A1D0B8"
></path>
</svg>
<span>
<?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 'Buses routes'; // Default to Russian or the original language
}
?>
</span>
</div>
<p><?php echo esc_html(the_sub_field('bus_route')); ?></p>
</div>
</div>
</div>
</section>