This commit is contained in:
2024-05-20 15:37:46 +03:00
commit 00b7dbd0b7
10404 changed files with 3285853 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
?>
<main class="site-main" role="main">
<header class="page-header">
<h1 class="entry-title"><?php esc_html_e('The page can&rsquo;t be found.', gV('slug')); ?></h1>
</header>
<div class="page-content">
<p><?php esc_html_e('It looks like nothing was found at this location.', gV('slug')); ?></p>
</div>
</main>

View File

@ -0,0 +1,333 @@
<span class="data-wrapper" data-title="<?php the_title(); ?>" data-url="<?php the_permalink(); ?>" data-description="<?php echo get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true); ; ?>">
<?php
// echo $post_id;
$tax_id = get_the_tags(get_the_ID())[0]->term_id;
$show_fin_offer_widget = false;
$show_ipoteka_widget = false;
// проверяем на соответствие нужного тега, чтобы знать какой виджет выводить
switch ($tax_id) {
case 17:
$show_fin_offer_widget = true;
break;
case 30:
$show_fin_offer_widget = true;
break;
case 32:
$show_fin_offer_widget = true;
break;
case 9:
$show_fin_offer_widget = true;
break;
case 31:
$show_ipoteka_widget = true;
break;
case 28:
$show_ipoteka_widget = true;
break;
case 10:
$show_ipoteka_widget = true;
break;
}
?>
<div class="single-article-post" id="article.id-<?php echo get_the_ID(); ?>">
<?php
$post_id = get_the_ID();
echo '$post_id ' . $post_id;
echo '<br>';
echo 'get_the_ID(); ' . get_the_ID();
?>
<!-- хлебные крошки -->
<p id="breadcrumbs" class="breadcrumbs-container">
<span><a href="https://pampadu.ru/">Pampadu</a></span>
<span class="breadcrump-separator">—</span>
<span><span><a href="https://pampadu.ru/blog/">Блог</a></span>
<span class="breadcrump-separator">—</span>
<span class="breadcrumb_last" aria-current="page"><?php the_title(); ?></span></span>
</p>
<div class="ppd-container article-container">
<div class="article-header">
<h1 class="article-title"><?php the_title(); ?></h1>
<div class="layout article-tags wrap">
<?php if (!empty(get_the_tags(get_the_ID()))) : ?>
<?php foreach (get_the_tags(get_the_ID()) as $tag) : ?>
<div class="article-tag">
<a class="article-tag__link <?= $tag->slug . '__tag'?>" href="<?=str_replace("\"", "", "https://pampadu.ru/blog");?>/tag/<?= $tag->slug ?>/">
#<?= $tag->name ?>
</a>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="article-details">
<div class="article-details__common">
<?php echo get_avatar( get_the_author_meta('ID'), 50, '', '', array('class'=>'article-author__avatar')) ?>
<a class="article-author__name" href="<?php echo get_author_posts_url( $post->post_author ); ?>"><?php the_author(); ?></a>
<span class="article-details__separator">|</span>
<span class="article-date">Дата публикации: <?= get_the_date('d.m.Y') ?></span>
<span class="article-details__separator">|</span>
<?php echo do_shortcode('[rt_reading_time label="Время чтения:"]') ?>
</div>
<div class="article-details__social">
<?php
echo do_shortcode('[posts_like_dislike]');
echo do_shortcode('[epvc_views]');
echo '<div id="article-' . get_the_ID() . '-comments__count" class="article-comments__count comments-count-' . get_the_ID() . '" data-id="' . get_the_ID() . '" >';
echo '<svg class="article-comments__icon" width="15" height="14" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.125 8.75C13.125 9.05942 12.9933 9.35616 12.7589 9.57496C12.5245 9.79375 12.2065 9.91667 11.875 9.91667H4.375L1.875 12.25V2.91667C1.875 2.60725 2.0067 2.3105 2.24112 2.09171C2.47554 1.87292 2.79348 1.75 3.125 1.75H11.875C12.2065 1.75 12.5245 1.87292 12.7589 2.09171C12.9933 2.3105 13.125 2.60725 13.125 2.91667V8.75Z" stroke="#A4ABB6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>';
echo '<span class="article-comments__num">';
echo get_comments_number( $post );
echo '</span>';
echo '</div>';
?>
<div class="article-share">
<svg class="article-share__icon" width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.25 5C12.2855 5 13.125 4.16053 13.125 3.125C13.125 2.08947 12.2855 1.25 11.25 1.25C10.2145 1.25 9.375 2.08947 9.375 3.125C9.375 4.16053 10.2145 5 11.25 5Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M3.75 9.375C4.78553 9.375 5.625 8.53553 5.625 7.5C5.625 6.46447 4.78553 5.625 3.75 5.625C2.71447 5.625 1.875 6.46447 1.875 7.5C1.875 8.53553 2.71447 9.375 3.75 9.375Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M11.25 13.75C12.2855 13.75 13.125 12.9105 13.125 11.875C13.125 10.8395 12.2855 10 11.25 10C10.2145 10 9.375 10.8395 9.375 11.875C9.375 12.9105 10.2145 13.75 11.25 13.75Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M5.36914 8.44385L9.63789 10.9313" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9.63164 4.06885L5.36914 6.55635" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<ul class="article-share__list links-container">
<li class="article-share__item">
<a href="https://t.me/joinchat/TZvpUlJfAZfdZjuf" target="_blank">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="icon-main-color" d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#039BE5"/>
<path d="M5.94862 12.7181L18.4828 7.88532C19.0645 7.67515 19.5726 8.02724 19.3841 8.9069L19.3852 8.90582L17.251 18.9602C17.0929 19.6731 16.6693 19.8464 16.0767 19.5106L12.8267 17.1153L11.2591 18.6255C11.0858 18.7988 10.9395 18.9451 10.6037 18.9451L10.8345 15.6377L16.8578 10.1961C17.12 9.96532 16.7993 9.83532 16.4537 10.065L9.01012 14.7515L5.80129 13.7505C5.10471 13.5295 5.08954 13.0539 5.94862 12.7181Z" fill="white"/>
</svg>
</a>
</li>
<li class="article-share__item">
<a href="https://vk.com/avto_yslyga" target="_blank">
<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><circle class="icon-main-color" cx="13" cy="13" r="13" fill="#009BDD"/><path d="M6.85 9H5.1c-.5 0-.6.24-.6.5 0 .46.6 2.76 2.76 5.8 1.45 2.07 3.49 3.2 5.34 3.2 1.11 0 1.25-.25 1.25-.68v-1.57c0-.5.1-.6.46-.6.26 0 .7.13 1.74 1.13 1.19 1.2 1.38 1.72 2.05 1.72h1.75c.5 0 .75-.25.6-.74-.15-.5-.72-1.2-1.47-2.05-.4-.49-1.02-1-1.2-1.26-.26-.34-.2-.49 0-.78 0 0 2.13-3 2.35-4.03.11-.37 0-.64-.53-.64h-1.75a.76.76 0 00-.76.5s-.9 2.16-2.15 3.57c-.41.41-.6.54-.82.54-.1 0-.27-.13-.27-.5V9.64c0-.44-.13-.64-.5-.64H10.6c-.28 0-.45.2-.45.4 0 .42.64.52.7 1.7v2.58c0 .57-.1.67-.32.67-.6 0-2.04-2.18-2.9-4.67C7.47 9.2 7.3 9 6.85 9z" fill="#fff"/></svg>
</a>
</li>
<li class="article-share__item">
<a href="https://www.youtube.com/channel/UC0SeTdHMfY67ku8e7m-GMTw" target="_blank">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="icon-main-color icon-youtube" d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#FF0000"/>
<g clip-path="url(#clip0)">
<path d="M20.1865 9.56153C20.014 8.94686 19.5058 8.46282 18.8604 8.29855C17.6907 8 13 8 13 8C13 8 8.30937 8 7.13959 8.29855C6.49423 8.46282 5.98593 8.94686 5.81344 9.56153C5.5 10.6756 5.5 13 5.5 13C5.5 13 5.5 15.3244 5.81344 16.4385C5.98593 17.0531 6.49423 17.5372 7.13959 17.7015C8.30937 18 13 18 13 18C13 18 17.6907 18 18.8604 17.7015C19.5058 17.5372 20.014 17.0531 20.1865 16.4385C20.5 15.3244 20.5 13 20.5 13C20.5 13 20.5 10.6756 20.1865 9.56153Z" fill="white"/>
<path class="icon-main-color icon-youtube" d="M11.4658 15.1104L15.3863 13.0001L11.4658 10.8896V15.1104Z" fill="#FF0000"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="15" height="10" fill="white" transform="translate(5.5 8)"/>
</clipPath>
</defs>
</svg>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<article class="article-body">
<?php
echo wp_first_paragraph_excerpt(get_the_ID());
echo get_the_post_thumbnail( $post_id );
the_content();
// the_excerpt();
// $content = apply_filters( 'the_content', get_the_content() );
// echo $content;
//
// echo get_the_post_thumbnail( get_the_ID() );
// echo get_the_content();
?>
<div class="article-details__social article-details__social-bottom">
<button class="show-commmentsform">Оставить комментарий</button>
<?php
echo do_shortcode('[posts_like_dislike]');
echo do_shortcode('[epvc_views]');
echo '<div id="article-' . $post_id . '-comments__count" class="article-comments__count comments-count-' . $post_id . '" data-id="' . $post_id . '" >';
echo '<svg class="article-comments__icon" width="15" height="14" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.125 8.75C13.125 9.05942 12.9933 9.35616 12.7589 9.57496C12.5245 9.79375 12.2065 9.91667 11.875 9.91667H4.375L1.875 12.25V2.91667C1.875 2.60725 2.0067 2.3105 2.24112 2.09171C2.47554 1.87292 2.79348 1.75 3.125 1.75H11.875C12.2065 1.75 12.5245 1.87292 12.7589 2.09171C12.9933 2.3105 13.125 2.60725 13.125 2.91667V8.75Z" stroke="#A4ABB6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>';
echo '<span class="article-comments__num">';
echo get_comments_number($post_id);
echo '</span>';
echo '</div>';
?>
<div class="article-share">
<svg class="article-share__icon" width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.25 5C12.2855 5 13.125 4.16053 13.125 3.125C13.125 2.08947 12.2855 1.25 11.25 1.25C10.2145 1.25 9.375 2.08947 9.375 3.125C9.375 4.16053 10.2145 5 11.25 5Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M3.75 9.375C4.78553 9.375 5.625 8.53553 5.625 7.5C5.625 6.46447 4.78553 5.625 3.75 5.625C2.71447 5.625 1.875 6.46447 1.875 7.5C1.875 8.53553 2.71447 9.375 3.75 9.375Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M11.25 13.75C12.2855 13.75 13.125 12.9105 13.125 11.875C13.125 10.8395 12.2855 10 11.25 10C10.2145 10 9.375 10.8395 9.375 11.875C9.375 12.9105 10.2145 13.75 11.25 13.75Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M5.36914 8.44385L9.63789 10.9313" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9.63164 4.06885L5.36914 6.55635" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<ul class="article-share__list links-container">
<li class="article-share__item">
<a href="https://t.me/joinchat/TZvpUlJfAZfdZjuf" target="_blank">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="icon-main-color" d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#039BE5"/>
<path d="M5.94862 12.7181L18.4828 7.88532C19.0645 7.67515 19.5726 8.02724 19.3841 8.9069L19.3852 8.90582L17.251 18.9602C17.0929 19.6731 16.6693 19.8464 16.0767 19.5106L12.8267 17.1153L11.2591 18.6255C11.0858 18.7988 10.9395 18.9451 10.6037 18.9451L10.8345 15.6377L16.8578 10.1961C17.12 9.96532 16.7993 9.83532 16.4537 10.065L9.01012 14.7515L5.80129 13.7505C5.10471 13.5295 5.08954 13.0539 5.94862 12.7181Z" fill="white"/>
</svg>
</a>
</li>
<li class="article-share__item">
<a href="https://vk.com/avto_yslyga" target="_blank">
<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><circle class="icon-main-color" cx="13" cy="13" r="13" fill="#009BDD"/><path d="M6.85 9H5.1c-.5 0-.6.24-.6.5 0 .46.6 2.76 2.76 5.8 1.45 2.07 3.49 3.2 5.34 3.2 1.11 0 1.25-.25 1.25-.68v-1.57c0-.5.1-.6.46-.6.26 0 .7.13 1.74 1.13 1.19 1.2 1.38 1.72 2.05 1.72h1.75c.5 0 .75-.25.6-.74-.15-.5-.72-1.2-1.47-2.05-.4-.49-1.02-1-1.2-1.26-.26-.34-.2-.49 0-.78 0 0 2.13-3 2.35-4.03.11-.37 0-.64-.53-.64h-1.75a.76.76 0 00-.76.5s-.9 2.16-2.15 3.57c-.41.41-.6.54-.82.54-.1 0-.27-.13-.27-.5V9.64c0-.44-.13-.64-.5-.64H10.6c-.28 0-.45.2-.45.4 0 .42.64.52.7 1.7v2.58c0 .57-.1.67-.32.67-.6 0-2.04-2.18-2.9-4.67C7.47 9.2 7.3 9 6.85 9z" fill="#fff"/></svg>
</a>
</li>
<li class="article-share__item">
<a href="https://www.youtube.com/channel/UC0SeTdHMfY67ku8e7m-GMTw" target="_blank">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="icon-main-color icon-youtube" d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#FF0000"/>
<g clip-path="url(#clip0)">
<path d="M20.1865 9.56153C20.014 8.94686 19.5058 8.46282 18.8604 8.29855C17.6907 8 13 8 13 8C13 8 8.30937 8 7.13959 8.29855C6.49423 8.46282 5.98593 8.94686 5.81344 9.56153C5.5 10.6756 5.5 13 5.5 13C5.5 13 5.5 15.3244 5.81344 16.4385C5.98593 17.0531 6.49423 17.5372 7.13959 17.7015C8.30937 18 13 18 13 18C13 18 17.6907 18 18.8604 17.7015C19.5058 17.5372 20.014 17.0531 20.1865 16.4385C20.5 15.3244 20.5 13 20.5 13C20.5 13 20.5 10.6756 20.1865 9.56153Z" fill="white"/>
<path class="icon-main-color icon-youtube" d="M11.4658 15.1104L15.3863 13.0001L11.4658 10.8896V15.1104Z" fill="#FF0000"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="15" height="10" fill="white" transform="translate(5.5 8)"/>
</clipPath>
</defs>
</svg>
</a>
</li>
</ul>
</div>
</div>
<div class="article-comments" id="article-<?php echo $post_id;?>-comments__container">
<div class="commentsform__container">
<h3 class="comments-title" id="comments">Комментарии <span class="comments-num">
(<?php
echo get_comments_number($post_id);
?>)
</span>
</h3>
<?php
// global $withcomments;
// $withcomments = true;
// comments_template();
comment_form( $args = array(), $post_id );
?>
</div>
<?php
$comments = get_comments(array(
'post_id' => $post_id,
'hierarchical' => 'threaded',
// 'parent' => $question->comment_ID,
));
if ($comments) {
echo '<ol class="commentlist">';
foreach($comments as $comment) {
$childcomments = get_comments(array(
'post_id' => $post_id,
'status' => 'approve',
'order' => 'DESC',
'parent' => $comment->comment_ID,
));
// echo '<pre>' . var_export($childcomments, true) . '</pre>';
$link = get_comment_reply_link( [
'reply_text' => "ответить",
'respond_id' => 'comment',
'depth' => 5,
'max_depth' => 10,
], $comment->comment_ID, $post_id );
$d = "F jS Y в h:i";
$comment_ID = $comment->comment_ID;
$comment_date = get_comment_date( $d, $comment_ID );
$user_id = strstr($comment->comment_author_email, '@', true);
echo '<li class="comment user-'. $user_id .'">';
echo '<div class="comment-body">';
echo '<p class="comment-author">' . $comment->comment_author . '</p>';
echo '<div class="comment-meta commentmetadata">';
echo '<span class="comment-date">' . $comment_date . '</span>';
echo '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '">Изменить</a>';
echo '</div>';
echo '<p class="comment-context">'. $comment->comment_content . '</p>';
echo $link;
echo '</div>';
if($childcomments) {
echo '<ul class="children">';
foreach($childcomments as $childcomment) {
$link = get_comment_reply_link( [
'reply_text' => "ответить",
'respond_id' => 'comment',
'depth' => 5,
'max_depth' => 10,
], $childcomment->comment_ID, $post_id );
$d = "F jS Y в h:i";
$comment_ID = $comment->comment_ID;
$comment_date = get_comment_date( $d, $comment_ID );
$user_id = strstr($comment->comment_author_email, '@', true);
echo '<li class="comment depth-2 user-'. $user_id .'">';
echo '<div class="comment-body">';
echo '<p class="comment-author">' . $childcomment->comment_author . '</p>';
echo '<div class="comment-meta commentmetadata">';
echo '<span class="comment-date">' . $comment_date . '</span>';
echo '<a class="comment-edit-link" href="' . get_edit_comment_link( $childcomment->comment_ID ) . '">Изменить</a>';
echo '</div>';
echo '<p class="comment-context">'. $childcomment->comment_content . '</p>';
echo $link;
echo '</div>';
echo '</li>';
}
echo '</ul>';
}
echo '</li>';
}
echo '</ol>';
}
?>
</div>
</article>
<div class="article-aside">
<?php
$posttags = get_the_tags(get_the_ID());
// var_dump ($posttags);
if ($posttags) {
$tagslugforaside = $posttags[0]->slug;
}
else {
$tagslugforaside = novosti;
}
echo $tagslugforaside;
get_template_part('template-parts/latest-news', get_post_type(), array(
'posts_number' => 6,
'tag_slug' => $tagslugforaside,
'block_header' => 'Материалы по теме'
));
$posttags = '';
wp_reset_postdata();
?>
</div>
</div>
</div>
<?php
echo $post_id;
if ($show_fin_offer_widget) {
echo get_template_part('blog-posts/tag-banner-banki');
} elseif ($show_ipoteka_widget){
echo get_template_part('blog-posts/tag-banner-ipoteka');
} else {
}
?>
</span>

