Changeset 123
- Timestamp:
- 09/03/05 16:16:06 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
FlickrPublicPhotos/trunk/FlickrPublicPhotos.pl
- Property svn:keywords set to Id
r74 r123 1 1 # A plugin for adding "FlickrPublicPhotos" container and related tags 2 2 # 3 # Release 0.21 (June 6, 2005)3 # $Id$ 4 4 # 5 5 # This software is provided as-is. You may use it for commercial or … … 10 10 package MT::Plugin::FlickrPublicPhotos; 11 11 use strict; 12 use vars qw($VERSION); 13 14 $VERSION = '0.22'; 12 15 13 16 my $plugin; 14 17 eval { 15 18 require MT::Plugin; 16 $plugin = new MT::Plugin(); 17 $plugin->name("FlickrPublicPhotos Plugin"); 18 $plugin->description("Add FlickrPublicPhotos container and related tags. Version 0.21"); 19 $plugin->doc_link("http://as-is.net/hacks/2005/05/flickrpublicphotos_plugin.html"); 19 $plugin = new MT::Plugin({ 20 name => 'FlickrPublicPhotos', 21 description => 'Add FlickrPublicPhotos container and related tags.', 22 doc_link => 'http://as-is.net/hacks/2005/05/flickrpublicphotos_plugin.html', 23 author_name => 'Hirotaka Ogawa', 24 author_link => 'http://profile.typekey.com/ogawa/', 25 version => $VERSION 26 }); 20 27 MT->add_plugin($plugin); 21 28 }; … … 210 217 my ($size) = @_; 211 218 $size = $sizes{(lc $size) || 't'}; 212 my $url = 'http:// photos' . $this->{server} . '.flickr.com/' . $this->{id} . '_' . $this->{secret} . $size . '.jpg';219 my $url = 'http://static.flickr.com/' . $this->{server} . '/' . $this->{id} . '_' . $this->{secret} . $size . '.jpg'; 213 220 $url; 214 221 }
