privacy
This commit is contained in:
@@ -83,12 +83,6 @@ function sev_tort_meta_tags() {
|
||||
$robots = ! empty( $page['indexable'] ) ? 'index, follow' : 'noindex, nofollow';
|
||||
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'] ) ) {
|
||||
$description = ! empty( $page['seo_description'] ) ? $page['seo_description'] : $page['description'];
|
||||
printf( '<meta name="description" content="%s">' . "\n", esc_attr( $description ) );
|
||||
@@ -117,12 +111,6 @@ function sev_tort_wp_robots( $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() ) {
|
||||
unset( $robots['noindex'], $robots['nofollow'] );
|
||||
$robots['index'] = true;
|
||||
|
||||
@@ -360,7 +360,7 @@ function sev_tort_page_config( $slug, $label, $title, $description, $h1, $lead,
|
||||
'lead' => $lead,
|
||||
'image' => $image,
|
||||
'style' => $style,
|
||||
'indexable' => 'politika-konfidencialnosti' !== $slug,
|
||||
'indexable' => true,
|
||||
'content' => $content,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ get_header();
|
||||
<p class="service-hero__lead"><?php echo esc_html( $page['lead'] ); ?></p>
|
||||
<div class="service-hero__actions">
|
||||
<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 class="service-hero__media">
|
||||
|
||||
Reference in New Issue
Block a user