21 if (function_exists(
'mb_http_output')) {
22 mb_http_output(
'pass');
24 header(
'Content-Type:text/xml; charset=utf-8');
26 include_once
$GLOBALS[
'xoops']->path(
'class/template.php');
29 $tpl->cache_lifetime = 3600;
30 if (!
$tpl->is_cached(
'db:system_rss.html')) {
33 $tpl->assign(
'channel_link', XOOPS_URL .
'/');
38 $tpl->assign(
'channel_category',
'News');
39 $tpl->assign(
'channel_generator',
'XOOPS');
41 $tpl->assign(
'image_url', XOOPS_URL .
'/images/logo.png');
42 $dimension = getimagesize(XOOPS_ROOT_PATH .
'/images/logo.png');
43 if (empty($dimension[0])) {
46 $width = ($dimension[0] > 144) ? 144 : $dimension[0];
48 if (empty($dimension[1])) {
51 $height = ($dimension[1] > 400) ? 400 : $dimension[1];
53 $tpl->assign(
'image_width', $width);
54 $tpl->assign(
'image_height', $height);
55 if (file_exists($fileinc =
$GLOBALS[
'xoops']->path(
'modules/news/class/class.newsstory.php'))) {
57 $sarray = NewsStory::getAllPublished(10, 0,
true);
59 if (!empty($sarray) && is_array($sarray)) {
60 foreach ($sarray as $story) {
61 $tpl->append(
'items', array(
63 'link' => XOOPS_URL .
'/modules/news/article.php?storyid=' . $story->storyid() ,
64 'guid' => XOOPS_URL .
'/modules/news/article.php?storyid=' . $story->storyid() ,
70 $tpl->display(
'db:system_rss.html');