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 <?php
/** /*
* Template Name: Подготовка к школе (Bento 2026) * Template Name: Подготовка к школе (Bento 2026)
* */
* Полный рефакторинг: логика вынесена в Pksh_Data (inc/class-pksh-data.php),
* секции в template-parts/pksh/*.php. if ( ! defined( 'ABSPATH' ) ) {
* exit;
* @package Dekart }
*/
if ( ! class_exists( 'Pksh_Data' ) ) {
if ( ! defined( 'ABSPATH' ) ) { require_once get_template_directory() . '/inc/class-pksh-data.php';
exit; }
}
$data = Pksh_Data::instance();
// Автозагрузка Pksh_Data (синглтон, кэширует все get_option / carbon_get_post_meta)
if ( ! class_exists( 'Pksh_Data' ) ) { get_header();
require_once get_template_directory() . '/inc/class-pksh-data.php'; ?>
}
// Инициализируем один раз при загрузке шаблона <?php get_template_part( 'template-parts/svg-sprite' ); ?>
$data = Pksh_Data::instance();
<main class="page page-pksh">
get_header();
?> <?php
get_template_part( 'template-parts/pksh/breadcrumbs' );
<?php get_template_part( 'template-parts/svg-sprite' ); ?> get_template_part( 'template-parts/pksh/hero' );
get_template_part( 'template-parts/pksh/social-counters' );
<main class="page page-pksh"> get_template_part( 'template-parts/pksh/guarantee-hero' );
get_template_part( 'template-parts/pksh/checklist' );
<?php get_template_part( 'template-parts/pksh/how-it-works' );
get_template_part( 'template-parts/pksh/breadcrumbs' ); get_template_part( 'template-parts/pksh/cta-test' );
get_template_part( 'template-parts/pksh/hero' ); get_template_part( 'template-parts/pksh/results' );
get_template_part( 'template-parts/pksh/social-counters' ); get_template_part( 'template-parts/pksh/compare' );
get_template_part( 'template-parts/pksh/guarantee-hero' ); get_template_part( 'template-parts/pksh/programs' );
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/block-price' );
get_template_part( 'template-parts/pksh/results' );
get_template_part( 'template-parts/pksh/compare' ); get_template_part( 'template-parts/pksh/teachers' );
get_template_part( 'template-parts/pksh/programs' ); get_template_part( 'template-parts/pksh/gallery' );
get_template_part( 'template-parts/pksh/guarantee-standalone' );
// Shared template-part (легаси, не вынесен в pksh/) get_template_part( 'template-parts/pksh/faq' );
get_template_part( 'template-parts/block-price' ); get_template_part( 'template-parts/pksh/reviews' );
get_template_part( 'template-parts/pksh/trust-authority' );
get_template_part( 'template-parts/pksh/teachers' ); get_template_part( 'template-parts/pksh/external-reviews' );
get_template_part( 'template-parts/pksh/gallery' ); get_template_part( 'template-parts/pksh/final-cta' );
get_template_part( 'template-parts/pksh/guarantee-standalone' ); get_template_part( 'template-parts/pksh/contacts' );
get_template_part( 'template-parts/pksh/faq' ); get_template_part( 'template-parts/pksh/sticky-cta' );
get_template_part( 'template-parts/pksh/reviews' ); ?>
get_template_part( 'template-parts/pksh/trust-authority' );
get_template_part( 'template-parts/pksh/external-reviews' ); </main>
get_template_part( 'template-parts/pksh/final-cta' );
get_template_part( 'template-parts/pksh/contacts' ); <?php get_footer(); ?>
get_template_part( 'template-parts/pksh/sticky-cta' );
?>
</main>
<?php get_footer(); ?>