Changeset 19055
- Timestamp:
- Nov 17, 2012, 12:45:45 PM (12 years ago)
- Location:
- extensions/Evil_Blog
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Evil_Blog/blog.tpl
r19049 r19055 1 1 {$TITLE} 2 <a href="{$ROOT_URL}?/blog/feed" title="{'Notification'|@translate}"><img src="{$ROOT_URL} {$themeconf.icon_dir}/RSS.png"></a>2 <a href="{$ROOT_URL}?/blog/feed" title="{'Notification'|@translate}"><img src="{$ROOT_URL}plugins/Evil_Blog/RSS.png"></a> 3 3 <ul class="evil_blog_posts"> 4 4 {foreach from=$row item=value} -
extensions/Evil_Blog/feed.php
r19054 r19055 6 6 $rss = new UniversalFeedCreator(); 7 7 $rss->encoding=get_pwg_charset(); 8 $rss->title = $conf['gallery_title'] .' '.$page['evil_blog']['blog_name'];8 $rss->title = $conf['gallery_title']; 9 9 $rss->link = get_root_url().'?/blog'; 10 10 $rss->description = $page['evil_blog']['blog_description']; 11 11 12 12 13 $result = pwg_query(" … … 22 23 } 23 24 $item = new FeedItem(); 24 $item->title = $row['header']; 25 //$row['date'] = date($page['evil_blog']['date_format'], $row['date']); 26 $item->title = $row['header'].' '.$row['date']; 27 $item->link = get_gallery_home_url().'?/blog/id/'.$row['id']; 25 28 $item->description = $row['text']; 26 29 $item->date = $row['date']; 27 30 $item->descriptionHtmlSyndicated = true; 31 $item->guid= sprintf('%s', $row['date']); 28 32 $rss->addItem($item); 29 33 }
Note: See TracChangeset
for help on using the changeset viewer.