Changeset 729102
- Timestamp:
- 06/20/2013 10:34:03 PM (13 years ago)
- Location:
- easy-watermark
- Files:
-
- 5 edited
- 17 copied
-
tags/0.4.4 (copied) (copied from easy-watermark/trunk)
-
tags/0.4.4/index.php (copied) (copied from easy-watermark/trunk/index.php) (1 diff)
-
tags/0.4.4/languages/easy-watermark-es_ES.mo (copied) (copied from easy-watermark/trunk/languages/easy-watermark-es_ES.mo)
-
tags/0.4.4/languages/easy-watermark-es_ES.po (copied) (copied from easy-watermark/trunk/languages/easy-watermark-es_ES.po)
-
tags/0.4.4/languages/easy-watermark-fr_FR.mo (copied) (copied from easy-watermark/trunk/languages/easy-watermark-fr_FR.mo)
-
tags/0.4.4/languages/easy-watermark-fr_FR.po (copied) (copied from easy-watermark/trunk/languages/easy-watermark-fr_FR.po)
-
tags/0.4.4/languages/easy-watermark-pl_PL.mo (copied) (copied from easy-watermark/trunk/languages/easy-watermark-pl_PL.mo)
-
tags/0.4.4/languages/easy-watermark-pl_PL.po (copied) (copied from easy-watermark/trunk/languages/easy-watermark-pl_PL.po) (1 diff)
-
tags/0.4.4/languages/easy-watermark.pot (copied) (copied from easy-watermark/trunk/languages/easy-watermark.pot)
-
tags/0.4.4/lib/EWPlugin.php (copied) (copied from easy-watermark/trunk/lib/EWPlugin.php)
-
tags/0.4.4/lib/EasyWatermark.php (copied) (copied from easy-watermark/trunk/lib/EasyWatermark.php)
-
tags/0.4.4/lib/EasyWatermarkPlugin.php (copied) (copied from easy-watermark/trunk/lib/EasyWatermarkPlugin.php) (5 diffs)
-
tags/0.4.4/lib/EasyWatermarkSettings.php (copied) (copied from easy-watermark/trunk/lib/EasyWatermarkSettings.php)
-
tags/0.4.4/readme.txt (copied) (copied from easy-watermark/trunk/readme.txt) (2 diffs)
-
tags/0.4.4/views/about.php (copied) (copied from easy-watermark/trunk/views/about.php)
-
tags/0.4.4/views/donation.php (copied) (copied from easy-watermark/trunk/views/donation.php)
-
tags/0.4.4/views/settings-form-general.php (copied) (copied from easy-watermark/trunk/views/settings-form-general.php)
-
trunk/index.php (modified) (1 diff)
-
trunk/languages/easy-watermark-pl_PL.mo (modified) (previous)
-
trunk/languages/easy-watermark-pl_PL.po (modified) (1 diff)
-
trunk/lib/EasyWatermarkPlugin.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-watermark/tags/0.4.4/index.php
r715745 r729102 3 3 Plugin Name: Easy Watermark 4 4 Description: This plugin can automatically add image and text watermark to pictures as they are uploaded to wordpress media library. You can also watermark existing images manually (all at once or an every single image). Watermark image can be a png, gif (alpha channel supported in both cases) or jpg. It's also possibile to set watermark opacity (doesn't apply to png with alpha channel). For text watermark you can select font, set color, size, angel and opacity. 5 Version: 0.4. 35 Version: 0.4.4 6 6 Author: Wojtek Szałkiewicz 7 7 Author URI: http://szalkiewicz.pl/ -
easy-watermark/tags/0.4.4/languages/easy-watermark-pl_PL.po
r715971 r729102 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2013-05-16 19:39+0100\n" 6 "PO-Revision-Date: 2013-05- 17 20:37+0100\n"6 "PO-Revision-Date: 2013-05-26 12:17+0100\n" 7 7 "Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n" 8 8 "Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n" -
easy-watermark/tags/0.4.4/lib/EasyWatermarkPlugin.php
r714327 r729102 333 333 public function wp_generate_attachment_metadata($metadata, $id){ 334 334 if($this->watermark_uploaded && $this->uploaded_id == $id){ 335 $this->watermark_single($id, true);335 $this->watermark_single($id, false, $metadata); 336 336 337 337 $this->watermark_uploaded = false; … … 348 348 * @return boolean 349 349 */ 350 private function watermark_single($id, $checkMime = false ){350 private function watermark_single($id, $checkMime = false, $meta = array()){ 351 351 if($this->isGDEnabled()) : 352 352 … … 362 362 } 363 363 364 return $this->create_watermark($post );364 return $this->create_watermark($post, $meta); 365 365 } 366 366 else { … … 420 420 * @return boolean 421 421 */ 422 public function create_watermark($post){ 423 $meta = get_post_meta($post->ID, '_wp_attachment_metadata'); 424 $meta = $meta[0]; 425 $images = $meta['sizes']; 426 $images['full'] = array( 422 public function create_watermark($post, $meta = array()){ 423 424 if(empty($meta)){ 425 $meta = get_post_meta($post->ID, '_wp_attachment_metadata'); 426 $meta = $meta[0]; 427 } 428 429 $sizes = $meta['sizes']; 430 $sizes['full'] = array( 427 431 'file' => $meta['file'], 428 432 'mime-type' => $post->post_mime_type … … 435 439 436 440 $return = true; 437 foreach($ images as $size => $img){441 foreach($sizes as $size => $img){ 438 442 if(in_array($size, $allowedSizes)){ 439 443 $imgFile = str_replace($filebasename, wp_basename($img['file']), $filepath); -
easy-watermark/tags/0.4.4/readme.txt
r716816 r729102 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 0.4. 37 Stable tag: 0.4.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 81 81 82 82 = 0.4.3 = 83 * repaired issue with auto-watermark option 84 85 = 0.4.3 = 83 86 * added support for additional image sizes registered by some templates or plugins (e.g. 'post-thumbnail') 84 87 -
easy-watermark/trunk/index.php
r715745 r729102 3 3 Plugin Name: Easy Watermark 4 4 Description: This plugin can automatically add image and text watermark to pictures as they are uploaded to wordpress media library. You can also watermark existing images manually (all at once or an every single image). Watermark image can be a png, gif (alpha channel supported in both cases) or jpg. It's also possibile to set watermark opacity (doesn't apply to png with alpha channel). For text watermark you can select font, set color, size, angel and opacity. 5 Version: 0.4. 35 Version: 0.4.4 6 6 Author: Wojtek Szałkiewicz 7 7 Author URI: http://szalkiewicz.pl/ -
easy-watermark/trunk/languages/easy-watermark-pl_PL.po
r715971 r729102 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2013-05-16 19:39+0100\n" 6 "PO-Revision-Date: 2013-05- 17 20:37+0100\n"6 "PO-Revision-Date: 2013-05-26 12:17+0100\n" 7 7 "Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n" 8 8 "Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n" -
easy-watermark/trunk/lib/EasyWatermarkPlugin.php
r714327 r729102 333 333 public function wp_generate_attachment_metadata($metadata, $id){ 334 334 if($this->watermark_uploaded && $this->uploaded_id == $id){ 335 $this->watermark_single($id, true);335 $this->watermark_single($id, false, $metadata); 336 336 337 337 $this->watermark_uploaded = false; … … 348 348 * @return boolean 349 349 */ 350 private function watermark_single($id, $checkMime = false ){350 private function watermark_single($id, $checkMime = false, $meta = array()){ 351 351 if($this->isGDEnabled()) : 352 352 … … 362 362 } 363 363 364 return $this->create_watermark($post );364 return $this->create_watermark($post, $meta); 365 365 } 366 366 else { … … 420 420 * @return boolean 421 421 */ 422 public function create_watermark($post){ 423 $meta = get_post_meta($post->ID, '_wp_attachment_metadata'); 424 $meta = $meta[0]; 425 $images = $meta['sizes']; 426 $images['full'] = array( 422 public function create_watermark($post, $meta = array()){ 423 424 if(empty($meta)){ 425 $meta = get_post_meta($post->ID, '_wp_attachment_metadata'); 426 $meta = $meta[0]; 427 } 428 429 $sizes = $meta['sizes']; 430 $sizes['full'] = array( 427 431 'file' => $meta['file'], 428 432 'mime-type' => $post->post_mime_type … … 435 439 436 440 $return = true; 437 foreach($ images as $size => $img){441 foreach($sizes as $size => $img){ 438 442 if(in_array($size, $allowedSizes)){ 439 443 $imgFile = str_replace($filebasename, wp_basename($img['file']), $filepath); -
easy-watermark/trunk/readme.txt
r716816 r729102 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 0.4. 37 Stable tag: 0.4.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 81 81 82 82 = 0.4.3 = 83 * repaired issue with auto-watermark option 84 85 = 0.4.3 = 83 86 * added support for additional image sizes registered by some templates or plugins (e.g. 'post-thumbnail') 84 87
Note: See TracChangeset
for help on using the changeset viewer.