From f7b2bfae9778af2c99e0c7fe7b2634e0f4f0973f Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 16 Jan 2017 22:04:21 +0100 Subject: * mapping twitter items to universal objects --- templates/atom.tpl | 14 +++++++------- templates/rss.tpl | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/atom.tpl b/templates/atom.tpl index df4a762..ea8f357 100644 --- a/templates/atom.tpl +++ b/templates/atom.tpl @@ -6,14 +6,14 @@ {$cacheTime|date_format:"c"} {foreach from=$content item=item} - {$item->text|escape} - - http://emkael.info/tulz/twitterRSS/{$item->user->id_str}/{$item->id_str} - {$item->created_at|date_format:"c"} - text|escape} ]]> - {if isset($item->user)} + {$item->Title|escape} + + {$feedID}/{$item->ID} + {$item->Time|date_format:"c"} + Text|escape} ]]> + {if isset($item->Author)} - {$item->user->screen_name} + {$item->Author} {/if} diff --git a/templates/rss.tpl b/templates/rss.tpl index 03ea30b..a0be07e 100644 --- a/templates/rss.tpl +++ b/templates/rss.tpl @@ -6,11 +6,11 @@ {$cacheTime|date_format:"D, d M Y H:i:s O"} {foreach from=$content item=item} - {$item->text|escape} - https://twitter.com/{$user}/status/{$item->id_str} - {$feedID}/{$item->id_str} - text|escape} ]]> - {$item->created_at|date_format:"D, d M Y H:i:s O"} + {$item->Title|escape} + {$item->Link} + {$feedID}/{$item->ID} + Text|escape} ]]> + {$item->Time|date_format:"D, d M Y H:i:s O"} {/foreach} -- cgit v1.2.3