if($configs->get('showblogview') == '1'){
$query = "SELECT * FROM #__chrono_comments WHERE component = '".JRequest::getVar('option')."' AND pageid= '".$pageid."' AND published='1' AND verify='1' ORDER BY datetime ASC";
$database->setQuery( $query );
$blogcomments = $database->loadObjectList();
$nombre = count($blogcomments);
if ($nombre == '0') {
$language = '<a href="'.JRoute::_('index.php?option='.JRequest::ge tVar('option').'&id='.$row->id.'&view=article#comments').'">'.JText::_( 'READ_NO_COMMENTS' ).'</a>';
return str_replace("{n}", count($blogcomments), $language);
}
if ($nombre == '1') {
$language = '<a href="'.JRoute::_('index.php?option='.JRequest::ge tVar('option').'&id='.$row->id.'&view=article#comments').'">'.JText::_( 'READ_UN_COMMENTS' ).'</a>';
return str_replace("{n}", count($blogcomments), $language);
}
else {
$language = '<a href="'.JRoute::_('index.php?option='.JRequest::ge tVar('option').'&id='.$row->id.'&view=article#comments').'">'.JText::_( 'READ N COMMENTS' )
.'</a>';
return str_replace("{n}", count($blogcomments), $language);
}
}