File: /home/c1190199/public_html/_alex/wp-content/themes/portada/comments.php
<?php
global $post;
if((comments_open()) && (!post_password_required()))
{
$count=get_comments_number($post->ID);
if($count>0)
{
?>
<h4><?php esc_html_e('Comments','portada'); ?></h4>
<div id="comments_list" class="theme-clear-fix">
<ul class="theme-reset-list theme-clear-fix">
<?php
$Comment=new Portada_ThemeComment();
$Validation=new Portada_ThemeValidation();
wp_list_comments(array('avatar_size'=>70,'page'=>$Comment->page,'type'=>'all','callback'=>array($Comment,'createComment')));
$pagination=paginate_comments_links(array
(
'base' => '#cpage-%#%',
'format' => '',
'add_fragment' => '',
'current' => $Comment->page,
'next_text' => __('Older','portada'),
'prev_text' => __('Newer','portada'),
'echo' => false
));
?>
</ul>
<?php
if($Validation->isNotEmpty($pagination))
{
?>
<div class="theme-pagination theme-clear-fix"><?php echo $pagination; ?></div>
<?php
}
?>
</div>
<?php
}
}