62 lines
2.2 KiB
PHP
62 lines
2.2 KiB
PHP
<?php
|
||
/**
|
||
* Template Name: Программа — Подготовка к школе (служебная)
|
||
*
|
||
* @package Dekart
|
||
*/
|
||
|
||
if ( ! defined( 'ABSPATH' ) ) {
|
||
exit;
|
||
}
|
||
|
||
// Подключаем CSS напрямую в head (надёжнее ранних хуков)
|
||
add_action( 'wp_head', function() {
|
||
$css_url = get_template_directory_uri() . '/assets/css/program-pksh.css';
|
||
$css_path = get_template_directory() . '/assets/css/program-pksh.css';
|
||
if ( file_exists( $css_path ) ) {
|
||
echo '<link rel="stylesheet" id="dekart-program-pksh-css" href="' . esc_url( $css_url . '?ver=' . filemtime( $css_path ) ) . '" media="all">' . "\n";
|
||
}
|
||
// Schema.org Article для программы
|
||
$org_name = get_option( 'branch_og_site_name' ) ?: get_option( 'branch_name', 'Детский центр «Декарт»' );
|
||
$post_id = get_the_ID();
|
||
?>
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "Article",
|
||
"headline": "Дополнительная общеразвивающая программа «Подготовка к школе»",
|
||
"description": "Официальная образовательная программа подготовки к школе для детей 5–7 лет. Разработана в соответствии с ФЗ №273, Приказом Минпросвещения №629 и ФГОС ДО.",
|
||
"author": {
|
||
"@type": "Organization",
|
||
"name": "<?php echo esc_js( $org_name ); ?>"
|
||
},
|
||
"publisher": {
|
||
"@type": "Organization",
|
||
"name": "<?php echo esc_js( $org_name ); ?>"
|
||
},
|
||
"datePublished": "<?php echo esc_js( get_the_date( 'c' ) ?: '' ); ?>",
|
||
"dateModified": "<?php echo esc_js( get_the_modified_date( 'c' ) ?: '' ); ?>"
|
||
}
|
||
</script>
|
||
<?php
|
||
}, 0 );
|
||
|
||
get_header();
|
||
?>
|
||
|
||
<main class="page page-program-pksh">
|
||
|
||
<?php
|
||
get_template_part( 'template-parts/program-pksh/header' );
|
||
get_template_part( 'template-parts/program-pksh/program-content' );
|
||
get_template_part( 'template-parts/program-pksh/office-info' );
|
||
get_template_part( 'template-parts/program-pksh/service-link' );
|
||
get_template_part( 'template-parts/program-pksh/eeat-links' );
|
||
get_template_part( 'template-parts/author-eaat' );
|
||
get_template_part( 'template-parts/program-pksh/disclaimer' );
|
||
?>
|
||
|
||
</main>
|
||
|
||
<?php get_footer(); ?>
|