<!-- JComments ON -->
<div id="community-profile-comments" class="app-box">
<div class="app-box-header">
<div class="app-box-header">
<h2 class="app-box-title"><?php echo JText::_('CC PROFILE COMMENTS');?></h2>
<div class="app-box-menus">
<div class="app-box-menu toggle">
<a class="app-box-menu-icon" href="javascript
: void(0)" onclick="joms.apps.toggle('#community-profile-comments');">
<span class="app-box-menu-title"><?php echo JText::_('CC EXPAND');?></span>
</a>
</div>
</div>
</div>
</div>
<div class="app-box-content">
<?php global $mainframe;
$comments = $mainframe->getCfg('absolute_path'). '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($user->id, 'com_community_p', $title);
}
?>
</div></div>
<!-- JComments END -->