PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/dwoo/templates_c/var/www/html/kuzaba/dwoo/templates/rss_mod.tpl.d15.php

https://github.com/stormeus/Kusaba-Z
PHP | 32 lines | 29 code | 1 blank | 2 comment | 2 complexity | ec2cc7a8803301afa143ed796a4d1334 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. if (function_exists('Dwoo_Plugin_date_format')===false)
  3. $this->getLoader()->loadPlugin('date_format');
  4. ob_start(); /* template body */ ?><?php echo '<?xml'; ?> version="1.0" encoding="UTF-8" ?>
  5. <rss version="2.0">
  6. <channel>
  7. <title><?php echo KU_NAME;?> - Modlog</title>
  8. <link><?php echo KU_WEBPATH;?></link>
  9. <description>Live view of all moderative actions on <?php echo KU_WEBPATH;?></description>
  10. <language><?php echo KU_LOCALE;?></language>
  11. <?php
  12. $_fh0_data = (isset($this->scope["entries"]) ? $this->scope["entries"] : null);
  13. if ($this->isArray($_fh0_data) === true)
  14. {
  15. foreach ($_fh0_data as $this->scope['item'])
  16. {
  17. /* -- foreach start output */
  18. ?>
  19. <item>
  20. <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>
  21. <description><![CDATA[<?php echo $this->scope["item"]["user"];?> - <?php echo $this->scope["item"]["entry"];?>]]></description>
  22. </item>
  23. <?php
  24. /* -- foreach end output */
  25. }
  26. }?>
  27. </channel>
  28. </rss>
  29. <?php /* end template body */
  30. return $this->buffer . ob_get_clean();
  31. ?>