phptemplate_comment_wrapper
- Versions
- 5
phptemplate_comment_wrapper($content, $type = null)
Allow themable wrapping of all comments.
Code
themes/garland/template.php, line 42
<?php
function phptemplate_comment_wrapper($content, $type = null) {
static $node_type;
if (isset($type)) $node_type = $type;
if (!$content || $node_type == 'forum') {
return '<div id="comments">'. $content . '</div>';
}
else {
return '<div id="comments"><h2 class="comments">'. t('Comments') .'</h2>'. $content .'</div>';
}
}
?>Login or register to post comments 