<?php
|
|
|
|
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
|
|
//
|
|
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
|
|
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
|
|
// $Id$
|
|
|
|
/* inserts the content of an rss feed into a module */
|
|
function smarty_function_rss($params, $smarty)
|
|
{
|
|
extract($params, EXTR_SKIP);
|
|
// Param = zone
|
|
if (empty($id)) {
|
|
trigger_error("assign: missing id parameter");
|
|
return '';
|
|
}
|
|
if (empty($max)) {
|
|
$max = 99;
|
|
}
|
|
|
|
$out = TikiLib::lib('parser')->pluginExecute(
|
|
'rss',
|
|
'',
|
|
['id' => $id, 'max' => $max,],
|
|
0,
|
|
false,
|
|
['context_format' => 'html']
|
|
);
|
|
TikiLib::lib('parser')->setOptions();
|
|
return $out;
|
|
}
|