Changeset 67 for FlickrPublicPhotos/trunk
- Timestamp:
- 05/08/05 04:28:27 (4 years ago)
- Files:
-
- 1 modified
-
FlickrPublicPhotos/trunk/FlickrPublicPhotos.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FlickrPublicPhotos/trunk/FlickrPublicPhotos.pl
r65 r67 1 1 # A plugin for adding "FlickrPublicPhotos" container and related tags 2 2 # 3 # Release 0.1 2 (May 7, 2005)3 # Release 0.13 (May 8, 2005) 4 4 # 5 5 # This software is provided as-is. You may use it for commercial or … … 16 16 $plugin = new MT::Plugin(); 17 17 $plugin->name("FlickrPublicPhotos Plugin"); 18 $plugin->description("Add FlickrPublicPhotos container and related tags. Version 0.1 2");18 $plugin->description("Add FlickrPublicPhotos container and related tags. Version 0.13"); 19 19 $plugin->doc_link("http://as-is.net/hacks/2005/05/flickrpublicphotos_plugin.html"); 20 20 MT->add_plugin($plugin); … … 111 111 } 112 112 113 { 114 my %sizes = ( 115 sq => '_s', 116 t => '_t', 117 s => '_m', 118 m => '', 119 l => '_b', 120 o => '_o', 121 square => '_s', 122 thumbnail => '_t', 123 small => '_m', 124 medium => '', 125 large => '_b', 126 original => '_o', 127 ); 113 128 sub img_url { 114 129 my $this = shift; 115 130 my ($size) = @_; 116 $size ||= 't';117 my $url = 'http://photos' . $this->{server} . '.flickr.com/' . $this->{id} . '_' . $this->{secret} . '_' .$size . '.jpg';131 $size = $sizes{(lc $size) || 't'}; 132 my $url = 'http://photos' . $this->{server} . '.flickr.com/' . $this->{id} . '_' . $this->{secret} . $size . '.jpg'; 118 133 $url; 134 } 119 135 } 120 136
![(please configure the [header_logo] section in trac.ini)](/public/chrome/common/trac_banner.png)