HEX
Server: Apache
System: Linux srv-plesk28.ps.kz 5.14.0-284.18.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 29 17:06:27 EDT 2023 x86_64
User: greencl1 (10085)
PHP: 8.1.33
Disabled: apache_setenv,dl,eval,exec,openlog,passthru,pcntl_exec,pcntl_fork,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,socket_create,socket_create_listen,socket_create_pair,syslog,system,socket_listen,stream_socket_server
Upload Files
File: /var/www/vhosts/greenclinic.kz/newsite/wp-content/themes/green-clinic/blocks/schedule.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_id =  $list_item["doctor"];
                    $doc_plot =  $list_item["plot"];
                    $time_list = $list_item["list"];          
                ?>
                
                <div class="doctor__left">
                    <h2><?php the_field('name', $doc_id); ?></h2>
                    <h3><?php the_field('speciality', $doc_id); ?></h3>
                    <p class="doctor__left-area"><?php echo $doc_plot ?></p>
                    <p class="doctor__left-exp">
						
						<?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 'Experience'; // Default to Russian or the original language
            }
            ?>		
						
						: <?php the_field('experience', $doc_id); ?></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 foreach($time_list as $time_item): ?>
                        <?php 
                            
                            $time_date =  $time_item["date"]; 
                            $time_time =  $time_item["time"];
                            $time_time2 =  $time_item["time2"];
                            
                        ?>
                        <div class="doctor__day">
                            <p class="doctor__day-date"><?php echo $time_date ?></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 echo $time_time ?></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>
                        
                    <?php endforeach; ?>
                    </div>
                </div>
            </div>
        <?php endforeach; ?>
        
    </div>
</div>
</div>