Changeset 19055


Ignore:
Timestamp:
Nov 17, 2012, 12:45:45 PM (8 years ago)
Author:
EvilKant
Message:
 
Location:
extensions/Evil_Blog
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Evil_Blog/blog.tpl

    r19049 r19055  
    11                {$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>
    33                <ul class="evil_blog_posts">
    44                        {foreach from=$row item=value}
  • extensions/Evil_Blog/feed.php

    r19054 r19055  
    66        $rss = new UniversalFeedCreator();
    77        $rss->encoding=get_pwg_charset();
    8         $rss->title = $conf['gallery_title'].' '.$page['evil_blog']['blog_name'];
     8        $rss->title = $conf['gallery_title'];
    99        $rss->link = get_root_url().'?/blog';
    1010        $rss->description = $page['evil_blog']['blog_description'];
     11       
    1112       
    1213        $result = pwg_query("
     
    2223                                }
    2324                $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'];
    2528                $item->description = $row['text'];
    2629                $item->date = $row['date'];
    2730                $item->descriptionHtmlSyndicated = true;
     31                $item->guid= sprintf('%s', $row['date']);
    2832                $rss->addItem($item);
    2933        }
Note: See TracChangeset for help on using the changeset viewer.