Final. Deploy ready
This commit is contained in:
parent
27b3f62a4b
commit
825f77a4b5
@ -28,6 +28,19 @@ add_filter( 'wpseo_frontend_presenter_classes', function( $presenters ) {
|
|||||||
// Убираем twitter:label1 / twitter:data1 (наследие article-режима)
|
// Убираем twitter:label1 / twitter:data1 (наследие article-режима)
|
||||||
add_filter( 'wpseo_twitter_label1', '__return_empty_string' );
|
add_filter( 'wpseo_twitter_label1', '__return_empty_string' );
|
||||||
add_filter( 'wpseo_twitter_data1', '__return_empty_string' );
|
add_filter( 'wpseo_twitter_data1', '__return_empty_string' );
|
||||||
|
|
||||||
|
// Добавляем og:image:alt из featured image (совпадает с og:image от Yoast)
|
||||||
|
add_action( 'wp_head', function() {
|
||||||
|
if ( ! is_page_template( 'page-camp.php' ) ) return;
|
||||||
|
$thumb_id = get_post_thumbnail_id( get_queried_object_id() );
|
||||||
|
if ( $thumb_id ) {
|
||||||
|
$alt = get_post_meta( $thumb_id, '_wp_attachment_image_alt', true );
|
||||||
|
if ( $alt ) {
|
||||||
|
echo '<meta property="og:image:alt" content="' . esc_attr( $alt ) . '" />' . "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, 1 );
|
||||||
|
|
||||||
add_action('wp_head', function() { echo '<style>.hidden{display:none}</style>'; }, 100);
|
add_action('wp_head', function() { echo '<style>.hidden{display:none}</style>'; }, 100);
|
||||||
get_header();
|
get_header();
|
||||||
?>
|
?>
|
||||||
@ -237,7 +250,7 @@ $metrics = [
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="about-us__content-col">
|
<div class="about-us__content-col">
|
||||||
<h2 id="camp-about" class="camp_title about-us__title">Лето, которое не хочется ставить на паузу</h2>
|
<h2 class="camp_title about-us__title">Лето, которое не хочется ставить на паузу</h2>
|
||||||
<div class="about-us__text">
|
<div class="about-us__text">
|
||||||
<?php echo wp_kses_post( carbon_get_post_meta( $post_id, 'about_us_text' ) ?: 'Всю зиму ребёнок в телефоне? Бабушка устала? А ведь лето может быть другим — ярким, живым, полезным.
|
<?php echo wp_kses_post( carbon_get_post_meta( $post_id, 'about_us_text' ) ?: 'Всю зиму ребёнок в телефоне? Бабушка устала? А ведь лето может быть другим — ярким, живым, полезным.
|
||||||
В Dekart дети не просто под присмотром. Они собирают роботов, ставят опыты, играют в театре, бегают на квестах и находят друзей.А главное — бегут в лагерь каждое утро без уговоров.' ); ?>
|
В Dekart дети не просто под присмотром. Они собирают роботов, ставят опыты, играют в театре, бегают на квестах и находят друзей.А главное — бегут в лагерь каждое утро без уговоров.' ); ?>
|
||||||
@ -257,7 +270,7 @@ $metrics = [
|
|||||||
<section class="section-bg suggestions" data-bg="mint" id="camp-advantages">
|
<section class="section-bg suggestions" data-bg="mint" id="camp-advantages">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="suggestions__header">
|
<div class="suggestions__header">
|
||||||
<h2 id="camp-advantages" class="camp_title">Почему мамы выбирают "Декарт": дети бегут сюда сами</h2>
|
<h2 class="camp_title">Почему мамы выбирают "Декарт": дети бегут сюда сами</h2>
|
||||||
<p class="suggestions__subtitle">Никаких уговоров по утрам. Никаких «забери меня». Только горящие глаза и «а можно ещё?»</p>
|
<p class="suggestions__subtitle">Никаких уговоров по утрам. Никаких «забери меня». Только горящие глаза и «а можно ещё?»</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="suggestions-wrapper"> <?php $suggestions = carbon_get_post_meta($post_id, 'suggestions' ); $icons = ['innovation-white.svg', 'steamprojects-35x35-1.svg', 'handson-35x35-1.svg', 'orangegear-white.svg', 'outdoor-white.svg', 'heart_sticker.svg'];
|
<div class="suggestions-wrapper"> <?php $suggestions = carbon_get_post_meta($post_id, 'suggestions' ); $icons = ['innovation-white.svg', 'steamprojects-35x35-1.svg', 'handson-35x35-1.svg', 'orangegear-white.svg', 'outdoor-white.svg', 'heart_sticker.svg'];
|
||||||
@ -287,7 +300,7 @@ $metrics = [
|
|||||||
<section class="section-bg infograph" data-bg="white" id="camp-infograph">
|
<section class="section-bg infograph" data-bg="white" id="camp-infograph">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="infograph__header">
|
<div class="infograph__header">
|
||||||
<h2 id="camp-infograph" class="camp_title">Цифры, которые говорят сами за себя</h2>
|
<h2 class="camp_title">Цифры, которые говорят сами за себя</h2>
|
||||||
<p class="infograph__lead">Мы создаём среду, где каждый ребёнок раскрывает свой потенциал</p>
|
<p class="infograph__lead">Мы создаём среду, где каждый ребёнок раскрывает свой потенциал</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="infograph__grid">
|
<div class="infograph__grid">
|
||||||
@ -338,7 +351,7 @@ $metrics = [
|
|||||||
|
|
||||||
<section class="section-bg programs" data-bg="mint" id="camp-programs">
|
<section class="section-bg programs" data-bg="mint" id="camp-programs">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2 id="camp-programs" class="camp_title">Летние программы</h2>
|
<h2 class="camp_title">Летние программы</h2>
|
||||||
<div class="programs__scroll-x">
|
<div class="programs__scroll-x">
|
||||||
<div class="programs__grid">
|
<div class="programs__grid">
|
||||||
<?php
|
<?php
|
||||||
@ -384,7 +397,7 @@ $metrics = [
|
|||||||
$price_half_day = carbon_get_post_meta($post_id, 'price_half_day' );
|
$price_half_day = carbon_get_post_meta($post_id, 'price_half_day' );
|
||||||
$price_full_day = carbon_get_post_meta($post_id, 'price_full_day' );
|
$price_full_day = carbon_get_post_meta($post_id, 'price_full_day' );
|
||||||
?>
|
?>
|
||||||
<h2 id="camp-pricing" class="camp_title">Приводите ребёнка, когда вам удобно</h2>
|
<h2 class="camp_title">Приводите ребёнка, когда вам удобно</h2>
|
||||||
<div class="bring-child-wrapper">
|
<div class="bring-child-wrapper">
|
||||||
|
|
||||||
<div class="pricing-card pricing-card--half">
|
<div class="pricing-card pricing-card--half">
|
||||||
@ -456,7 +469,7 @@ $metrics = [
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section-bg mentors" data-bg="mint" id="camp-mentors">
|
<section class="section-bg mentors" data-bg="mint" id="camp-mentors">
|
||||||
<h2 id="camp-mentors" class="camp_title">Наши наставники и ведущие мастер-классов</h2>
|
<h2 class="camp_title">Наши наставники и ведущие мастер-классов</h2>
|
||||||
<div class="mentors__scroll-x">
|
<div class="mentors__scroll-x">
|
||||||
<div class="mentors-wrapper">
|
<div class="mentors-wrapper">
|
||||||
<?php
|
<?php
|
||||||
@ -494,7 +507,7 @@ $metrics = [
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section-bg routine" data-bg="white" id="camp-schedule">
|
<section class="section-bg routine" data-bg="white" id="camp-schedule">
|
||||||
<h2 id="camp-schedule" class="camp_title">Распорядок дня в клубе</h2>
|
<h2 class="camp_title">Распорядок дня в клубе</h2>
|
||||||
<div class="routine-wrapper">
|
<div class="routine-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$routine = carbon_get_post_meta($post_id, 'routine' );
|
$routine = carbon_get_post_meta($post_id, 'routine' );
|
||||||
@ -519,7 +532,7 @@ $metrics = [
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section-bg foto" data-bg="mint" id="camp-gallery">
|
<section class="section-bg foto" data-bg="mint" id="camp-gallery">
|
||||||
<h2 id="camp-gallery" class="camp_title">Наши фотографии</h2>
|
<h2 class="camp_title">Наши фотографии</h2>
|
||||||
<?php
|
<?php
|
||||||
$fotos = carbon_get_post_meta($post_id, 'fotos' );
|
$fotos = carbon_get_post_meta($post_id, 'fotos' );
|
||||||
if (is_array($fotos) && !empty($fotos)) :
|
if (is_array($fotos) && !empty($fotos)) :
|
||||||
@ -558,7 +571,7 @@ $metrics = [
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section-bg camp-reviews" data-bg="white" id="camp-reviews">
|
<section class="section-bg camp-reviews" data-bg="white" id="camp-reviews">
|
||||||
<h2 id="camp-reviews" class="camp_title">Что говорят о нас родители</h2>
|
<h2 class="camp_title">Что говорят о нас родители</h2>
|
||||||
<?php
|
<?php
|
||||||
$review_items = carbon_get_post_meta($post_id, 'camp_reviews_list');
|
$review_items = carbon_get_post_meta($post_id, 'camp_reviews_list');
|
||||||
if (is_array($review_items) && !empty($review_items)) :
|
if (is_array($review_items) && !empty($review_items)) :
|
||||||
@ -606,7 +619,7 @@ $metrics = [
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="section-bg camp-faq" data-bg="mint" id="camp-faq">
|
<section class="section-bg camp-faq" data-bg="mint" id="camp-faq">
|
||||||
<h2 id="camp-faq" class="camp_title">Часто задаваемые вопросы</h2>
|
<h2 class="camp_title">Часто задаваемые вопросы</h2>
|
||||||
<div class="faq-wrapper">
|
<div class="faq-wrapper">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -657,7 +670,7 @@ $metrics = [
|
|||||||
$contact_location_text = carbon_get_post_meta($post_id, 'contact_location_text' );
|
$contact_location_text = carbon_get_post_meta($post_id, 'contact_location_text' );
|
||||||
$contact_mail = $opt_email;
|
$contact_mail = $opt_email;
|
||||||
?>
|
?>
|
||||||
<h2 id="camp-contacts" class="camp_title">Контакты</h2>
|
<h2 class="camp_title">Контакты</h2>
|
||||||
<div class="contact-wrapper">
|
<div class="contact-wrapper">
|
||||||
<div class="contact-content">
|
<div class="contact-content">
|
||||||
<div class="contact_subtitle">Телефон:</div>
|
<div class="contact_subtitle">Телефон:</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user