71 lines
2.0 KiB
PHP
71 lines
2.0 KiB
PHP
<?php
|
||
/*
|
||
Template Name: Шаблон страницы О нас
|
||
*/
|
||
?>
|
||
<?php
|
||
get_header();
|
||
$post_id = get_the_ID();
|
||
$useragent = $_SERVER['HTTP_USER_AGENT'];
|
||
|
||
$page_breadcrumbs = carbon_get_post_meta($post_id, 'page_breadcrumbs');
|
||
?>
|
||
|
||
<main class="page-o-nas">
|
||
<?php get_template_part('template-parts/block-banner'); ?>
|
||
|
||
<section class="contetn-main_block">
|
||
<div class="container">
|
||
<div class="main_content">
|
||
<?php the_content(); ?>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<?php
|
||
|
||
$images = array();
|
||
foreach ((array) carbon_get_post_meta($post_id, 'about_gallery') as $img_id) {
|
||
$img_id = absint($img_id);
|
||
if ($img_id) {
|
||
$images[] = $img_id;
|
||
}
|
||
}
|
||
if ($images) :
|
||
?>
|
||
<section class="section foto-slider">
|
||
<div class="container">
|
||
<h2 class="page_h2">Фото нашей школы</h2>
|
||
<div class="swiper swiper-foto">
|
||
<div class="swiper-wrapper">
|
||
<?php foreach ($images as $img_id) : ?>
|
||
<div class="swiper-slide img__item">
|
||
<?php
|
||
echo wp_get_attachment_image($img_id, 'large', false, array(
|
||
'class' => 'certificates__item_img',
|
||
'loading' => 'lazy',
|
||
));
|
||
?>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</div>
|
||
<div class="swiper-pagination"></div>
|
||
<div class="custom-button-next foto-next desktop"></div>
|
||
<div class="custom-button-prev foto-prev desktop"></div>
|
||
</div>
|
||
</section>
|
||
<?php endif; ?>
|
||
|
||
<?php get_template_part('template-parts/teachers'); ?>
|
||
|
||
<?php get_template_part('template-parts/promo-form'); ?>
|
||
|
||
|
||
<?php get_template_part('template-parts/map'); ?>
|
||
|
||
</main>
|
||
|
||
<?php
|
||
get_footer();
|