Final. Deploy ready
This commit is contained in:
parent
efa0e97eaf
commit
67d59c1779
@ -13,7 +13,7 @@ get_header();
|
||||
$post_id = get_the_ID();
|
||||
$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 = get_option( 'branch_city' ) ?: carbon_get_theme_option( 'site_city' ) ?: 'городе';
|
||||
$opt_region = get_option( 'branch_region' ) ?: carbon_get_theme_option( 'site_region' ) ?: 'Московская область';
|
||||
@ -155,7 +155,7 @@ $metrics = [
|
||||
<img class="hero-media-search__image"
|
||||
fetchpriority="high" src="<?php echo $theme_uri; ?>/assets/images/camp-hero.jpg"
|
||||
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"
|
||||
@ -306,7 +306,7 @@ $metrics = [
|
||||
line-height: 1.2;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
<section class="section-bg infograph" data-bg="white">
|
||||
<div class="container">
|
||||
<div class="infograph__header">
|
||||
@ -961,7 +961,7 @@ $localbusiness = array(
|
||||
'alternateName' => array( 'Decart', 'Образовательный центр Декарт' ),
|
||||
'description' => 'Детский лагерь в ' . $city_clean . ' — образовательный центр Декарт. Летние программы, творчество, развитие.',
|
||||
'url' => get_permalink( $post_id ),
|
||||
);
|
||||
);
|
||||
if ( $jsonld_phone ) $localbusiness['telephone'] = $jsonld_phone;
|
||||
if ( $jsonld_mail ) $localbusiness['email'] = $jsonld_mail;
|
||||
if ( $jsonld_img_url ) $localbusiness['image'] = $jsonld_img_url;
|
||||
@ -1009,7 +1009,7 @@ if ( ! empty( $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";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
get_footer();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user