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/httpdocs/wp-content/themes/GreenClinic/template-departments.php
<?php
/*
    Template Name: Стационар
    Template Post Type: departments
*/
?>

<?php get_header(); ?>


<div class="page__banner--bread">
  <div class="bread-line">
    <div class="container">
      <?php if( function_exists('dimox_breadcrumbs') ) dimox_breadcrumbs(); ?>
    </div>
  </div> 
</div>

<section class="section__margin">
  <div class="container">
    <div class="section__title">
       <h3 class="service__title title space-title"><?php the_title(); ?></h3>
    </div>
    <div class="section__polyclinic--background">
      <img   class="section__polyclinic--img" src="<?php echo get_field('photo'); ?>" alt="<?php the_field( the_title()); ?> в Нур-Султане" title="<?php the_field( the_title()); ?> в Нур-Султане" />

		<div class="white-block wb-top">
					<div class="page__blocktext">	
						<?php the_content(); ?>   
					</div>				
		</div>
		<div class="white-block ">
		<div class="page__blocktext">
		<?php echo get_field('zagolovka'); ?>
		</div>

		</div>
    <br><br>
      <div class="section__polyclinic--inside">
        <div class="section__polyclinic--content">
       
			  <section class="service service-stac-top">
              
					<h3 class="e title">Услуги<p class="usl-s-title">Основные медицинские услуги, оказываемые многопрофильным хирургическим стационаром Green Clinic</p></h3>
					<div class="services-btn">
      <div class="flex usl_flex">
        <?php  $control17 = new WP_Query( array(
                            'orderby' => 'date', // тип сортировки (в данном случае по дате)
							'posts_per_page' => -1,
                            'order'   => 'ASC',
							
                            'post_type' => 'control',
                            'tax_query' => array(
                                array (
                                    'taxonomy' => 'control_category',
                                    'field' => 'term_id',
                                    'terms' => 17
                                )
                            ),
                        ));?>
      <?php while ( $control17->have_posts() ) { $control17->the_post(); ?>
      <?php get_template_part( 'components/component', 'service17' ); ?>
      <?php } ?>
      <?php //endwhile; ?>
      <?php wp_reset_postdata(); ?>
      </div> 
      </div>
        



                   
                
            </section>
			
			

			<h3 class="service__title title space-title">Галерея </h3>
      <section class="news docs">
			<div class="news-slider3">
			<div class="swiper-wrapper">
			<?php while(has_sub_field('foto-2')): ?>
			<div class="news-slide swiper-slide">
			<div class="gallery-img">
			<img src="<?php the_sub_field('foto_otdeleniya-2'); ?>" alt="">
			</div>

			</div>
			<?php endwhile; ?>


			</div>

			<div class="swiper-button-next"></div>
			<div class="swiper-button-prev"></div>
			</div>
			</section>
		
			
        </div>
      </div>
    </div>
  </div>
</section>




<?php get_footer(); ?>