/dwoo/templates_c/var/www/html/kuzaba/dwoo/templates/rss_mod.tpl.d15.php
PHP | 32 lines | 29 code | 1 blank | 2 comment | 2 complexity | ec2cc7a8803301afa143ed796a4d1334 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
- <?php
- if (function_exists('Dwoo_Plugin_date_format')===false)
- $this->getLoader()->loadPlugin('date_format');
- ob_start(); /* template body */ ?><?php echo '<?xml'; ?> version="1.0" encoding="UTF-8" ?>
- <rss version="2.0">
- <channel>
- <title><?php echo KU_NAME;?> - Modlog</title>
- <link><?php echo KU_WEBPATH;?></link>
- <description>Live view of all moderative actions on <?php echo KU_WEBPATH;?></description>
- <language><?php echo KU_LOCALE;?></language>
- <?php
- $_fh0_data = (isset($this->scope["entries"]) ? $this->scope["entries"] : null);
- if ($this->isArray($_fh0_data) === true)
- {
- foreach ($_fh0_data as $this->scope['item'])
- {
- /* -- foreach start output */
- ?>
- <item>
- <title><?php echo Dwoo_Plugin_date_format($this, (isset($this->scope["item"]["timestamp"]) ? $this->scope["item"]["timestamp"]:null), "%a %m/%d %H:%M", null);?></title>
- <description><![CDATA[<?php echo $this->scope["item"]["user"];?> - <?php echo $this->scope["item"]["entry"];?>]]></description>
- </item>
- <?php
- /* -- foreach end output */
- }
- }?>
- </channel>
- </rss>
- <?php /* end template body */
- return $this->buffer . ob_get_clean();
- ?>