This commit is contained in:
2026-07-05 14:32:53 +03:00
parent 42f8a380a0
commit 0ed4f599fd
3 changed files with 2 additions and 14 deletions

View File

@@ -83,12 +83,6 @@ function sev_tort_meta_tags() {
$robots = ! empty( $page['indexable'] ) ? 'index, follow' : 'noindex, nofollow'; $robots = ! empty( $page['indexable'] ) ? 'index, follow' : 'noindex, nofollow';
printf( '<meta name="robots" content="%s">' . "\n", esc_attr( $robots ) ); printf( '<meta name="robots" content="%s">' . "\n", esc_attr( $robots ) );
if ( 'politika-konfidencialnosti' === $page['slug'] ) {
printf( '<meta name="description" content="%s">' . "\n", esc_attr( 'Политика в отношении обработки персональных данных посетителей сайта sevastopol-tort.ru.' ) );
printf( '<link rel="canonical" href="%s">' . "\n", esc_url( home_url( '/' . $page['slug'] . '/' ) ) );
return;
}
if ( ! empty( $page['description'] ) ) { if ( ! empty( $page['description'] ) ) {
$description = ! empty( $page['seo_description'] ) ? $page['seo_description'] : $page['description']; $description = ! empty( $page['seo_description'] ) ? $page['seo_description'] : $page['description'];
printf( '<meta name="description" content="%s">' . "\n", esc_attr( $description ) ); printf( '<meta name="description" content="%s">' . "\n", esc_attr( $description ) );
@@ -117,12 +111,6 @@ function sev_tort_wp_robots( $robots ) {
return $robots; return $robots;
} }
if ( $page && 'politika-konfidencialnosti' === $page['slug'] ) {
unset( $robots['index'], $robots['follow'] );
$robots['noindex'] = true;
$robots['nofollow'] = true;
}
if ( ! $page && is_front_page() ) { if ( ! $page && is_front_page() ) {
unset( $robots['noindex'], $robots['nofollow'] ); unset( $robots['noindex'], $robots['nofollow'] );
$robots['index'] = true; $robots['index'] = true;

View File

@@ -360,7 +360,7 @@ function sev_tort_page_config( $slug, $label, $title, $description, $h1, $lead,
'lead' => $lead, 'lead' => $lead,
'image' => $image, 'image' => $image,
'style' => $style, 'style' => $style,
'indexable' => 'politika-konfidencialnosti' !== $slug, 'indexable' => true,
'content' => $content, 'content' => $content,
); );
} }

View File

@@ -25,7 +25,7 @@ get_header();
<p class="service-hero__lead"><?php echo esc_html( $page['lead'] ); ?></p> <p class="service-hero__lead"><?php echo esc_html( $page['lead'] ); ?></p>
<div class="service-hero__actions"> <div class="service-hero__actions">
<button class="button-main" type="button" data-lead-open data-lead-source="Получить расчет: первый экран <?php echo esc_attr( $page['label'] ); ?>">Получить расчет</button> <button class="button-main" type="button" data-lead-open data-lead-source="Получить расчет: первый экран <?php echo esc_attr( $page['label'] ); ?>">Получить расчет</button>
<a class="button-link" href="<?php echo esc_url( sev_tort_telegram_url() ); ?>" target="_blank" rel="noopener noreferrer">Написать в Telegram</a> <!-- <a class="button-link" href="<?php echo esc_url( sev_tort_telegram_url() ); ?>" target="_blank" rel="noopener noreferrer">Написать в Telegram</a> -->
</div> </div>
</div> </div>
<div class="service-hero__media"> <div class="service-hero__media">