Global-2026-07-15
This commit is contained in:
parent
3d9218df11
commit
d0492112e8
@ -1,22 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/*
|
||||||
* Template Name: Подготовка к школе (Bento 2026)
|
* Template Name: Подготовка к школе (Bento 2026)
|
||||||
*
|
|
||||||
* Полный рефакторинг: логика вынесена в Pksh_Data (inc/class-pksh-data.php),
|
|
||||||
* секции — в template-parts/pksh/*.php.
|
|
||||||
*
|
|
||||||
* @package Dekart
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Автозагрузка Pksh_Data (синглтон, кэширует все get_option / carbon_get_post_meta)
|
|
||||||
if ( ! class_exists( 'Pksh_Data' ) ) {
|
if ( ! class_exists( 'Pksh_Data' ) ) {
|
||||||
require_once get_template_directory() . '/inc/class-pksh-data.php';
|
require_once get_template_directory() . '/inc/class-pksh-data.php';
|
||||||
}
|
}
|
||||||
// Инициализируем один раз при загрузке шаблона
|
|
||||||
$data = Pksh_Data::instance();
|
$data = Pksh_Data::instance();
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
@ -38,7 +32,7 @@ get_header();
|
|||||||
get_template_part( 'template-parts/pksh/compare' );
|
get_template_part( 'template-parts/pksh/compare' );
|
||||||
get_template_part( 'template-parts/pksh/programs' );
|
get_template_part( 'template-parts/pksh/programs' );
|
||||||
|
|
||||||
// Shared template-part (легаси, не вынесен в pksh/)
|
|
||||||
get_template_part( 'template-parts/block-price' );
|
get_template_part( 'template-parts/block-price' );
|
||||||
|
|
||||||
get_template_part( 'template-parts/pksh/teachers' );
|
get_template_part( 'template-parts/pksh/teachers' );
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user