summaryrefslogtreecommitdiff
path: root/smartyplugins/function.rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'smartyplugins/function.rss.php')
-rw-r--r--smartyplugins/function.rss.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/smartyplugins/function.rss.php b/smartyplugins/function.rss.php
new file mode 100644
index 0000000..4ec93ff
--- /dev/null
+++ b/smartyplugins/function.rss.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+/**
+ * smarty_function_rss
+ */
+function smarty_function_rss($params, &$gBitSmarty) {
+ global $gLibertySystem;
+ include_once( LIBERTY_PKG_PATH.'plugins/data.rss.php' );
+ $feed = rss_parse_data("", $params);
+ print $feed;
+}
+?>