wp_back/wp-content/themes/simple-theme/comments.php
2024-05-20 15:37:46 +03:00

135 lines
7.8 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* @package WordPress
* @subpackage Theme_Compat
* @deprecated 3.0.0
*
* This file is here for backward compatibility with old themes and will be removed in a future version
*/
_deprecated_file(
/* translators: %s: Template name. */
sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
'3.0.0',
null,
/* translators: %s: Template name. */
sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
);
// Do not delete these lines.
if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && 'comments.php' === basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
die( 'Please do not load this page directly. Thanks!' );
}
if ( post_password_required() ) { ?>
<p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.' ); ?></p>
<?php
return;
}
?>
<!--
$post = $blog_post;
$ID = $post->ID;
setup_postdata($post);
$title = get_the_title($ID);
$url = get_the_permalink($ID);
-->
<!-- You can start editing here. -->
<div class="article-details__social article-details__social-bottom">
<button class="show-commmentsform">Оставить комментарийqqq</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();
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();
?>)
</span>
</h3>
<?php comment_form(); ?>
</div>
<?php if ( have_comments() ) : ?>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link(); ?></div>
<div class="alignright"><?php next_comments_link(); ?></div>
</div>
<ol class="commentlist">
<?php wp_list_comments(); ?>
</ol>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link(); ?></div>
<div class="alignright"><?php next_comments_link(); ?></div>
</div>
<?php else : // This is displayed if there are no comments so far. ?>
<?php if ( comments_open() ) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // Comments are closed. ?>
<!-- If comments are closed. -->
<p class="nocomments"><?php _e( 'Comments are closed.' ); ?></p>
<?php endif; ?>
<?php endif; ?>
</div>