View File

@ -0,0 +1,41 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<main class="site-main" role="main">
<header class="page-header">
</header>
<div class="page-content">
<?php
while ( have_posts() ) {
the_post();
$post_link = get_permalink();
?>
<article class="post">
<?php
printf( '<h2 class="%s"><a href="%s">%s</a></h2>', 'entry-title', esc_url( $post_link ), esc_html( get_the_title() ) );
printf( '<a href="%s">%s</a>', esc_url( $post_link ), get_the_post_thumbnail( $post, 'large' ) );
the_excerpt();
?>
</article>
<?php } ?>
</div>
<?php wp_link_pages(); ?>
<?php
global $wp_query;
if ( $wp_query->max_num_pages > 1 ) :
?>
<nav class="pagination" role="navigation">
<?php /* Translators: HTML arrow */ ?>
<div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', gV('slug') ), '<span class="meta-nav">&larr;</span>' ) ); ?></div>
<?php /* Translators: HTML arrow */ ?>
<div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', gV('slug') ), '<span class="meta-nav">&rarr;</span>' ) ); ?></div>
</nav>
<?php endif; ?>
</main>

View File

@ -0,0 +1,461 @@
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
?>
<footer id="site-footer" class="site-footer" role="contentinfo">
<div class="footer" style="position: relative">
<div class="footer-container">
<div class="footer-inner">
<div class="footer-col col-logo" style="">
<img
alt="logo"
src="/wp-content/themes/simple-theme/img/logo-footer.svg"
class="ft-logo"
/>
<div class="ft-address">Связь по телефону:</div>
<div class="ft-phone">+7 (499) 110-83-65</div>
<div>
<div class="ft-address">ИНН 9729069737</div>
<div class="ft-address">КПП 772501001</div>
</div>
<div>
<div class="ft-address mt-5">Адрес:</div>
<div class="ft-address">г. Москва,</div>
<div class="ft-address">Пресненская наб., д. 6,</div>
<div class="ft-address">стр. 2, этаж 8</div>
</div>
</div>
<div class="footer-cont">
<div class="footer-grid">
<?php wp_nav_menu(array(
'theme_location' =>
'link_menu', 'container_class' => 'layout footer-links column',
'item_wrap' => '
<ul id="%1$s" class="%2$s">
%3$s
</ul>
' )); ?>
<div class="footer-products">
<div>СТРАХОВАНИЕ</div>
<?php wp_nav_menu(array(
'theme_location' =>
'products_menu', 'container_class' => 'column products_menu',
'menu_class' => 'layout column wrap', 'item_wrap' => '
<ul id="%1$s" style="max-height: 260px" class="%2$s">
%3$s
</ul>
' )); ?>
</div>
<div class="footer-companies">
<div>СТРАХОВЫЕ КОМПАНИИ</div>
<?php wp_nav_menu(array(
'theme_location' =>
'companies_menu', 'container_class' => 'column companies_menu',
'menu_class' => 'layout column wrap', 'item_wrap' => '
<ul id="%1$s" style="max-height: 260px" class="%2$s">
%3$s
</ul>
' )); ?>
</div>
<div class="footer-banks">
<div>ФИНАНСОВЫЕ ОФФЕРЫ</div>
<?php wp_nav_menu(array(
'theme_location' =>
'banks_menu', 'container_class' => 'column banks_menu',
'menu_class' => 'layout column wrap', 'item_wrap' => '
<ul id="%1$s" style="max-height: 260px" class="%2$s">
%3$s
</ul>
' )); ?>
</div>
</div>
<div class="info-grid">
<div class="layout column">
<a href="/legal" class="a py-1"> ЮРИДИЧЕСКИЕ ДОКУМЕНТЫ </a>
<a
target="_blank"
href="https://docs.google.com/document/d/1M9-nRbmTFUu6OXX-xOiYc2LdXMiIRegS/edit"
rel="nofollow"
class="small"
style="color: rgb(125, 141, 147) !important; font-size: 12px"
>Правила платформы</a
>
<a
target="_blank"
href="https://docs.google.com/document/d/17PnoqonnOTeU6fVyfT5lmioboKaT2IPO/edit"
rel="nofollow"
class="small"
style="color: rgb(125, 141, 147) !important; font-size: 12px"
>Политика конфиденциальности</a
>
<a
target="_blank"
href="https://docs.google.com/document/d/1WU8_9KGYem9OS3mPoHbb3S2PmnkMEC5g/edit"
rel="nofollow"
class="small"
style="color: rgb(125, 141, 147) !important; font-size: 12px"
>Договор оферты для физ. лиц</a
>
<a
target="_blank"
href="https://docs.google.com/document/d/1dI9Xr47Wg6SDR9D-oMm1uV1VvuVxtgmeQo1XLEo2dgM/edit"
rel="nofollow"
class="small"
style="color: rgb(125, 141, 147) !important; font-size: 12px"
>Договор оферты для юр. лиц</a
>
</div>
<div class="info-grid__subscribe">
Подписывайтесь на наши соц.сети, чтобы не пропускать свежие
новости!
</div>
<div style="display: flex; align-items: flex-start">
<div
class="footer-col"
style="flex-grow: 0; margin: 0px 20px 0px 0px"
>
<span class="ft-header">Мы в соц. сетях</span>
<div class="layout ft-tg-cont align-center">
<a
href="https://t.me/joinchat/TZvpUlJfAZfdZjuf"
rel="nofollow"
target="_blank"
style="text-decoration: none"
><img
width="22"
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIxLjkzNyAxLjYzOWwtMy4zMiAxNS4yNzRjLS4yNSAxLjA3OC0uOTAzIDEuMzQ3LTEuODMxLjgzOWwtNS4wNTktMy42MzctMi40NCAyLjI5Yy0uMjcuMjY0LS40OTcuNDg0LTEuMDE3LjQ4NGwuMzYzLTUuMDI2IDkuMzc1LTguMjY1Yy40MDgtLjM1NC0uMDg4LS41NS0uNjMzLS4xOTZsLTExLjU5IDcuMTItNC45OS0xLjUyNEMtLjI5MSA4LjY2OC0uMzEgNy45NCAxLjAyIDcuNDMxTDIwLjUzOC4wOTZjLjkwMy0uMzMgMS42OTQuMTk2IDEuNCAxLjU0M3oiIGZpbGw9IiM3MjQ1RkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="
alt="telegram"
/></a>
<a
href="https://www.facebook.com/Pampadu.ru"
target="_blank"
rel="nofollow"
style="text-decoration: none"
><img
width="18"
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0xOCAyLjk4NDQ1QzE4IDEuMzk4OTYgMTYuNjAxIDAgMTUuMDE1NSAwSDIuOTg0NDVDMS4zOTg5NiAwIDAgMS4zOTg5NiAwIDIuOTg0NDVWMTUuMDE1NUMwIDE2LjYwMSAxLjM5ODk2IDE4IDIuOTg0NDUgMThIOS4wNDY2M1YxMS4xOTE3SDYuODA4MjlWOC4yMDcyNkg5LjA0NjYzVjYuOTk0ODJDOS4wNDY2MyA0Ljk0MyAxMC41Mzg5IDMuMTcwOTggMTIuNDA0MSAzLjE3MDk4SDE0LjgyOVY2LjE1NTQzSDEyLjQwNDFDMTIuMTI0NCA2LjE1NTQzIDExLjg0NDYgNi40MzUyMyAxMS44NDQ2IDYuOTk0ODJWOC4yMDcyNkgxNC44MjlWMTEuMTkxN0gxMS44NDQ2VjE4SDE1LjAxNTVDMTYuNjAxIDE4IDE4IDE2LjYwMSAxOCAxNS4wMTU1VjIuOTg0NDVaIiBmaWxsPSIjNzI0NUZGIi8+DQo8L3N2Zz4NCg=="
alt="facebook"
/></a>
<a
href="https://vk.com/avto_yslyga"
rel="nofollow"
target="_blank"
style="text-decoration: none"
><img width="25" src="/_nuxt/img/vk.384e0ec.svg" alt="vk"
/></a>
<a
href="https://www.instagram.com/pampadu.ru"
rel="nofollow"
target="_blank"
style="text-decoration: none"
><img
width="18"
src="/_nuxt/img/instagramm.16d5f97.svg"
alt="instagramm"
/></a>
<a
href="https://ok.ru/pampadu"
rel="nofollow"
target="_blank"
style="text-decoration: none"
><img width="11" src="/_nuxt/img/ok.3c137f5.svg" alt="ok"
/></a>
</div>
</div>
<div class="footer-col skolkovo" style="flex-direction: row; margin: 0 0 0 30px">
<a
href="https://navigator.sk.ru/orn/1124211"
rel="nofollow"
target="_blank"
style="text-decoration: none; width: min-content"
><img
src="/_nuxt/img/skolkovo-2x.44c87b8.png"
alt="skolkovo"
style="max-width: 85px"
/></a>
</div>
</div>
</div>
</div>
</div>
<div class="footer-download-appstore-links" style="background: ">
<div class="layout justify-space-between">
<div class="layout align-center">
<div class="app-code-wrapper" style="border: 10px solid white">
<div
class="v-image v-responsive appstore-links-code theme--light"
style="max-height: 113px; max-width: 113px"
>
<div
class="v-responsive__sizer"
style="padding-bottom: 100%"
></div>
<div
class="v-image__image v-image__image--cover"
style="
background-image: url('data:image/webp;base64,UklGRv4AAABXRUJQVlA4TPIAAAAvfAAfAA8w//M///MfeIDc2nbc5hoTlyyBnYiNZRCgxqROfglc/oXgWwBZQET/AyDbXcEnANNDe/pkw0Nd4cmW7PWrRyVXaQxLrOThA1fRnu2246EuAJBx1C3jCcB0VdkrGaptPnuFeI6rsNtzgbCe+hyPbLvK/PYDye1l+xmdFW4v4388su31W9p8D3uGFdi9CvMb4zL+2ZLdywVCezbYEkZngfbDt2glw/otbX482TKenAU4XUBVfsZVwnoW5gMku5Y41gjtCeMyrKdtgSdbcvtIYB2tW/oPuQp33VLrVxbQngDEUc/S5gMkdz1LPIeF+Q==');
background-position: center center;
"
></div>
<div class="v-responsive__content" style="width: 125px"></div>
</div>
</div>
<div class="appstore-links-header">
<h2 class="appstore-links-title">Скачать приложение</h2>
<h4 class="appstore-links-description">
Все&nbsp;сервисы и&nbsp;продукты Пампаду в&nbsp;доступны
в&nbsp;вашем телефоне по&nbsp;одному касанию. Для&nbsp;установки
наведите камеру телефона на&nbsp;QR-код.
</h4>
</div>
</div>
<div class="" style="display: flex; align-items: center">
<a href="https://appgallery.huawei.com/app/C108060123?sharePrepath=ag&amp;channelId=pampadu.ru&amp;id=45dd9ee477ce4351b51cda0d8b640aca&amp;s=151BE48F692BBA7CFB1833282CC89F11AB4C9DAF3B20EF1761E5184FFD46DAC7&amp;detailType=0&amp;v=&amp;callType=AGDLINK&amp;installType=0000&amp;shareTo=qrcode" aria-label="Скачать приложение в AppGallery" target="_blank" class="mr-3"><div class="v-image v-responsive theme--light" style="max-width: 165px;"><div class="v-responsive__sizer" style="padding-bottom: 29.0909%;"></div><div class="v-image__image v-image__image--cover" style="background-image: url('https://pampadu.ru/_nuxt/img/appgallery.2f729d4.svg'); background-position: center center;"></div><div class="v-responsive__content" style="width: 165px;"></div></div></a>
<a href="http://bit.ly/3R1PCXM" target="_blank" class="mr-3"
><div
class="v-image v-responsive theme--light"
style="max-width: 165px"
>
<div
class="v-responsive__sizer"
style="padding-bottom: 29.0909%"
></div>
<div
class="v-image__image v-image__image--cover"
style="
background-image: url('https://pampadu.ru/_nuxt/img/googleplay.a8bc1cb.svg');
background-position: center center;
"
></div>
<div
class="v-responsive__content"
style="width: 165px"
></div></div
></a>
<a href="https://apple.co/3wsAqcx" target="_blank"
><div
class="v-image v-responsive theme--light"
style="max-width: 165px"
>
<div
class="v-responsive__sizer"
style="padding-bottom: 28.7425%"
></div>
<div
class="v-image__image v-image__image--cover"
style="
background-image: url('https://pampadu.ru/_nuxt/img/appstore.028452a.svg');
background-position: center center;
"
></div>
<div
class="v-responsive__content"
style="width: 167px"
></div></div
></a>
</div>
</div>
</div>
</div>
<div class="footer-mobile">
<div class="mobile-info" style="">
<img
alt="logo"
src="/wp-content/themes/simple-theme/img/logo-footer.svg"
class="ft-logo"
/>
<div class="contacts layout shrink column align-content-center">
<div class="ft-address">Связь по телефону:</div>
<div class="ft-phone" style="margin: 8px 0 0 0;">+7 (499) 110-83-65</div>
<div class="ft-address mt-2">ИНН 9729069737 КПП 772501001</div>
<div class="ft-address mt-2">
Адрес: г. Москва, Пресненская наб., д.12 Башня Федерация, этаж 37
</div>
</div>
</div>
<?php wp_nav_menu(array(
'theme_location' =>
'link_menu', 'container_class' => '', 'menu_class' => 'mobile-links',
'item_wrap' => '
<ul id="%1$s" class="%2$s">
%3$s
</ul>
' )); ?>
<ul id="footer-mobile-menu" class="footer-mobile-menu">
<li class="menu-item-has-children">
<a>Страхование</a>
<?php wp_nav_menu(array(
'theme_location' =>
'products_menu', 'container_class' => 'column', 'menu_class' =>
'sub-menu hidden', 'item_wrap' => '
<ul id="%1$s" class="%2$s">
%3$s
</ul>
' )); ?>
</li>
<li class="menu-item-has-children">
<a>Страховые компании</a>
<?php wp_nav_menu(array(
'theme_location' =>
'companies_menu', 'container_class' => 'column', 'menu_class' =>
'sub-menu hidden', 'item_wrap' => '
<ul id="%1$s" class="%2$s">
%3$s
</ul>
' )); ?>
</li>
<li class="menu-item-has-children">
<a>Финансовые офферы</a>
<?php wp_nav_menu(array(
'theme_location' =>
'banks_menu', 'container_class' => 'column', 'menu_class' => 'sub-menu
hidden', 'item_wrap' => '
<ul id="%1$s" class="%2$s">
%3$s
</ul>
' )); ?>
</li>
<li class="menu-item-has-children">
<a>Юридические документы</a>
<?php wp_nav_menu(array(
'theme_location' =>
'mobile_footer_menu', 'container_class' => 'column', 'menu_class' =>
'sub-menu hidden', 'item_wrap' => '
<ul id="%1$s" class="%2$s">
%3$s
</ul>
' )); ?>
</li>
</ul>
<div class="mobile-social mt-8">
<div class="ft-header">Мы в соц. сетях</div>
<div class="layout ft-tg-cont align-center">
<a
href="https://t.me/joinchat/TZvpUlJfAZfdZjuf"
rel="nofollow"
target="_blank"
style="text-decoration: none"
><img
width="22"
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIxLjkzNyAxLjYzOWwtMy4zMiAxNS4yNzRjLS4yNSAxLjA3OC0uOTAzIDEuMzQ3LTEuODMxLjgzOWwtNS4wNTktMy42MzctMi40NCAyLjI5Yy0uMjcuMjY0LS40OTcuNDg0LTEuMDE3LjQ4NGwuMzYzLTUuMDI2IDkuMzc1LTguMjY1Yy40MDgtLjM1NC0uMDg4LS41NS0uNjMzLS4xOTZsLTExLjU5IDcuMTItNC45OS0xLjUyNEMtLjI5MSA4LjY2OC0uMzEgNy45NCAxLjAyIDcuNDMxTDIwLjUzOC4wOTZjLjkwMy0uMzMgMS42OTQuMTk2IDEuNCAxLjU0M3oiIGZpbGw9IiM3MjQ1RkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="
alt="telegram"
/></a>
<a
href="https://www.facebook.com/Pampadu.ru"
target="_blank"
rel="nofollow"
style="text-decoration: none"
><img
width="18"
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0xOCAyLjk4NDQ1QzE4IDEuMzk4OTYgMTYuNjAxIDAgMTUuMDE1NSAwSDIuOTg0NDVDMS4zOTg5NiAwIDAgMS4zOTg5NiAwIDIuOTg0NDVWMTUuMDE1NUMwIDE2LjYwMSAxLjM5ODk2IDE4IDIuOTg0NDUgMThIOS4wNDY2M1YxMS4xOTE3SDYuODA4MjlWOC4yMDcyNkg5LjA0NjYzVjYuOTk0ODJDOS4wNDY2MyA0Ljk0MyAxMC41Mzg5IDMuMTcwOTggMTIuNDA0MSAzLjE3MDk4SDE0LjgyOVY2LjE1NTQzSDEyLjQwNDFDMTIuMTI0NCA2LjE1NTQzIDExLjg0NDYgNi40MzUyMyAxMS44NDQ2IDYuOTk0ODJWOC4yMDcyNkgxNC44MjlWMTEuMTkxN0gxMS44NDQ2VjE4SDE1LjAxNTVDMTYuNjAxIDE4IDE4IDE2LjYwMSAxOCAxNS4wMTU1VjIuOTg0NDVaIiBmaWxsPSIjNzI0NUZGIi8+DQo8L3N2Zz4NCg=="
alt="facebook"
/></a>
<a
href="https://vk.com/avto_yslyga"
rel="nofollow"
target="_blank"
style="text-decoration: none"
><img width="25" src="/_nuxt/img/vk.384e0ec.svg" alt="vk"
/></a>
<a
href="https://www.instagram.com/pampadu.ru"
rel="nofollow"
target="_blank"
style="text-decoration: none"
><img
width="18"
src="/_nuxt/img/instagramm.16d5f97.svg"
alt="instagramm"
/></a>
<a
href="https://ok.ru/pampadu"
rel="nofollow"
target="_blank"
style="text-decoration: none"
><img width="11" src="/_nuxt/img/ok.3c137f5.svg" alt="ok"
/></a>
<div class="footer-col skolkovo" style="flex-direction: row; margin: 0 0 0 30px">
<a
href="https://navigator.sk.ru/orn/1124211"
rel="nofollow"
target="_blank"
style="text-decoration: none; width: min-content"
><img
src="/_nuxt/img/skolkovo-2x.44c87b8.png"
alt="skolkovo"
style="max-width: 85px"
/></a>
</div>
</div>
</div>
<div class="appstore-links__mobile" style="display: flex; align-items: center">
<h2 class="appstore-links-title">Скачать приложение</h2>
<a href="https://appgallery.huawei.com/app/C108060123?sharePrepath=ag&amp;channelId=pampadu.ru&amp;id=45dd9ee477ce4351b51cda0d8b640aca&amp;s=151BE48F692BBA7CFB1833282CC89F11AB4C9DAF3B20EF1761E5184FFD46DAC7&amp;detailType=0&amp;v=&amp;callType=AGDLINK&amp;installType=0000&amp;shareTo=qrcode" aria-label="Скачать приложение в AppGallery" target="_blank" class="mr-3"><div class="v-image v-responsive theme--light" style="max-width: 165px;"><div class="v-responsive__sizer" style="padding-bottom: 29.0909%;"></div><div class="v-image__image v-image__image--cover" style="background-image: url('https://pampadu.ru/_nuxt/img/appgallery.2f729d4.svg'); background-position: center center;"></div><div class="v-responsive__content" style="width: 165px;"></div></div></a>
<a href="http://bit.ly/3R1PCXM" target="_blank" class="mr-3"
><div
class="v-image v-responsive theme--light"
style="max-width: 165px"
>
<div
class="v-responsive__sizer"
style="padding-bottom: 29.0909%"
></div>
<div
class="v-image__image v-image__image--cover"
style="
background-image: url('https://pampadu.ru/_nuxt/img/googleplay.a8bc1cb.svg');
background-position: center center;
"
></div>
<div
class="v-responsive__content"
style="width: 165px"
></div></div
></a>
<a href="https://apple.co/3wsAqcx" target="_blank"
><div
class="v-image v-responsive theme--light"
style="max-width: 165px"
>
<div
class="v-responsive__sizer"
style="padding-bottom: 28.7425%"
></div>
<div
class="v-image__image v-image__image--cover"
style="
background-image: url('https://pampadu.ru/_nuxt/img/appstore.028452a.svg');
background-position: center center;
"
></div>
<div
class="v-responsive__content"
style="width: 167px"
></div></div
></a>
</div>
</div>
<hr
role="separator"
aria-orientation="horizontal"
class="v-divider theme--light"
/>
<div class="footer-text" style="padding: 0 20px">
©
<?php echo date("Y"); ?>, ООО «Страховые Партнеры»<br />
<span class="footer-text-small">
Вся представленная на сайте информация носит исключительно
информационный характер и не является публичной офертой, определяемой
положениями Статьи 437 Гражданского кодекса Российской Федерации.<br />
ООО «Страховые Партнеры» НЕ ведет страховую деятельность или
деятельность страховых брокеров, требующую лицензирование согласно
законам РФ.
</span>
</div>
</div>
</footer>

View File

@ -0,0 +1,3 @@
<?php
echo 'sad';
?>

View File

@ -0,0 +1,38 @@
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
$site_name = get_bloginfo('name');
$tagline = get_bloginfo('description', 'display');
?>
<header class="site-header" role="banner">
<?php if (has_nav_menu('main_menu')) : ?>
<nav class="site-navigation" role="navigation">
<div class="w-100 header-content dense">
<div class="w-100 header-content-inner">
<a href="/" class="headbar-sideitems" style="flex:1 0 auto;" title="На главную">
<img src="/wp-content/themes/simple-theme/img/logo.svg" alt="logo" class="logo main_logo">
</a>
<?php
wp_nav_menu(array(
'theme_location' => 'main_menu',
'container_class' => 'headbar-centeritems main-menu__container',
'menu_class' => 'headbar-centeritems',
'item_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>'
));
?>
<div class="headbar-sideitems headbar-sideitems_mobile" style="flex: 1 1 auto; justify-content: flex-end;"><span class="sm-headbar-control"><span class="sm-bar sm-bar1"></span><span class="sm-bar sm-bar2"></span><span class="sm-bar sm-bar3"></span></span></div>
<div class="headbar-sideitems header-login__menu" style="flex: 1 0 auto; justify-content: flex-end;">
<a href="https://agents.pampadu.ru/" class="btn header-btn-inverted">Войти</a>
<a href="https://agents.pampadu.ru/#/register" class="btn text-center ml-2" style="transform-origin: center top 0px;">Зарегистрироваться</a>
</div>
</div>
</div>
</nav>
<?php endif; ?>
</header>

View File

@ -0,0 +1,17 @@
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
?>
<!-- Content -->
<main <?php /*post_class('site-main');*/ ?> role="main">
<?php
// if ('' != locate_template('template-parts/reviews_wrapper.php')) {
// get_template_part('template-parts/reviews_wrapper');
// }
?>
</main>

View File

@ -0,0 +1,24 @@
<?php
$posts_number = isset($args['posts_number']) ? $args['posts_number'] : 5;
$tag_slug = isset($args['tag_slug']) ? $args['tag_slug'] : '';
$block_header = isset($args['block_header']) ? $args['block_header'] : 'Сейчас читают';
?>
<h5 class="latest-articles__header"><?php echo $block_header; ?></h5>
<?php
echo '<ul class="latest-articles__list">';
global $post; // не обязательно
$myposts = get_posts( array(
'posts_per_page' => $posts_number,
'tag' => $tag_slug
) );
foreach( $myposts as $post ){
setup_postdata( $post );
echo get_template_part('blog-posts/blog-post-currently-reading');
}
wp_reset_postdata(); // сбрасываем переменную $post
echo '</ul>';
?>

View File

@ -0,0 +1,6 @@
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
// Modals

View File

@ -0,0 +1,42 @@
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
?>
<main class="site-main" role="main">
<header class="page-header">
<h1 class="entry-title">
<?php esc_html_e('Search results for: ', gV('slug')); ?>
<span><?php echo get_search_query(); ?></span>
</h1>
</header>
<div class="page-content">
<?php if (have_posts()) : ?>
<?php
while (have_posts()) :
the_post();
printf('<h2><a href="%s">%s</a></h2>', esc_url(get_permalink()), esc_html(get_the_title()));
the_post_thumbnail();
the_excerpt();
endwhile;
?>
<?php else : ?>
<p><?php esc_html_e('It seems we can\'t find what you\'re looking for.', gV('slug')); ?></p>
<?php endif; ?>
</div>
<?php wp_link_pages(); ?>
<?php
global $wp_query;
if ($wp_query->max_num_pages > 1) :
?>
<nav class="pagination" role="navigation">
<?php /* Translators: HTML arrow */ ?>
<div class="nav-previous"><?php next_posts_link(sprintf(__('%s older', gV('slug')), '<span class="meta-nav">&larr;</span>')); ?></div>
<?php /* Translators: HTML arrow */ ?>
<div class="nav-next"><?php previous_posts_link(sprintf(__('newer %s', gV('slug')), '<span class="meta-nav">&rarr;</span>')); ?></div>
</nav>
<?php endif; ?>
</main>

View File

@ -0,0 +1,371 @@
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
?>
<?php
while (have_posts()) : the_post();
$post_id = get_the_ID();
$comments_count = wp_count_comments($post_id);
$tax_id = get_the_tags(get_the_ID())[0]->term_id;
$show_fin_offer_widget = false;
$show_ipoteka_widget = false;
// проверяем на соответствие нужного тега, чтобы знать какой виджет выводить
switch ($tax_id) {
case 17:
$show_fin_offer_widget = true;
break;
case 30:
$show_fin_offer_widget = true;
break;
case 32:
$show_fin_offer_widget = true;
break;
case 9:
$show_fin_offer_widget = true;
break;
case 31:
$show_ipoteka_widget = true;
break;
case 28:
$show_ipoteka_widget = true;
break;
case 10:
$show_ipoteka_widget = true;
break;
}
?>
<?php $tags = get_the_tags(); $tag = $tags[0]->slug; $same_id = get_the_ID(); ?><span id="catcat" data-tag ="<?php echo $tag; ?>" data-sameid="<?php echo $same_id; ?>" ></span>
<main <?php post_class('site-main'); ?> role="main">
<script>
</script>
<div class="single-article-post" id="article.id">
<div class="projects-list-wrap"> <!-- begin of wrapper -->
<span class="data-wrapper" data-title="<?php the_title(); ?>" data-url="<?php the_permalink(); ?>" data-description="<?php echo get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true); ; ?>">
<?php
?>
<!-- хлебные крошки -->
<p id="breadcrumbs" class="breadcrumbs-container">
<span><a href="https://pampadu.ru/">Pampadu</a></span>
<span class="breadcrump-separator">—</span>
<span><span><a href="https://pampadu.ru/blog/">Блог</a></span>
<span class="breadcrump-separator">—</span>
<span class="breadcrumb_last" aria-current="page"><?php the_title(); ?></span></span>
</p>
<div class="ppd-container article-container">
<div class="article-header">
<h1 class="article-title"><?php the_title(); ?></h1>
<div class="layout article-tags wrap">
<?php if (!empty(get_the_tags(get_the_ID()))) : ?>
<?php foreach (get_the_tags(get_the_ID()) as $tag) : ?>
<div class="article-tag">
<a class="article-tag__link <?= $tag->slug . '__tag'?>" href="<?=str_replace("\"", "", "https://pampadu.ru/blog");?>/tag/<?= $tag->slug ?>/">
#<?= $tag->name ?>
</a>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="article-details">
<div class="article-details__common">
<?php echo get_avatar( get_the_author_meta('ID'), 50, '', '', array('class'=>'article-author__avatar')) ?>
<a class="article-author__name" href="<?php echo get_author_posts_url( $post->post_author ); ?>"><?php the_author(); ?></a>
<span class="article-details__separator">|</span>
<span class="article-date">Дата публикации: <?= get_the_date('d.m.Y') ?></span>
<span class="article-details__separator">|</span>
<?php echo do_shortcode('[rt_reading_time label="Время чтения:"]') ?>
</div>
<div class="article-details__social">
<?php
echo do_shortcode('[posts_like_dislike]');
echo do_shortcode('[epvc_views]');
echo '<div id="article-' . $post_id . '-comments__count" class="article-comments__count comments-count-' . $post_id . '" data-id="' . $post_id . '" >';
echo '<svg class="article-comments__icon" width="15" height="14" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.125 8.75C13.125 9.05942 12.9933 9.35616 12.7589 9.57496C12.5245 9.79375 12.2065 9.91667 11.875 9.91667H4.375L1.875 12.25V2.91667C1.875 2.60725 2.0067 2.3105 2.24112 2.09171C2.47554 1.87292 2.79348 1.75 3.125 1.75H11.875C12.2065 1.75 12.5245 1.87292 12.7589 2.09171C12.9933 2.3105 13.125 2.60725 13.125 2.91667V8.75Z" stroke="#A4ABB6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>';
echo '<span class="article-comments__num">';
echo $comments_count->approved;
echo '</span>';
echo '</div>';
?>
<div class="article-share">
<svg class="article-share__icon" width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.25 5C12.2855 5 13.125 4.16053 13.125 3.125C13.125 2.08947 12.2855 1.25 11.25 1.25C10.2145 1.25 9.375 2.08947 9.375 3.125C9.375 4.16053 10.2145 5 11.25 5Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M3.75 9.375C4.78553 9.375 5.625 8.53553 5.625 7.5C5.625 6.46447 4.78553 5.625 3.75 5.625C2.71447 5.625 1.875 6.46447 1.875 7.5C1.875 8.53553 2.71447 9.375 3.75 9.375Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M11.25 13.75C12.2855 13.75 13.125 12.9105 13.125 11.875C13.125 10.8395 12.2855 10 11.25 10C10.2145 10 9.375 10.8395 9.375 11.875C9.375 12.9105 10.2145 13.75 11.25 13.75Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M5.36914 8.44385L9.63789 10.9313" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9.63164 4.06885L5.36914 6.55635" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<ul class="article-share__list links-container">
<li class="article-share__item">
<a href="https://t.me/joinchat/TZvpUlJfAZfdZjuf" target="_blank">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="icon-main-color" d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#039BE5"/>
<path d="M5.94862 12.7181L18.4828 7.88532C19.0645 7.67515 19.5726 8.02724 19.3841 8.9069L19.3852 8.90582L17.251 18.9602C17.0929 19.6731 16.6693 19.8464 16.0767 19.5106L12.8267 17.1153L11.2591 18.6255C11.0858 18.7988 10.9395 18.9451 10.6037 18.9451L10.8345 15.6377L16.8578 10.1961C17.12 9.96532 16.7993 9.83532 16.4537 10.065L9.01012 14.7515L5.80129 13.7505C5.10471 13.5295 5.08954 13.0539 5.94862 12.7181Z" fill="white"/>
</svg>
</a>
</li>
<li class="article-share__item">
<a href="https://vk.com/avto_yslyga" target="_blank">
<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><circle class="icon-main-color" cx="13" cy="13" r="13" fill="#009BDD"/><path d="M6.85 9H5.1c-.5 0-.6.24-.6.5 0 .46.6 2.76 2.76 5.8 1.45 2.07 3.49 3.2 5.34 3.2 1.11 0 1.25-.25 1.25-.68v-1.57c0-.5.1-.6.46-.6.26 0 .7.13 1.74 1.13 1.19 1.2 1.38 1.72 2.05 1.72h1.75c.5 0 .75-.25.6-.74-.15-.5-.72-1.2-1.47-2.05-.4-.49-1.02-1-1.2-1.26-.26-.34-.2-.49 0-.78 0 0 2.13-3 2.35-4.03.11-.37 0-.64-.53-.64h-1.75a.76.76 0 00-.76.5s-.9 2.16-2.15 3.57c-.41.41-.6.54-.82.54-.1 0-.27-.13-.27-.5V9.64c0-.44-.13-.64-.5-.64H10.6c-.28 0-.45.2-.45.4 0 .42.64.52.7 1.7v2.58c0 .57-.1.67-.32.67-.6 0-2.04-2.18-2.9-4.67C7.47 9.2 7.3 9 6.85 9z" fill="#fff"/></svg>
</a>
</li>
<li class="article-share__item">
<a href="https://www.youtube.com/channel/UC0SeTdHMfY67ku8e7m-GMTw" target="_blank">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="icon-main-color icon-youtube" d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#FF0000"/>
<g clip-path="url(#clip0)">
<path d="M20.1865 9.56153C20.014 8.94686 19.5058 8.46282 18.8604 8.29855C17.6907 8 13 8 13 8C13 8 8.30937 8 7.13959 8.29855C6.49423 8.46282 5.98593 8.94686 5.81344 9.56153C5.5 10.6756 5.5 13 5.5 13C5.5 13 5.5 15.3244 5.81344 16.4385C5.98593 17.0531 6.49423 17.5372 7.13959 17.7015C8.30937 18 13 18 13 18C13 18 17.6907 18 18.8604 17.7015C19.5058 17.5372 20.014 17.0531 20.1865 16.4385C20.5 15.3244 20.5 13 20.5 13C20.5 13 20.5 10.6756 20.1865 9.56153Z" fill="white"/>
<path class="icon-main-color icon-youtube" d="M11.4658 15.1104L15.3863 13.0001L11.4658 10.8896V15.1104Z" fill="#FF0000"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="15" height="10" fill="white" transform="translate(5.5 8)"/>
</clipPath>
</defs>
</svg>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<article class="article-body">
<?php
// echo wp_first_paragraph_excerpt(get_the_ID());
// echo get_the_post_thumbnail( get_the_ID() );
the_content();
// the_excerpt();
// echo '123';
// echo get_the_post_thumbnail( $post_id );
// echo get_the_content();
// $content = apply_filters( 'the_content', get_the_content() );
// echo $content;
?>
<div class="article-details__social article-details__social-bottom">
<button class="show-commmentsform">Оставить комментарий</button>
<?php
echo do_shortcode('[posts_like_dislike]');
echo do_shortcode('[epvc_views]');
echo '<div id="article-' . $post_id . '-comments__count" class="article-comments__count comments-count-' . $post_id . '" data-id="' . $post_id . '" >';
echo '<svg class="article-comments__icon" width="15" height="14" viewBox="0 0 15 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.125 8.75C13.125 9.05942 12.9933 9.35616 12.7589 9.57496C12.5245 9.79375 12.2065 9.91667 11.875 9.91667H4.375L1.875 12.25V2.91667C1.875 2.60725 2.0067 2.3105 2.24112 2.09171C2.47554 1.87292 2.79348 1.75 3.125 1.75H11.875C12.2065 1.75 12.5245 1.87292 12.7589 2.09171C12.9933 2.3105 13.125 2.60725 13.125 2.91667V8.75Z" stroke="#A4ABB6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>';
echo '<span class="article-comments__num">';
echo get_comments_number($post_id);
echo '</span>';
echo '</div>';
?>
<div class="article-share">
<svg class="article-share__icon" width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.25 5C12.2855 5 13.125 4.16053 13.125 3.125C13.125 2.08947 12.2855 1.25 11.25 1.25C10.2145 1.25 9.375 2.08947 9.375 3.125C9.375 4.16053 10.2145 5 11.25 5Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M3.75 9.375C4.78553 9.375 5.625 8.53553 5.625 7.5C5.625 6.46447 4.78553 5.625 3.75 5.625C2.71447 5.625 1.875 6.46447 1.875 7.5C1.875 8.53553 2.71447 9.375 3.75 9.375Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M11.25 13.75C12.2855 13.75 13.125 12.9105 13.125 11.875C13.125 10.8395 12.2855 10 11.25 10C10.2145 10 9.375 10.8395 9.375 11.875C9.375 12.9105 10.2145 13.75 11.25 13.75Z" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M5.36914 8.44385L9.63789 10.9313" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M9.63164 4.06885L5.36914 6.55635" stroke="#7245FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<ul class="article-share__list links-container">
<li class="article-share__item">
<a href="https://t.me/joinchat/TZvpUlJfAZfdZjuf" target="_blank">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="icon-main-color" d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#039BE5"/>
<path d="M5.94862 12.7181L18.4828 7.88532C19.0645 7.67515 19.5726 8.02724 19.3841 8.9069L19.3852 8.90582L17.251 18.9602C17.0929 19.6731 16.6693 19.8464 16.0767 19.5106L12.8267 17.1153L11.2591 18.6255C11.0858 18.7988 10.9395 18.9451 10.6037 18.9451L10.8345 15.6377L16.8578 10.1961C17.12 9.96532 16.7993 9.83532 16.4537 10.065L9.01012 14.7515L5.80129 13.7505C5.10471 13.5295 5.08954 13.0539 5.94862 12.7181Z" fill="white"/>
</svg>
</a>
</li>
<li class="article-share__item">
<a href="https://vk.com/avto_yslyga" target="_blank">
<svg width="28" height="28" fill="none" xmlns="http://www.w3.org/2000/svg"><circle class="icon-main-color" cx="13" cy="13" r="13" fill="#009BDD"/><path d="M6.85 9H5.1c-.5 0-.6.24-.6.5 0 .46.6 2.76 2.76 5.8 1.45 2.07 3.49 3.2 5.34 3.2 1.11 0 1.25-.25 1.25-.68v-1.57c0-.5.1-.6.46-.6.26 0 .7.13 1.74 1.13 1.19 1.2 1.38 1.72 2.05 1.72h1.75c.5 0 .75-.25.6-.74-.15-.5-.72-1.2-1.47-2.05-.4-.49-1.02-1-1.2-1.26-.26-.34-.2-.49 0-.78 0 0 2.13-3 2.35-4.03.11-.37 0-.64-.53-.64h-1.75a.76.76 0 00-.76.5s-.9 2.16-2.15 3.57c-.41.41-.6.54-.82.54-.1 0-.27-.13-.27-.5V9.64c0-.44-.13-.64-.5-.64H10.6c-.28 0-.45.2-.45.4 0 .42.64.52.7 1.7v2.58c0 .57-.1.67-.32.67-.6 0-2.04-2.18-2.9-4.67C7.47 9.2 7.3 9 6.85 9z" fill="#fff"/></svg>
</a>
</li>
<li class="article-share__item">
<a href="https://www.youtube.com/channel/UC0SeTdHMfY67ku8e7m-GMTw" target="_blank">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="icon-main-color icon-youtube" d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#FF0000"/>
<g clip-path="url(#clip0)">
<path d="M20.1865 9.56153C20.014 8.94686 19.5058 8.46282 18.8604 8.29855C17.6907 8 13 8 13 8C13 8 8.30937 8 7.13959 8.29855C6.49423 8.46282 5.98593 8.94686 5.81344 9.56153C5.5 10.6756 5.5 13 5.5 13C5.5 13 5.5 15.3244 5.81344 16.4385C5.98593 17.0531 6.49423 17.5372 7.13959 17.7015C8.30937 18 13 18 13 18C13 18 17.6907 18 18.8604 17.7015C19.5058 17.5372 20.014 17.0531 20.1865 16.4385C20.5 15.3244 20.5 13 20.5 13C20.5 13 20.5 10.6756 20.1865 9.56153Z" fill="white"/>
<path class="icon-main-color icon-youtube" d="M11.4658 15.1104L15.3863 13.0001L11.4658 10.8896V15.1104Z" fill="#FF0000"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="15" height="10" fill="white" transform="translate(5.5 8)"/>
</clipPath>
</defs>
</svg>
</a>
</li>
</ul>
</div>
</div>
<div class="article-comments" id="article-<?php echo $post_id;?>-comments__container">
<div class="commentsform__container">
<h3 class="comments-title" id="comments">Комментарии <span class="comments-num">
(<?php
echo get_comments_number($post_id);
?>)
</span>
</h3>
<?php
// global $withcomments;
// $withcomments = true;
// comments_template();
global $current_user; wp_get_current_user();
if ( is_user_logged_in() ) {
echo '<div class="custom_logged-in-as">';
echo '<span class="custom_logged-in-name">Вы вошли как: ' . $current_user->display_name . '</span>';
echo '<a class="custom_logout"';
wp_loginout();
echo '</a>';
echo '</div>';
} else {
wp_loginout();
}
comment_form( $args = array(
), $post_id );
?>
</div>
<?php
$comments = get_comments(array(
'post_id' => $post_id,
'hierarchical' => 'threaded',
// 'parent' => $question->comment_ID,
));
if ($comments) {
echo '<ol class="commentlist">';
foreach($comments as $comment) {
$childcomments = get_comments(array(
'post_id' => $post_id,
'status' => 'approve',
'order' => 'DESC',
'parent' => $comment->comment_ID,
));
// echo '<pre>' . var_export($childcomments, true) . '</pre>';
$link = get_comment_reply_link( [
'reply_text' => "ответить",
'respond_id' => 'comment',
'depth' => 5,
'max_depth' => 10,
], $comment->comment_ID, $post_id );
$d = "F jS Y в h:i";
$comment_ID = $comment->comment_ID;
$comment_date = get_comment_date( $d, $comment_ID );
$user_id = strstr($comment->comment_author_email, '@', true);
echo '<li class="comment user-'. $user_id .'">';
echo '<div class="comment-body">';
echo '<p class="comment-author">' . $comment->comment_author . '</p>';
echo '<div class="comment-meta commentmetadata">';
echo '<span class="comment-date">' . $comment_date . '</span>';
echo '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '">Изменить</a>';
echo '</div>';
echo '<p class="comment-context">'. $comment->comment_content . '</p>';
echo $link;
echo '</div>';
if($childcomments) {
echo '<ul class="children">';
foreach($childcomments as $childcomment) {
$link = get_comment_reply_link( [
'reply_text' => "ответить",
'respond_id' => 'comment',
'depth' => 5,
'max_depth' => 10,
], $childcomment->comment_ID, $post_id );
$d = "F jS Y в h:i";
$comment_ID = $comment->comment_ID;
$comment_date = get_comment_date( $d, $comment_ID );
$user_id = strstr($comment->comment_author_email, '@', true);
echo '<li class="comment depth-2 user-'. $user_id .'">';
echo '<div class="comment-body">';
echo '<p class="comment-author">' . $childcomment->comment_author . '</p>';
echo '<div class="comment-meta commentmetadata">';
echo '<span class="comment-date">' . $comment_date . '</span>';
echo '<a class="comment-edit-link" href="' . get_edit_comment_link( $childcomment->comment_ID ) . '">Изменить</a>';
echo '</div>';
echo '<p class="comment-context">'. $childcomment->comment_content . '</p>';
echo $link;
echo '</div>';
echo '</li>';
}
echo '</ul>';
}
echo '</li>';
}
echo '</ol>';
}
?>
</div>
</article>
<div class="article-aside">
<?php
$posttags = get_the_tags(get_the_ID());
if ($posttags) {
$tagslugforaside = $posttags[0]->slug;
}
else {
$tagslugforaside = novosti;
}
echo $tagslugforaside;
get_template_part('template-parts/latest-news', get_post_type(), array(
'posts_number' => 6,
'tag_slug' => $term->slug,
'block_header' => 'Материалы по теме'
));
wp_reset_postdata();
?>
</div>
</div>
<?php
echo $post_id;
if ($show_fin_offer_widget) {
echo get_template_part('blog-posts/tag-banner-banki');
} elseif ($show_ipoteka_widget){
echo get_template_part('blog-posts/tag-banner-ipoteka');
} else {
}
?>
</div>
</span>
</div> <!-- end of wrapper -->
<div id="load_articles_holder"></div>
</div>
</div>
</div>
</main>
<?php
endwhile;
wp_reset_postdata();