$disable_comments = $config['comments']['site_disable'] + $article['comments_disable']; if (empty($disable_comments)) { $post_errors = isset($_POST['submit_comment']) ? validate_comment($config['comments']['form_protection'], $article) : ''; } // output article echo show_article($article, $config); // output article comments /* $config['comments']['site_hide'] $config['comments']['site_disable'] $config['comments']['form_protection'] $config['comments']['moderate'] $config['comments']['allow_html'] $article['comments_disable'] $article['comments_hide'] */ if (empty($hide_comments)) { echo show_article_comments($article['comments']); } // output comment form if (empty($disable_comments)) { if (empty($config['connections']['disqus_shortname'])) { echo show_comment_form($config['comments'], $article['id'], $post_errors); } else { echo insert_disqus($config['connections']['disqus_shortname']); } } /* debug_array($article); */
<?php show_comment_form(); function show_comment_form() { global $sfwform; $sfwform->sfw_comment_form_header(); }