hello
Server : Apache/2.4.52 (Ubuntu) System : Linux HAN2 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : servadmin ( 1000) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE Directory : /www/docs/www.obusignal.com/www.obusignal.com/wp-content/themes/best-magazine/ |
<?php
/*
* The template for displaying Comments.
*/
?>
<?php if (post_password_required()) { ?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view any comments.', "best-magazine"); ?></p>
<?php return; } ?>
<?php if (have_comments()) : ?>
<h5 id="comments">
<?php
printf( _n('One comment on “%2$s”', '%1$s comments on “%2$s”', get_comments_number(), "best-magazine"),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>'); ?>
</h5>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<div class="navigation">
<div class="previous"><?php previous_comments_link(__( '‹ Older comments',"best-magazine" )); ?></div><!-- end of .previous -->
<div class="next"><?php next_comments_link(__( 'Newer comments ›',"best-magazine", 0 )); ?></div><!-- end of .next -->
</div><!-- end of.navigation -->
<?php endif; ?>
<ol class="commentlist">
<?php wp_list_comments('avatar_size=60&type=comment'); ?>
<div class="clear"></div>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<div class="navigation">
<div class="previous"><?php previous_comments_link(__( '‹ Older comments',"best-magazine" )); ?></div><!-- end of .previous -->
<div class="next"><?php next_comments_link(__( 'Newer comments ›',"best-magazine", 0 )); ?></div><!-- end of .next -->
</div><!-- end of.navigation -->
<?php endif; ?>
<?php else : ?>
<?php endif; ?>
<?php
if (!empty($comments_by_type['pings'])) : // let's seperate pings/trackbacks from comments
$count = count($comments_by_type['pings']);
($count !== 1) ? $txt = __('Pings/Trackbacks',"best-magazine") : $txt = __('Pings/Trackbacks',"best-magazine");
?>
<h6 id="pings"><?php printf( __( '%1$d %2$s for "%3$s"', "best-magazine" ), $count, $txt, get_the_title() )?></h6>
<ol class="commentlist">
<?php wp_list_comments('type=pings'); ?>
</ol>
<?php endif; ?>
<?php if (comments_open()) : ?>
<?php
$fields = array(
'author' => '<p class="comment-form-author"><input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30" placeholder="' . __('Name',"best-magazine") . '*" /></p>',
'email' => '<p class="comment-form-email"><input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30" placeholder="' . __('E-mail',"best-magazine") . '*" /></p>',
'url' => '<p class="comment-form-url"><input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" placeholder="' . __('Website',"best-magazine") . '" /></p>'
);
$defaults = array('fields' => apply_filters('comment_form_default_fields', $fields), 'comment_field' => '<p class="comment-form-comment"> <textarea placeholder="' . __('Comment',"best-magazine") . '" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>' );
comment_form($defaults); ?>
<?php endif; ?>