--- \flickr-tag\flickr-tag\FlickrTagCommon.php Mon Sep 28 01:10:46 2009 UTC +++ \flickr-tag-youngwhan\FlickrTagCommon.php Mon Sep 28 00:40:12 2009 UTC @@ -35,22 +35,27 @@ "photo_size" => "small", "photo_tooltip" => "description", + "photo_actualsize" => "medium", "set_size" => "square", "set_tooltip" => "description", "set_limit" => 50, + "set_actualsize" => "medium", "photostream_size" => "square", "photostream_tooltip" => "description", "photostream_limit" => 50, + "photostream_actualsize" => "medium", "group_size" => "square", "group_tooltip" => "description", "group_limit" => 50, + "group_actualsize" => "medium", "tag_size" => "square", "tag_tooltip" => "description", - "tag_limit" => 50 + "tag_limit" => 50, + "tag_actualsize" => "medium" ); var $size = array( @@ -62,6 +67,15 @@ "original" => "_o" ); + var $actualsize = array( + "square" => "_s", + "thumbnail" => "_t", + "small" => "_m", + "medium" => "", + "large" => "_b", + "original" => "_o" + ); + function FlickrTagCommon() { $this->optionLoadAll(); } @@ -104,6 +118,15 @@ return null; } + function isPhotoActualSize($value) { + foreach($this->actualsize as $k=>$v) { + if($value == $k) + return $v; + } + + return null; + } + function cacheFlush() { $d = @opendir(FLICKR_TAG_CACHE_DIR);