File: /var/www/vhosts/greenclinic.kz/newsite/wp-content/themes/green-clinic/blocks/three_blocks.php
<?php
$title = get_sub_field('title');
$btn_text = get_sub_field('btn_text');
$btn_link = get_sub_field('btn_link');
$btn_icon = get_sub_field('btn_icon');
$left_text = get_sub_field('left_text');
$right_text = get_sub_field('right_text');
$image = get_sub_field('image');
?>
<div class="container">
<div id="asdaspmsp__services-wrapper">
<div class="pmsp__services-title-wrapper">
<h1 class="pmsp__title title"><?php echo esc_html($title); ?></h1>
<div class="pmsp__button pointer">
<a href="<?php echo esc_html($btn_link) ?>" target="_blank"><span><?php echo esc_html($btn_text) ?></span></a>
<div>
<img src="<?php echo esc_html($btn_icon) ?>" alt="icon">
</div>
</div>
</div>
<div class="pmsp__services">
<div class="pmsp__left">
<?php echo $left_text ?>
</div>
<div class="pmsp__right">
<div class="pmsp__right-top">
<?php echo $right_text ?>
</div>
<img class="pmsp__right-image" src="<?php echo $image["url"] ?>" title="<?php echo $image["title"] ?>" alt="<?php echo $image["alt"] ?>">
</div>
</div>
<div class="check-status pointer">
<a href="https://fms.kz/useful-to-know/proverte-svoy-status-osms/" target="_blank"><span><?php
// Get the current language
$current_language = wpm_get_language();
// Output the appropriate translation based on the current language
if ($current_language == 'en') {
echo 'Determine the status';
} elseif ($current_language == 'kz') {
echo 'Мәртебені анықтау';
} else {
echo 'Определить статус'; // Default to Russian or the original language
}
?></span> <svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M18 12L18.3536 11.6464L18.7071 12L18.3536 12.3536L18 12ZM6 12.5C5.72386 12.5 5.5 12.2761 5.5 12C5.5 11.7239 5.72386 11.5 6 11.5V12.5ZM14.3536 7.64645L18.3536 11.6464L17.6464 12.3536L13.6464 8.35355L14.3536 7.64645ZM18.3536 12.3536L14.3536 16.3536L13.6464 15.6464L17.6464 11.6464L18.3536 12.3536ZM18 12.5H6V11.5H18V12.5Z"
fill="#262626"
/>
</svg></a>
</div>
</div>
</div>
</div>