Final. Deploy ready

This commit is contained in:
Dekart Deploy Bot 2026-05-15 13:23:30 +03:00
parent efa0e97eaf
commit 67d59c1779

View File

@ -13,7 +13,7 @@ get_header();
$post_id = get_the_ID(); $post_id = get_the_ID();
$theme_uri = get_template_directory_uri(); $theme_uri = get_template_directory_uri();
// ─── ДАННЫЕ ОРГАНИЗАЦИИ: WP Options (primary) → Carbon Fields (fallback) ─── // ─── ДАННЫЕ ОРГАНИЗАЦИИ: ───
$opt_city_prep = get_option( 'branch_city_prep' ) ?: get_field( 'camp_city', $post_id ) ?: carbon_get_post_meta( $post_id, 'camp_city' ) ?: carbon_get_theme_option( 'site_city' ) ?: 'в городе'; $opt_city_prep = get_option( 'branch_city_prep' ) ?: get_field( 'camp_city', $post_id ) ?: carbon_get_post_meta( $post_id, 'camp_city' ) ?: carbon_get_theme_option( 'site_city' ) ?: 'в городе';
$opt_city = get_option( 'branch_city' ) ?: carbon_get_theme_option( 'site_city' ) ?: 'городе'; $opt_city = get_option( 'branch_city' ) ?: carbon_get_theme_option( 'site_city' ) ?: 'городе';
$opt_region = get_option( 'branch_region' ) ?: carbon_get_theme_option( 'site_region' ) ?: 'Московская область'; $opt_region = get_option( 'branch_region' ) ?: carbon_get_theme_option( 'site_region' ) ?: 'Московская область';
@ -155,7 +155,7 @@ $metrics = [
<img class="hero-media-search__image" <img class="hero-media-search__image"
fetchpriority="high" src="<?php echo $theme_uri; ?>/assets/images/camp-hero.jpg" fetchpriority="high" src="<?php echo $theme_uri; ?>/assets/images/camp-hero.jpg"
alt="Детский лагерь Декарт <?php echo $city_with_prep; ?>" loading="eager"> alt="Детский лагерь Декарт <?php echo $city_with_prep; ?>" loading="eager">
<?php endif; ?> <?php endif; ?>
<!-- Декоративные элементы --> <!-- Декоративные элементы -->
<img src="<?php echo $theme_uri; ?>/assets/images/doodles/hero-doodle-gears.svg" <img src="<?php echo $theme_uri; ?>/assets/images/doodles/hero-doodle-gears.svg"
@ -306,7 +306,7 @@ $metrics = [
line-height: 1.2; line-height: 1.2;
} }
} }
</style> </style>
<section class="section-bg infograph" data-bg="white"> <section class="section-bg infograph" data-bg="white">
<div class="container"> <div class="container">
<div class="infograph__header"> <div class="infograph__header">
@ -961,7 +961,7 @@ $localbusiness = array(
'alternateName' => array( 'Decart', 'Образовательный центр Декарт' ), 'alternateName' => array( 'Decart', 'Образовательный центр Декарт' ),
'description' => 'Детский лагерь в ' . $city_clean . ' — образовательный центр Декарт. Летние программы, творчество, развитие.', 'description' => 'Детский лагерь в ' . $city_clean . ' — образовательный центр Декарт. Летние программы, творчество, развитие.',
'url' => get_permalink( $post_id ), 'url' => get_permalink( $post_id ),
); );
if ( $jsonld_phone ) $localbusiness['telephone'] = $jsonld_phone; if ( $jsonld_phone ) $localbusiness['telephone'] = $jsonld_phone;
if ( $jsonld_mail ) $localbusiness['email'] = $jsonld_mail; if ( $jsonld_mail ) $localbusiness['email'] = $jsonld_mail;
if ( $jsonld_img_url ) $localbusiness['image'] = $jsonld_img_url; if ( $jsonld_img_url ) $localbusiness['image'] = $jsonld_img_url;
@ -1009,7 +1009,7 @@ if ( ! empty( $ld_graph ) ) {
'@graph' => $ld_graph, '@graph' => $ld_graph,
); );
echo '<script type="application/ld+json">' . wp_json_encode( $jsonld_data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG ) . '</script>' . "\n"; echo '<script type="application/ld+json">' . wp_json_encode( $jsonld_data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG ) . '</script>' . "\n";
} }
?> ?>
<?php <?php
get_footer(); get_footer();