本文整理汇总了PHP中JoomleagueHelper::getCommentsIntegrationPlugin方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelper::getCommentsIntegrationPlugin方法的具体用法?PHP JoomleagueHelper::getCommentsIntegrationPlugin怎么用?PHP JoomleagueHelper::getCommentsIntegrationPlugin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomleagueHelper
的用法示例。
在下文中一共展示了JoomleagueHelper::getCommentsIntegrationPlugin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: preg_replace
$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