first commit
This commit is contained in:
26
modules/mod_syndicate/mod_syndicate.php
Normal file
26
modules/mod_syndicate/mod_syndicate.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_syndicate
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Helper\ModuleHelper;
|
||||
use Joomla\Module\Syndicate\Site\Helper\SyndicateHelper;
|
||||
|
||||
$params->def('format', 'rss');
|
||||
|
||||
$link = SyndicateHelper::getLink($params, $app->getDocument());
|
||||
|
||||
if ($link === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
$text = htmlspecialchars($params->get('text', ''), ENT_COMPAT, 'UTF-8');
|
||||
|
||||
require ModuleHelper::getLayoutPath('mod_syndicate', $params->get('layout', 'default'));
|
||||
Reference in New Issue
Block a user