phptemplate_comment_wrapper
themes/garland/template.php, строка 42
- Версии
- 5
phptemplate_comment_wrapper($content,
$type= null)- 6
phptemplate_comment_wrapper($content, $node)
Allow themable wrapping of all comments.
Код
<?php
function phptemplate_comment_wrapper($content, $node) {
if (!$content || $node->type == 'forum') {
return '<div id="comments">'. $content .'</div>';
}
else {
return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>';
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии