Changeset 523710
- Timestamp:
- 03/26/2012 11:55:46 AM (14 years ago)
- Location:
- wp-eyeem/trunk
- Files:
-
- 2 deleted
- 2 edited
-
WP_EyeEm.class.php (modified) (1 diff)
-
languages/de_DE.mo (deleted)
-
languages/de_DE.po (deleted)
-
wp-eyeem.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-eyeem/trunk/WP_EyeEm.class.php
r523678 r523710 64 64 65 65 } 66 67 // public function __toString()68 // {69 // $ret = "";70 71 72 // if ($this->user->totalPhotos > 0)73 // {74 // $ret .= "<div>The 20 newest photos by ".$this->user->nickname." on EyeEm</div>";75 76 // foreach ($this->photos as $photo)77 // {78 // $ret .= "79 // <div class=\"eyeem_post\">80 // <a href=\"" . $photo->webUrl . "\" title=\"" . $photo->caption . " by " . $this->user->nickname . " on EyeEm\" target=\"_blank\"><img class=\"eyeem_photo\" title=\"" . $photo->caption . " by " . $this->user->nickname . " on EyeEm\" alt=\"" . $photo->caption . " by " . $this->user->nickname . " on EyeEm\" src=\"" . $this->getMaxWidthPhotoUrl($photo) . "\" /></a>81 // <div class=\"eyeem_caption\"><a href=\"" . $photo->webUrl . "\" target=\"_blank\">" . $photo->caption . "</a> by <a href=\"" . $this->user->webUrl . "\" target=\"_blank\">" . $this->user->nickname . "</a> on <a href=\"http://www.eyeem.com\" target=\"_blank\">EyeEm</a></div>82 // </div>83 // ";84 // }85 86 // }87 // else88 // {89 // $ret .= "<p>User has no photos</p>";90 // }91 92 // return $ret;93 // }94 95 66 } 96 67 ?> -
wp-eyeem/trunk/wp-eyeem.php
r523678 r523710 13 13 14 14 $plugin_dir = basename(dirname(__FILE__)); 15 load_plugin_textdomain('wp-eyeem', null, $plugin_dir . "/languages/");15 load_plugin_textdomain('wp-eyeem', false, $plugin_dir . "/languages/"); 16 16 17 17 … … 32 32 catch (Exception $e) 33 33 { 34 echo printf(__("User with id %s not found.", "wp-eyeem"),$username);34 echo sprintf(__("User with id %s not found.", "wp-eyeem"),$username); 35 35 } 36 36 } … … 45 45 { 46 46 $ret .= "<div>"; 47 $ret .= printf(__("The 20 newest photos by %s on EyeEm", "wp-eyeem"), $eyeem->getUser()->nickname);47 $ret .= sprintf(__("The 20 newest photos by %s on EyeEm", "wp-eyeem"), $eyeem->getUser()->nickname); 48 48 $ret .= "</div>"; 49 49
Note: See TracChangeset
for help on using the changeset viewer.