Имеется дефолтная тема "Гарланд". Гостям запрещено оставлять комментарии. Соответственно если в ноде не было оставлено ни одного комментария, то и само слово "Комментарии" не выводится.
Может кто знает как сделать, чтобы слово "Комментарии" выводилось всегда? Или подскажите, где в коде идет проверка, был ли оставлен хоть один комментарий. Полазил по comment.module, но так и не разобрался.
Комментарии
1) node.module
<?php
// Update the history table, stating that this user viewed this node.
/**
* Generate a page displaying a single node, along with its comments.
*/
function node_show($node, $cid, $message = FALSE) {
if ($message) {
drupal_set_title(t('Revision of %title from %date', array('%title' => $node->title, '%date' => format_date($node->revision_timestamp))));
}
$output = node_view($node, FALSE, TRUE);
if (
function_exists('comment_render') && $node->comment) {$output .= comment_render($node, $cid);
}
node_tag_new($node->nid);
return
$output;}?>
2) node.tpl.php
<?php...
$comment_count: Number of comments attached to the node.
$comment: State of comment settings for the node.
...?>