Changeset 67

Show
Ignore:
Timestamp:
02/09/06 17:54:34
Author:
miyagawa
Message:

Added image hack on XML::Feed. Fixes #38

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm

    r59 r67  
    4242    } 
    4343 
     44    if ($remote->format =~ /^RSS/) { 
     45        $feed->image( $remote->{rss}->image ) 
     46            if $remote->{rss}->image; 
     47    } elsif ($remote->format eq 'Atom') { 
     48        $feed->image({ url => $remote->{atom}->logo }) 
     49            if $remote->{atom}->logo; 
     50    } 
     51 
    4452    for my $e ($remote->entries) { 
    4553        my $entry = Plagger::Entry->new; 
  • trunk/plagger/templates/plugins/gmail_notify.tt

    r61 r67  
    88<div> 
    99<div> 
    10 [% IF feed.image %]<a href="[% feed.image.link %]"><img style="border:0" align="right" src="[% feed.image.url | html %]" alt="[% feed.image.title | html %]" /></a>[% END %] 
     10[% IF feed.image %]<a href="[% feed.link %]"><img style="border:0" align="right" src="[% feed.image.url | html %]" alt="[% feed.title | html %]" /></a>[% END %] 
    1111<strong style="font-weight:bold;font-size:1.2em">[% entry.title %]</strong><br /> 
    1212[% SET link = entry.link || entry.id -%] 
  • trunk/plagger/templates/plugins/psp.tt

    r61 r67  
    77<body> 
    88[% FOREACH feed = feeds %] 
    9 [% IF feed.image %]<a href="[% feed.image.link %]"><img src="[% feed.image.url | html %]" alt="[% feed.image.title | html %]" /></a>[% END %] 
     9[% IF feed.image %]<a href="[% feed.link %]"><img src="[% feed.image.url | html %]" alt="[% feed.title | html %]" /></a>[% END %] 
    1010[% FOREACH item = feed.entries %] 
    1111<h1>[% item.title %]</h1>