From: dhawes Date: Sun, 23 Jan 2005 15:58:04 +0000 (+0000) Subject: smarty template file example X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1ddd7bd00bf8a0b8f066cade18d451d44ad8264b;p=moodle.git smarty template file example --- diff --git a/rss/magpie/scripts/templates/simple.smarty b/rss/magpie/scripts/templates/simple.smarty new file mode 100644 index 0000000000..c0761cffbd --- /dev/null +++ b/rss/magpie/scripts/templates/simple.smarty @@ -0,0 +1,46 @@ + + +A Simple RSS Box: I'm not a designer + + + +
+RSS File: + + +
+ +Displaying: {$rss_url} +

+ +{* if $error display the error + elseif parsed RSS object display the RSS + else solicit user for a URL +*} + +{if $error } +Error: {$error} +{elseif $rss} + + + + + {foreach from=$rss->items item=item} + + + + + {/foreach} +
+ {$rss->channel.title} +
+ {$item.title} + + {$item.dc.date|rss_date_parse|date_format:"%A, %B %e, %Y"} +
+{else} + Enter the URL of an RSS file to display. +{/if} + + +