* @version $Id$
* @access public
* @license http://opensource.org/licenses/gpl-3.0.html
*/
?>
HrefMaker(array('rub'=> $GLOBALS['links'][U_L]['contribute']['linkvalue']))));
postCommentAction(array('module'=> ActiveItemKey($GLOBALS['activeitem']), 'module_id'=> $id));
$nbComments = getNbComments(array('module'=> ActiveItemKey($GLOBALS['activeitem']), 'module_id'=> $id));
$slot = get_page_slot('contribute'); // default slot
echo '
'._t('comment','contribute_title').'
'.PHP_EOL;
echo ''.PHP_EOL;
if($slot) echo $slot;
else echo _t('comment','contribute_chapo'). ' ';
if($nbComments == 0) echo ''._t('comment','contrib_none').'';
elseif($nbComments == 1) echo ''._t('comment','contrib_singular').'';
else printf(''._t('comment','contrib_plural').'', '' . $nbComments . '');
echo '
'.PHP_EOL;
displayCommentForm(array('module'=> ActiveItemKey($GLOBALS['activeitem']), 'module_id'=> $id));
if(commentEnabled('contribute')) {
echo '
';
echo ''._t('comment', 'contribute_item').'
'.PHP_EOL;
echo ''.PHP_EOL;
displayComments(array('module'=> 'contribute', 'module_id'=> '1', 'order_by' => 'ASC'), false, true);
echo '
'.PHP_EOL;
}
} else {
ReloadIndex(CURRENT_APP);
}
?>