if ($this->params->get('allow_comment')) { ?> <br clear="all"> <div class="btp-comment"><a name="reviews"></a> <?php // Disqus comment if ($this->params->get('comment_system') == 'disqus') { echo Bt_portfolioHelper::getDisqusComment($this->params->get('disqus_shortname')); } else { //Facebook comment if ($this->params->get('comment_system') == 'facebook') { echo Bt_portfolioHelper::getFacebookComment($this->params->get('facebook_app_id'), $this->params->get('number_comments', 5), $this->params->get('commmentbox_width', 600)); } else { // JCOMMENT if ($this->params->get('comment_system') == 'jcomments') { if (Bt_portfolioHelper::checkComponent('com_jcomments')) { include_once JPATH_BASE . DS . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php'; echo JComments::showComments($this->item->id, 'bt_portfolio', $this->item->title); } else { echo "jComments is not installed"; } } else { ?> <?php if (count($this->comment['data'])) { echo '<p class="review-form-title">' . JText::_('COM_BT_PORTFOLIO_REVIEW') . '</p>'; ?> <div id="btp-comment-list"> <?php foreach ($this->comment['data'] as $item) { ?>