File: /var/www/vhosts/greenclinic.kz/newsite/wp-content/themes/green-clinic/blocks/schedule_custom.php
<?php
$title = get_sub_field('title');
$list = get_sub_field('list');
?>
<div class="container">
<div class="doctors-graphics-wrapper visible-animation">
<h1 class="pmsp__title title"><?php echo esc_html($title);?></h1>
<div class="doctors">
<?php foreach($list as $list_item): ?>
<div class="doctor">
<?php
$doc_name = $list_item["doctor"];
$doc_plot = $list_item["plot"];
$doc_spec = $list_item["spec"];
$time_list = $list_item["list"];
?>
<div class="doctor__left">
<h2><?php echo $doc_name; ?></h2>
<h3><?php echo $doc_spec; ?></h3>
<p class="doctor__left-area"><?php echo $doc_plot; ?></p>
<!--<p class="doctor__left-exp">Стаж: </p>-->
</div>
<div class="doctor__right turn-right wow animate__animated animate__fadeInLeft" data-wow-delay="1s">
<p class="doctor__right-label">
<?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 'Date of admission'; // Default to Russian or the original language
}
?>
</p>
<div class="doctor__graphics">
<?php
$pn = $time_list[0]['time'];
$vt = $time_list[1]['time'];
$sr = $time_list[2]['time'];
$cht = $time_list[3]['time'];
$pt = $time_list[4]['time'];
$su = $time_list[5]['time'];
?>
<div class="doctor__day">
<p class="doctor__day-date">
<?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 'ДC';
} else {
echo 'MON'; // Default to Russian or the original language
}
?>
</p>
<div class="doctor__hours">
<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php if($pn): echo $pn; else:?> -:-<?php endif ?></p>
</div>
<!--<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php echo $time_time2 ?></p>
</div>-->
</div>
</div>
<div class="doctor__day">
<p class="doctor__day-date">
<?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 'C';
} else {
echo 'TUE'; // Default to Russian or the original language
}
?>
</p>
<div class="doctor__hours">
<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php if($vt): echo $vt; else:?> -:-<?php endif ?></p>
</div>
<!--<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php echo $time_time2 ?></p>
</div>-->
</div>
</div>
<div class="doctor__day">
<p class="doctor__day-date">
<?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 'WED'; // Default to Russian or the original language
}
?>
</p>
<div class="doctor__hours">
<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php if($sr): echo $sr; else:?> -:-<?php endif ?></p>
</div>
<!--<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php echo $time_time2 ?></p>
</div>-->
</div>
</div>
<div class="doctor__day">
<p class="doctor__day-date">
<?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 'THU'; // Default to Russian or the original language
}
?>
</p>
<div class="doctor__hours">
<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php if($cht): echo $cht; else:?> -:-<?php endif ?></p>
</div>
<!--<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php echo $time_time2 ?></p>
</div>-->
</div>
</div>
<div class="doctor__day">
<p class="doctor__day-date">
<?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 'FRI'; // Default to Russian or the original language
}
?>
</p>
<div class="doctor__hours">
<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php if($pt): echo $pt; else:?> -:-<?php endif ?></p>
</div>
<!--<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php echo $time_time2 ?></p>
</div>-->
</div>
</div>
<div class="doctor__day">
<p class="doctor__day-date">
<?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
}
?>
</p>
<div class="doctor__hours">
<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php if($su): echo $su; else:?> -:-<?php endif ?></p>
</div>
<!--<div class="doctor__hour">
<div>
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12.5" r="9" stroke="white" stroke-width="2"></circle>
<path d="M16.5 12.5H12.25C12.1119 12.5 12 12.3881 12 12.25V9" stroke="white" stroke-width="2" stroke-linecap="round"></path>
</svg>
</div>
<p><?php echo $time_time2 ?></p>
</div>-->
</div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>