Global-2026-07-15

This commit is contained in:
Dekart Deploy Bot 2026-07-15 14:15:55 +00:00
parent 3d9218df11
commit d0492112e8

View File

@ -1,58 +1,52 @@
<?php
/**
* Template Name: Подготовка к школе (Bento 2026)
*
* Полный рефакторинг: логика вынесена в Pksh_Data (inc/class-pksh-data.php),
* секции в template-parts/pksh/*.php.
*
* @package Dekart
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Автозагрузка Pksh_Data (синглтон, кэширует все get_option / carbon_get_post_meta)
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' );
// Shared template-part (легаси, не вынесен в pksh/)
get_template_part( 'template-parts/block-price' );
get_template_part( 'template-parts/pksh/teachers' );
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/pksh/contacts' );
get_template_part( 'template-parts/pksh/sticky-cta' );
?>
</main>
<?php get_footer(); ?>
<?php
/*
* Template Name: Подготовка к школе (Bento 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' );
get_template_part( 'template-parts/pksh/teachers' );
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/pksh/contacts' );
get_template_part( 'template-parts/pksh/sticky-cta' );
?>
</main>
<?php get_footer(); ?>