File: /var/www/vhosts/greenclinic.kz/httpdocs/wp-content/themes/GreenClinic/archive-control.php
<?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>
<div class="section__services section__margin">
<div class="container">
<div class="section__title">
<h3 class="service__title title">Услуги
</h3>
</div>
<?php
//get_template_part( 'components/component', 'service');
?>
<div class="services__filter">
<div class="services__filter--button">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home"
aria-selected="true">Поликлиника</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile"
aria-selected="false">Стационар</a>
</li>
<li class="nav-item">
<a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact"
aria-selected="false">Отделение лучевой диагностики</a>
</li>
</ul>
</div>
<div class="services__filter--slider">
<div class="services__filter--content">
<div class="tab-content" id="myTabContent">
<?php
$control16 = 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' => 16
)
),
));
$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
)
),
));
$control18 = 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' => 18
)
),
));
?>
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="row">
<?php while ( $control16->have_posts() ) { $control16->the_post(); ?>
<?php get_template_part( 'components/component', 'service16' ); ?>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<div class="row">
<?php while ( $control17->have_posts() ) { $control17->the_post(); ?>
<?php get_template_part( 'components/component', 'service17' ); ?>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">
<div class="row">
<?php while ( $control18->have_posts() ) { $control18->the_post(); ?>
<?php get_template_part( 'components/component', 'service18' ); ?>
<?php } ?>
</div>
</div>
<div class="services__filter__pagination pagination__block"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
//get_template_part( 'components/component', 'contact');
?>
<?php get_footer(); ?>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js" ></script>