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/blocks.php
<?php

  // Check value exists.
  if( have_rows('blocks') ):
    $i = 0;
    $bi = 1;
    if (is_singular('doctor')) {
      $i = 1;
    }
    while ( have_rows('blocks') ) : the_row();
        $layout = get_row_layout();

        if($layout == 'nums_block' ){
          echo '<section id="blocks-'.$bi.'" class="section custom-animation custom-animation-'.$bi.' section__'.get_row_layout().'" >';get_template_part('/blocks/'.get_row_layout(), '', ['index' => $i]);echo '</section>'; 
        }elseif($layout == 'photo_gallery'){
          echo '<section id="blocks-'.$bi.'" class="section custom-animation custom-animation-'.$bi.' section__'.get_row_layout().'" >';get_template_part('/blocks/'.get_row_layout(), '', ['index' => $i]);echo '</section>';           
        }else{
          echo '<section id="blocks-'.$bi.'" class="section custom-animation custom-animation-'.$bi.' section__'.get_row_layout().' wow animate__animated animate__slideInUp" data-wow-delay="0.5s">';get_template_part('/blocks/'.get_row_layout(), '', ['index' => $i]);echo '</section>'; 
        }        
        $i++;
        $bi++;
    endwhile;      
  endif;
?>