phptemplate_comment_wrapper

5 template.php phptemplate_comment_wrapper($content, $type = null)

Allow themable wrapping of all comments.

1 call to phptemplate_comment_wrapper()

File

themes/garland/template.php, line 42

Code

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