예제 #1
0
    $summary = JHtml::_('content.prepare', $summary);
    if ($commentsDisabled) {
        $summary = preg_replace('#{jcomments\\s+(off|lock)}#is', '', $summary);
    }
    echo $summary;
    ?>
			</td>
		</tr>
	</table>
	<?php 
}
// Comments integration
if (!$commentsDisabled) {
    $dispatcher = JDispatcher::getInstance();
    $comments = '';
    $plugin = JoomleagueHelper::getCommentsIntegrationPlugin();
    if (is_object($plugin)) {
        $params = new JRegistry();
        $pluginParams = $params->loadString($plugin->params);
    } else {
        $params = new JRegistry();
        $pluginParams = $params->loadString('');
    }
    $separate_comments = $pluginParams->get('separate_comments', 0);
    if ($separate_comments) {
        // Comments integration trigger when separate_comments in plugin is set to yes/1
        if ($dispatcher->trigger('onMatchReportComments', array(&$this->match, $this->team1->name . ' - ' . $this->team2->name, &$comments))) {
            echo $comments;
        }
    } else {
        // Comments integration trigger when separate_comments in plugin is set to no/0