68 lines
2.1 KiB
PHP
68 lines
2.1 KiB
PHP
<?php
|
|
/*
|
|
* Template Name: Подготовка к школе (2026)
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
if ( ! class_exists( 'Pksh_Data' ) ) {
|
|
require_once get_template_directory() . '/inc/class-pksh-data.php';
|
|
}
|
|
|
|
$data = Pksh_Data::instance();
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<?php get_template_part( 'template-parts/svg-sprite' ); ?>
|
|
|
|
<main class="page page-pksh">
|
|
|
|
<?php
|
|
get_template_part( 'template-parts/pksh/breadcrumbs' );
|
|
get_template_part( 'template-parts/pksh/hero' );
|
|
get_template_part( 'template-parts/pksh/social-counters' );
|
|
get_template_part( 'template-parts/pksh/guarantee-hero' );
|
|
get_template_part( 'template-parts/pksh/checklist' );
|
|
get_template_part( 'template-parts/pksh/how-it-works' );
|
|
get_template_part( 'template-parts/pksh/cta-test' );
|
|
get_template_part( 'template-parts/pksh/results' );
|
|
get_template_part( 'template-parts/pksh/compare' );
|
|
get_template_part( 'template-parts/pksh/programs' );
|
|
|
|
|
|
get_template_part( 'template-parts/block-price' );
|
|
|
|
// ── Преподаватели (из CF) ──
|
|
$pksh_teachers_raw = carbon_get_post_meta( get_the_ID(), 'pksh_teachers' );
|
|
$pksh_teacher_ids = array();
|
|
if ( is_array( $pksh_teachers_raw ) ) {
|
|
foreach ( $pksh_teachers_raw as $item ) {
|
|
if ( ! empty( $item['teacher_id'] ) ) {
|
|
$pksh_teacher_ids[] = (int) $item['teacher_id'];
|
|
}
|
|
}
|
|
}
|
|
$pksh_teachers_text = carbon_get_post_meta( get_the_ID(), 'pksh_teachers_text' );
|
|
get_template_part( 'template-parts/teachers-cards', null, array(
|
|
'teacher_ids' => $pksh_teacher_ids,
|
|
'description' => $pksh_teachers_text ?: '',
|
|
) );
|
|
get_template_part( 'template-parts/pksh/gallery' );
|
|
get_template_part( 'template-parts/pksh/guarantee-standalone' );
|
|
get_template_part( 'template-parts/pksh/faq' );
|
|
get_template_part( 'template-parts/pksh/reviews' );
|
|
get_template_part( 'template-parts/pksh/trust-authority' );
|
|
get_template_part( 'template-parts/pksh/external-reviews' );
|
|
get_template_part( 'template-parts/pksh/final-cta' );
|
|
get_template_part( 'template-parts/contacts' );
|
|
get_template_part( 'template-parts/author-eaat' );
|
|
get_template_part( 'template-parts/pksh/sticky-cta' );
|
|
?>
|
|
|
|
</main>
|
|
|
|
<?php get_footer(); ?>
|