Easy Watermark - Version 0.2.2

Version Description

  • added live text preview on the settings page
Download this release

Release Info

Developer szaleq
Plugin Icon Easy Watermark
Version 0.2.2
Comparing to
See all releases

Code changes from version 0.2.1 to 0.2.2

EasyWatermark.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Easy Watermark
4
- * @version 2.0
5
  * @license GPL
6
  * @author Wojtek Szałkiewicz
7
  * @author url http://szalkiewicz.pl
@@ -54,7 +54,7 @@ class EasyWatermark
54
  'offset_x' => 0,
55
  'offset_y' => 0,
56
  'opacity' => 60,
57
- 'color' => 'fff',
58
  'font' => '',
59
  'size' => 24,
60
  'angle' => 0,
@@ -420,7 +420,7 @@ class EasyWatermark
420
  private $allowedTypes = array('jpeg', 'jpg', 'png', 'gif');
421
 
422
  /**
423
- * Creates output image with watermarm
424
  *
425
  * @chainable
426
  * @param string input image path
@@ -553,6 +553,42 @@ class EasyWatermark
553
  return true;
554
  }
555
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
556
  /**
557
  * Returns size of text bounding box width x and y distance from font baseline
558
  *
@@ -597,7 +633,7 @@ class EasyWatermark
597
  */
598
  private function getOutputImage(){
599
  if(empty($this->outputImage)){
600
- list($imageWidth, $imageHeight) = $this->getImageSize();
601
 
602
  // Create blank image
603
  $this->outputImage = imagecreatetruecolor($imageWidth, $imageHeight);
@@ -615,11 +651,12 @@ class EasyWatermark
615
  *
616
  * @return array width and height
617
  */
618
- private function getImageSize(){
 
619
  if(empty($this->imageSize)){
620
  $this->imageSize = array(
621
- imagesx($this->inputImage),
622
- imagesy($this->inputImage)
623
  );
624
  }
625
 
1
  <?php
2
  /**
3
  * @package Easy Watermark
4
+ * @version 2.1
5
  * @license GPL
6
  * @author Wojtek Szałkiewicz
7
  * @author url http://szalkiewicz.pl
54
  'offset_x' => 0,
55
  'offset_y' => 0,
56
  'opacity' => 60,
57
+ 'color' => '000000',
58
  'font' => '',
59
  'size' => 24,
60
  'angle' => 0,
420
  private $allowedTypes = array('jpeg', 'jpg', 'png', 'gif');
421
 
422
  /**
423
+ * Creates output image with watermark
424
  *
425
  * @chainable
426
  * @param string input image path
553
  return true;
554
  }
555
 
556
+ /**
557
+ * prints text preview
558
+ *
559
+ * @return boolean
560
+ */
561
+ public function printTextPreview(){
562
+ $settings = $this->settings['text'];
563
+ list($width, $height, $deltaX, $deltaY) = $this->getTextSize($settings['size'], $settings['angle'], $settings['font'], $this->text);
564
+
565
+ $this->outputImage = imagecreatetruecolor($width, $height);
566
+
567
+ $grid = 6;
568
+ $grey = imagecolorallocate($this->outputImage, 130,130,130);
569
+ $white = imagecolorallocate($this->outputImage, 200,200,200);
570
+ $startColor = 1;
571
+ for($i = 0; $i < ($height / $grid); $i++){
572
+ $currentColor = $startColor;
573
+ for($n = 0; $n < ($width / $grid); $n++){
574
+ $color = ($currentColor == 1) ? $grey : $white;
575
+ imagefilledrectangle($this->outputImage, $grid * $n, $grid * $i, $grid * $n + $grid, $grid * $i + $grid, $color);
576
+ $currentColor = ($currentColor == 1) ? 0 : 1;
577
+ }
578
+ $startColor = ($startColor == 1) ? 0 : 1;
579
+ }
580
+
581
+ $this->settings['text']['position_x'] = 1;
582
+ $this->settings['text']['position_y'] = 1;
583
+ $this->settings['text']['offset_x'] = 0;
584
+ $this->settings['text']['offset_y'] = 0;
585
+ $this->outputMime = 'jpeg';
586
+
587
+ $this->applyTextWatermark();
588
+
589
+ return $this->printOutput();
590
+ }
591
+
592
  /**
593
  * Returns size of text bounding box width x and y distance from font baseline
594
  *
633
  */
634
  private function getOutputImage(){
635
  if(empty($this->outputImage)){
636
+ list($imageWidth, $imageHeight) = $this->getImageSize(true);
637
 
638
  // Create blank image
639
  $this->outputImage = imagecreatetruecolor($imageWidth, $imageHeight);
651
  *
652
  * @return array width and height
653
  */
654
+ private function getImageSize($input = false){
655
+ $img = $input ? $this->inputImage : $this->outputImage;
656
  if(empty($this->imageSize)){
657
  $this->imageSize = array(
658
+ imagesx($img),
659
+ imagesy($img)
660
  );
661
  }
662
 
EasyWatermarkPlugin.php CHANGED
@@ -22,7 +22,7 @@ class EasyWatermarkPlugin extends ewPluginCore
22
  /**
23
  * @var string plugin version
24
  */
25
- protected static $version = '0.2.1';
26
 
27
  /**
28
  * @var string plugin class name
@@ -52,6 +52,39 @@ class EasyWatermarkPlugin extends ewPluginCore
52
 
53
  public function plugin_init(){
54
  new EasyWatermarkSettings($this);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  }
56
 
57
  public function setSettings($settings){
@@ -192,18 +225,23 @@ class EasyWatermarkPlugin extends ewPluginCore
192
  }
193
 
194
  private function create_watermark($imageFile, $imageType){
195
- $ew = $this->getEasyWatermark();
196
- $ew->setImagePath($imageFile)
197
- ->setImageMime($imageType)
198
- ->setOutputFile($imageFile)
199
- ->setOutputMime($imageType);
200
-
201
- if(!$ew->create() || !$ew->saveOutput()){
202
- $this->add_error($ew->getError());
 
 
 
 
 
 
 
203
  return false;
204
  }
205
-
206
- return true;
207
  }
208
 
209
  private $ew;
@@ -265,7 +303,17 @@ class EasyWatermarkPlugin extends ewPluginCore
265
  }
266
  else {
267
  ?>
268
- <br/><a class="button-primary" href="<?php echo wp_nonce_url(admin_url('/upload.php?page=easy-watermark&watermark_all=1')); ?>"><?php _e('Add watermark to all images', 'easy-watermark'); ?></a><p class="description"><?php _e('Be carefull with that option. If some images alredy has watermark, it will be added though.'); ?></p>
 
 
 
 
 
 
 
 
 
 
269
  <?php
270
  }
271
  ?>
22
  /**
23
  * @var string plugin version
24
  */
25
+ protected static $version = '0.2.2';
26
 
27
  /**
28
  * @var string plugin class name
52
 
53
  public function plugin_init(){
54
  new EasyWatermarkSettings($this);
55
+
56
+ if(isset($_GET['page']) && $_GET['page'] == 'easy-watermark-settings' && isset($_GET['tp']) && $_GET['tp'] == 1){
57
+ $ew = $this->getEasyWatermark();
58
+ if($this->settings['general']['watermark_type'] == '1'){
59
+ $settings = $this->settings['text'];
60
+
61
+ $fontFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR . $settings['font'];
62
+ if(file_exists($fontFile))
63
+ $settings['font'] = $fontFile;
64
+
65
+ $ew->textSet($settings);
66
+ }
67
+
68
+ if(isset($_GET['text']))
69
+ $ew->textSet('text', $_GET['text']);
70
+ if(isset($_GET['size']))
71
+ $ew->textSet('size', $_GET['size']);
72
+ if(isset($_GET['angle']))
73
+ $ew->textSet('angle', $_GET['angle']);
74
+ if(isset($_GET['color']))
75
+ $ew->textSet('color', $_GET['color']);
76
+ if(isset($_GET['opacity']))
77
+ $ew->textSet('opacity', $_GET['opacity']);
78
+
79
+ if(isset($_GET['font'])){
80
+ $fontFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR . $_GET['font'];
81
+ if(file_exists($fontFile))
82
+ $ew->textSet('font', $fontFile);
83
+ }
84
+
85
+ $ew->printTextPreview();
86
+ die();
87
+ }
88
  }
89
 
90
  public function setSettings($settings){
225
  }
226
 
227
  private function create_watermark($imageFile, $imageType){
228
+ if(empty($this->settings['image']['watermark_path']) || $this->settings['image']['watermark_path'] != $imageFile){
229
+ $ew = $this->getEasyWatermark();
230
+ $ew->setImagePath($imageFile)
231
+ ->setImageMime($imageType)
232
+ ->setOutputFile($imageFile)
233
+ ->setOutputMime($imageType);
234
+
235
+ if(!$ew->create() || !$ew->saveOutput()){
236
+ $this->add_error($ew->getError());
237
+ return false;
238
+ }
239
+
240
+ return true;
241
+ }
242
+ else {
243
  return false;
244
  }
 
 
245
  }
246
 
247
  private $ew;
303
  }
304
  else {
305
  ?>
306
+ <br/>
307
+ <div id="donation-link" style="float:right;">
308
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
309
+ <input type="hidden" name="cmd" value="_s-xclick">
310
+ <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----
311
+ ">
312
+ <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
313
+ <img alt="" border="0" src="https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif" width="1" height="1">
314
+ </form>
315
+ </div><!-- #donation-link -->
316
+ <a class="button-primary" href="<?php echo wp_nonce_url(admin_url('/upload.php?page=easy-watermark&watermark_all=1')); ?>"><?php _e('Add watermark to all images', 'easy-watermark'); ?></a><p class="description"><?php _e('Be carefull with that option. If some images alredy has watermark, it will be added though.'); ?></p>
317
  <?php
318
  }
319
  ?>
EasyWatermarkSettings.php CHANGED
@@ -32,7 +32,7 @@ class EasyWatermarkSettings
32
  'offset_y' => 0,
33
  'opacity' => 60,
34
  'color' => '000000',
35
- 'font' => 'arial',
36
  'size' => 24,
37
  'angle' => 0,
38
  'text' => ''
32
  'offset_y' => 0,
33
  'opacity' => 60,
34
  'color' => '000000',
35
+ 'font' => 'Arial.ttf',
36
  'size' => 24,
37
  'angle' => 0,
38
  'text' => ''
css/style.css CHANGED
@@ -15,6 +15,18 @@
15
  background:url(../images/select2.png) 50% 50%;
16
  }
17
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  #alignmentbox {
19
  width:243px;
20
  height:183px;
15
  background:url(../images/select2.png) 50% 50%;
16
  }
17
 
18
+ #donation-link {
19
+ float:right;
20
+ }
21
+
22
+ #text-preview {
23
+ margin: 4px 0;
24
+ }
25
+
26
+ tr.hidden {
27
+ display:none;
28
+ }
29
+
30
  #alignmentbox {
31
  width:243px;
32
  height:183px;
index.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Easy Watermark
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.2.1
6
  Author: Wojtek Szałkiewicz
7
  Author URI: http://szalkiewicz.pl/
8
  License: GPLv2 or later
2
  /*
3
  Plugin Name: Easy Watermark
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.2.2
6
  Author: Wojtek Szałkiewicz
7
  Author URI: http://szalkiewicz.pl/
8
  License: GPLv2 or later
js/interface.js CHANGED
@@ -20,12 +20,13 @@
20
  });
21
 
22
  var picker = $('#colorselector');
23
- var input = $('#easy-watermark-color')
24
 
25
  picker.ColorPicker({
26
  onSubmit: function(hsb, hex, rgb, el){
27
  picker.children('div').css('backgroundColor', '#' + hex);
28
  input.val(hex);
 
29
  },
30
  onBeforeShow: function () {
31
  $(this).ColorPickerSetColor(input.val());
@@ -43,4 +44,32 @@
43
  $(this).parent().addClass('current');
44
  }
45
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }(jQuery))
20
  });
21
 
22
  var picker = $('#colorselector');
23
+ var input = $('#ew-color')
24
 
25
  picker.ColorPicker({
26
  onSubmit: function(hsb, hex, rgb, el){
27
  picker.children('div').css('backgroundColor', '#' + hex);
28
  input.val(hex);
29
+ refreshImage();
30
  },
31
  onBeforeShow: function () {
32
  $(this).ColorPickerSetColor(input.val());
44
  $(this).parent().addClass('current');
45
  }
46
  });
47
+
48
+ if($('input[name=option_page]').val() == 'easy-watermark-settings-text'){
49
+
50
+ var refreshImage = function(){
51
+ var row = $('#ew-preview-row');
52
+ var text = $('#ew-text').val();
53
+
54
+ if(text){
55
+ row.removeClass('hidden');
56
+ var font = $('#ew-font').val();
57
+ var color = $('#ew-color').val();
58
+ var size = $('#ew-size').val();
59
+ var angle = $('#ew-angle').val();
60
+ var opacity = $('#ew-opacity').val();
61
+
62
+ var params = '&tp=1&text='+text+'&font='+font+'&color='+color+'&size='+size+'&angle='+angle+'&opacity='+opacity;
63
+ var url = window.location + params;
64
+
65
+ $('#ew-text-preview').attr('src', url);
66
+ }
67
+ else {
68
+ row.addClass('hidden');
69
+ }
70
+ }
71
+
72
+ $('#easy-watermark-settings-form input').focusout(refreshImage)
73
+ $('#easy-watermark-settings-form select').change(refreshImage);
74
+ }
75
  }(jQuery))
languages/easy-watermark-pl_PL.mo CHANGED
Binary file
languages/easy-watermark-pl_PL.po CHANGED
@@ -1,68 +1,68 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Easy Watermark 0.2.1\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-04-02 20:54+0100\n"
6
- "PO-Revision-Date: 2013-04-02 20:56+0100\n"
7
  "Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
8
  "Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
9
  "Language: Polish\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-Language: Polish\n"
14
  "X-Poedit-KeywordsList: __;_e\n"
15
  "X-Poedit-Basepath: .\n"
 
16
  "X-Poedit-SearchPath-0: /media/szaleq/Data/easy-watermark/trunk\n"
17
 
18
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:70
19
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:86
20
  msgid "Add watermark"
21
  msgstr "Dodaj znak wodny"
22
 
23
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:170
24
  #, php-format
25
  msgid "Not supported mime type of %s. Skipping..."
26
  msgstr "Nieobsługiwany typ pliku %s. Omijanie..."
27
 
28
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:175
29
  #, php-format
30
  msgid "Watermark successfully added to %s"
31
  msgstr "Znak wodny dodany do %s"
32
 
33
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:226
34
  #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkSettings.php:86
35
  msgid "Easy Watermark"
36
  msgstr ""
37
 
38
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:233
39
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:251
40
  msgid "Watermark successfully added."
41
  msgstr "Znak wodny został dodany."
42
 
43
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:233
44
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:242
45
  msgid "Go back"
46
  msgstr "Wróć"
47
 
48
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:233
49
  msgid "or"
50
  msgstr "lub"
51
 
52
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:233
53
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:242
54
  msgid "go to edit page"
55
  msgstr "idź na stronę edycji"
56
 
57
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:251
58
  msgid "Go to Media Library"
59
  msgstr "Idź do biblioteki mediów"
60
 
61
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:260
62
  msgid "Add watermark to all images"
63
  msgstr "Dodaj znak wodny do wszystkich obrazów"
64
 
65
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:260
66
  msgid "Be carefull with that option. If some images alredy has watermark, it will be added though."
67
  msgstr "Bądź ostrożny używając tej opcji. Jeśli któreś zdjęcia posiadają już znak wodny, zostanie on dodany po raz drugi."
68
 
@@ -125,7 +125,7 @@ msgstr "Wybierz/wgraj obraz"
125
 
126
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:8
127
  msgid "Note: If you want to upload a new image, make sure that \"Auto watermark\" option is unticked or text watermark is not set. Otherwise uploaded image will be watermarked."
128
- msgstr "Uwaga: Jeśli chcesz wgrać nowy obraz, upewnij się, że opcja \"Automatyczne dodawanie\" jest odznaczona, tekstowy znak wodny nie jest ustawiony. W przeciwnym wypadku wgrywany obraz zostanie oznaczony znakiem wodnym."
129
 
130
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:17
131
  msgid "Loading preview..."
@@ -152,23 +152,22 @@ msgid "Image offset"
152
  msgstr "Offset obrazu"
153
 
154
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:36
155
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:20
156
  msgid "x"
157
  msgstr ""
158
 
159
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:38
160
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:22
161
  msgid "y"
162
  msgstr ""
163
 
164
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:39
165
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:23
166
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:39
167
  msgid "Offset can be defined in pixels (just numeric value) or as percentage (e.g. '33%')"
168
  msgstr "Offset może być ustawiony w pikselach (po porstu numer) lub procentowo (np. '33%')"
169
 
170
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:41
171
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:65
172
  msgid "Opacity"
173
  msgstr "Nieprzezroczystość"
174
 
@@ -176,67 +175,31 @@ msgstr "Nieprzezroczystość"
176
  msgid "Opacity does not affect the png images with opacity chanel."
177
  msgstr "Ta opcja nie dotyczy obrazów png posiadających kanał alfa."
178
 
179
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:6
 
 
 
 
180
  msgid "Text alignment"
181
  msgstr "Wyrównanie tekstu"
182
 
183
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:19
184
  msgid "Text offset"
185
  msgstr "Offset tekstu"
186
 
187
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:28
188
- msgid "Text position"
189
- msgstr "Pozycja tekstu"
190
-
191
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:29
192
- msgid "vertical"
193
- msgstr "pionowa"
194
-
195
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:30
196
- msgid "top"
197
- msgstr "góra"
198
-
199
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:31
200
- msgid "middle"
201
- msgstr "środek"
202
-
203
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:32
204
- msgid "bottom"
205
- msgstr "dół"
206
-
207
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:33
208
- msgid "offset"
209
- msgstr ""
210
-
211
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:34
212
- msgid "horizontal"
213
- msgstr "pozioma"
214
-
215
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:35
216
- msgid "left"
217
- msgstr "do lewej"
218
-
219
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:36
220
- msgid "center"
221
- msgstr "wyśrodkowany"
222
-
223
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:37
224
- msgid "right"
225
- msgstr "do prawej"
226
-
227
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:43
228
  msgid "Font"
229
  msgstr "Czcionka"
230
 
231
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:54
232
  msgid "Text color"
233
  msgstr "Kolor tekstu"
234
 
235
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:57
236
  msgid "Text size"
237
  msgstr "Rozmiar tekstu"
238
 
239
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:61
240
  msgid "Text angle"
241
  msgstr "Kąt obrotu tekstu"
242
 
@@ -244,18 +207,45 @@ msgstr "Kąt obrotu tekstu"
244
  msgid "Easy Watermark Settings"
245
  msgstr "Ustawienia Easy Watermark"
246
 
247
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form.php:3
248
  msgid "Go to Easy Watermark Tool"
249
  msgstr "Przejdź do Easy Watermark"
250
 
251
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form.php:19
252
  msgid "Save Changes"
253
  msgstr "Zapisz zmiany"
254
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  #~ msgid ""
256
  #~ "Note: if \"Auto watermark\" option is ticked, untick it before uploading "
257
  #~ "new watermark image or remove current image first."
258
  #~ msgstr ""
259
- #~ "Uwaga: Jeśli opcja \"Automatycznie dodawanie\" jest zaznaczona, odznacz "
260
- #~ "przed wgrywaniem nowego znaku wodnego lub usuń najpierw bieżący znak "
261
  #~ "wodny."
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Easy Watermark 0.2.2\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-04-04 00:18+0100\n"
6
+ "PO-Revision-Date: 2013-04-04 00:19+0100\n"
7
  "Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
8
  "Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
9
  "Language: Polish\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
 
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-Language: Polish\n"
16
  "X-Poedit-SearchPath-0: /media/szaleq/Data/easy-watermark/trunk\n"
17
 
18
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:111
19
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:127
20
  msgid "Add watermark"
21
  msgstr "Dodaj znak wodny"
22
 
23
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:211
24
  #, php-format
25
  msgid "Not supported mime type of %s. Skipping..."
26
  msgstr "Nieobsługiwany typ pliku %s. Omijanie..."
27
 
28
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:216
29
  #, php-format
30
  msgid "Watermark successfully added to %s"
31
  msgstr "Znak wodny dodany do %s"
32
 
33
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:272
34
  #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkSettings.php:86
35
  msgid "Easy Watermark"
36
  msgstr ""
37
 
38
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:279
39
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:297
40
  msgid "Watermark successfully added."
41
  msgstr "Znak wodny został dodany."
42
 
43
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:279
44
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:288
45
  msgid "Go back"
46
  msgstr "Wróć"
47
 
48
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:279
49
  msgid "or"
50
  msgstr "lub"
51
 
52
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:279
53
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:288
54
  msgid "go to edit page"
55
  msgstr "idź na stronę edycji"
56
 
57
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:297
58
  msgid "Go to Media Library"
59
  msgstr "Idź do biblioteki mediów"
60
 
61
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:306
62
  msgid "Add watermark to all images"
63
  msgstr "Dodaj znak wodny do wszystkich obrazów"
64
 
65
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:306
66
  msgid "Be carefull with that option. If some images alredy has watermark, it will be added though."
67
  msgstr "Bądź ostrożny używając tej opcji. Jeśli któreś zdjęcia posiadają już znak wodny, zostanie on dodany po raz drugi."
68
 
125
 
126
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:8
127
  msgid "Note: If you want to upload a new image, make sure that \"Auto watermark\" option is unticked or text watermark is not set. Otherwise uploaded image will be watermarked."
128
+ msgstr "Uwaga: Jeśli chcesz wgrać nowy obraz, upewnij się, że opcja \"Automatyczne dodawanie\" jest odznaczona, lub tekstowy znak wodny nie jest ustawiony. W przeciwnym wypadku wgrywany obraz zostanie oznaczony znakiem wodnym."
129
 
130
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:17
131
  msgid "Loading preview..."
152
  msgstr "Offset obrazu"
153
 
154
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:36
155
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:26
156
  msgid "x"
157
  msgstr ""
158
 
159
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:38
160
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:28
161
  msgid "y"
162
  msgstr ""
163
 
164
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:39
165
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:29
 
166
  msgid "Offset can be defined in pixels (just numeric value) or as percentage (e.g. '33%')"
167
  msgstr "Offset może być ustawiony w pikselach (po porstu numer) lub procentowo (np. '33%')"
168
 
169
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:41
170
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:53
171
  msgid "Opacity"
172
  msgstr "Nieprzezroczystość"
173
 
175
  msgid "Opacity does not affect the png images with opacity chanel."
176
  msgstr "Ta opcja nie dotyczy obrazów png posiadających kanał alfa."
177
 
178
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:7
179
+ msgid "Preview"
180
+ msgstr "Podgląd"
181
+
182
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:12
183
  msgid "Text alignment"
184
  msgstr "Wyrównanie tekstu"
185
 
186
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:25
187
  msgid "Text offset"
188
  msgstr "Offset tekstu"
189
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  msgid "Font"
192
  msgstr "Czcionka"
193
 
194
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:42
195
  msgid "Text color"
196
  msgstr "Kolor tekstu"
197
 
198
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:45
199
  msgid "Text size"
200
  msgstr "Rozmiar tekstu"
201
 
202
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:49
203
  msgid "Text angle"
204
  msgstr "Kąt obrotu tekstu"
205
 
207
  msgid "Easy Watermark Settings"
208
  msgstr "Ustawienia Easy Watermark"
209
 
210
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form.php:12
211
  msgid "Go to Easy Watermark Tool"
212
  msgstr "Przejdź do Easy Watermark"
213
 
214
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form.php:28
215
  msgid "Save Changes"
216
  msgstr "Zapisz zmiany"
217
 
218
+ #~ msgid "Text position"
219
+ #~ msgstr "Pozycja tekstu"
220
+
221
+ #~ msgid "vertical"
222
+ #~ msgstr "pionowa"
223
+
224
+ #~ msgid "top"
225
+ #~ msgstr "góra"
226
+
227
+ #~ msgid "middle"
228
+ #~ msgstr "środek"
229
+
230
+ #~ msgid "bottom"
231
+ #~ msgstr "dół"
232
+
233
+ #~ msgid "horizontal"
234
+ #~ msgstr "pozioma"
235
+
236
+ #~ msgid "left"
237
+ #~ msgstr "do lewej"
238
+
239
+ #~ msgid "center"
240
+ #~ msgstr "wyśrodkowany"
241
+
242
+ #~ msgid "right"
243
+ #~ msgstr "do prawej"
244
+
245
  #~ msgid ""
246
  #~ "Note: if \"Auto watermark\" option is ticked, untick it before uploading "
247
  #~ "new watermark image or remove current image first."
248
  #~ msgstr ""
249
+ #~ "Uwaga: Jeśli opcja \"Automatyczne dodawanie\" jest zaznaczona, odznacz "
250
+ #~ "przed wgrywaniem nowego znaku wodnego lub usuń najpierw bieżący znak "
251
  #~ "wodny."
languages/easy-watermark.pot CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Easy Watermark 0.2.1\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-04-02 21:18+0100\n"
6
- "PO-Revision-Date: 2013-04-02 21:19+0100\n"
7
  "Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
8
  "Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
9
  "Language: \n"
@@ -15,54 +15,54 @@ msgstr ""
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SearchPath-0: /media/szaleq/Data/easy-watermark/trunk\n"
17
 
18
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:75
19
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:91
20
  msgid "Add watermark"
21
  msgstr ""
22
 
23
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:175
24
  #, php-format
25
  msgid "Not supported mime type of %s. Skipping..."
26
  msgstr ""
27
 
28
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:180
29
  #, php-format
30
  msgid "Watermark successfully added to %s"
31
  msgstr ""
32
 
33
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:231
34
  #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkSettings.php:86
35
  msgid "Easy Watermark"
36
  msgstr ""
37
 
38
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:238
39
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:256
40
  msgid "Watermark successfully added."
41
  msgstr ""
42
 
43
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:238
44
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:247
45
  msgid "Go back"
46
  msgstr ""
47
 
48
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:238
49
  msgid "or"
50
  msgstr ""
51
 
52
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:238
53
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:247
54
  msgid "go to edit page"
55
  msgstr ""
56
 
57
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:256
58
  msgid "Go to Media Library"
59
  msgstr ""
60
 
61
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:265
62
  msgid "Add watermark to all images"
63
  msgstr ""
64
 
65
- #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:265
66
  msgid "Be carefull with that option. If some images alredy has watermark, it will be added though."
67
  msgstr ""
68
 
@@ -152,23 +152,22 @@ msgid "Image offset"
152
  msgstr ""
153
 
154
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:36
155
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:20
156
  msgid "x"
157
  msgstr ""
158
 
159
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:38
160
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:22
161
  msgid "y"
162
  msgstr ""
163
 
164
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:39
165
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:23
166
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:39
167
  msgid "Offset can be defined in pixels (just numeric value) or as percentage (e.g. '33%')"
168
  msgstr ""
169
 
170
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:41
171
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:65
172
  msgid "Opacity"
173
  msgstr ""
174
 
@@ -176,67 +175,31 @@ msgstr ""
176
  msgid "Opacity does not affect the png images with opacity chanel."
177
  msgstr ""
178
 
179
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:6
180
- msgid "Text alignment"
181
  msgstr ""
182
 
183
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:19
184
- msgid "Text offset"
185
- msgstr ""
186
-
187
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:28
188
- msgid "Text position"
189
- msgstr ""
190
-
191
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:29
192
- msgid "vertical"
193
  msgstr ""
194
 
195
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:30
196
- msgid "top"
197
  msgstr ""
198
 
199
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:31
200
- msgid "middle"
201
- msgstr ""
202
-
203
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:32
204
- msgid "bottom"
205
- msgstr ""
206
-
207
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:33
208
- msgid "offset"
209
- msgstr ""
210
-
211
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:34
212
- msgid "horizontal"
213
- msgstr ""
214
-
215
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:35
216
- msgid "left"
217
- msgstr ""
218
-
219
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:36
220
- msgid "center"
221
- msgstr ""
222
-
223
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:37
224
- msgid "right"
225
- msgstr ""
226
-
227
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:43
228
  msgid "Font"
229
  msgstr ""
230
 
231
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:54
232
  msgid "Text color"
233
  msgstr ""
234
 
235
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:57
236
  msgid "Text size"
237
  msgstr ""
238
 
239
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:61
240
  msgid "Text angle"
241
  msgstr ""
242
 
@@ -244,11 +207,11 @@ msgstr ""
244
  msgid "Easy Watermark Settings"
245
  msgstr ""
246
 
247
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form.php:3
248
  msgid "Go to Easy Watermark Tool"
249
  msgstr ""
250
 
251
- #: /media/szaleq/Data/easy-watermark/trunk/settings-form.php:19
252
  msgid "Save Changes"
253
  msgstr ""
254
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Easy Watermark 0.2.2\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-04-04 00:19+0100\n"
6
+ "PO-Revision-Date: 2013-04-04 00:19+0100\n"
7
  "Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
8
  "Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
9
  "Language: \n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SearchPath-0: /media/szaleq/Data/easy-watermark/trunk\n"
17
 
18
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:111
19
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:127
20
  msgid "Add watermark"
21
  msgstr ""
22
 
23
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:211
24
  #, php-format
25
  msgid "Not supported mime type of %s. Skipping..."
26
  msgstr ""
27
 
28
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:216
29
  #, php-format
30
  msgid "Watermark successfully added to %s"
31
  msgstr ""
32
 
33
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:272
34
  #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkSettings.php:86
35
  msgid "Easy Watermark"
36
  msgstr ""
37
 
38
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:279
39
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:297
40
  msgid "Watermark successfully added."
41
  msgstr ""
42
 
43
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:279
44
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:288
45
  msgid "Go back"
46
  msgstr ""
47
 
48
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:279
49
  msgid "or"
50
  msgstr ""
51
 
52
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:279
53
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:288
54
  msgid "go to edit page"
55
  msgstr ""
56
 
57
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:297
58
  msgid "Go to Media Library"
59
  msgstr ""
60
 
61
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:306
62
  msgid "Add watermark to all images"
63
  msgstr ""
64
 
65
+ #: /media/szaleq/Data/easy-watermark/trunk/EasyWatermarkPlugin.php:306
66
  msgid "Be carefull with that option. If some images alredy has watermark, it will be added though."
67
  msgstr ""
68
 
152
  msgstr ""
153
 
154
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:36
155
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:26
156
  msgid "x"
157
  msgstr ""
158
 
159
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:38
160
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:28
161
  msgid "y"
162
  msgstr ""
163
 
164
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:39
165
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:29
 
166
  msgid "Offset can be defined in pixels (just numeric value) or as percentage (e.g. '33%')"
167
  msgstr ""
168
 
169
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-image.php:41
170
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:53
171
  msgid "Opacity"
172
  msgstr ""
173
 
175
  msgid "Opacity does not affect the png images with opacity chanel."
176
  msgstr ""
177
 
178
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:7
179
+ msgid "Preview"
180
  msgstr ""
181
 
182
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:12
183
+ msgid "Text alignment"
 
 
 
 
 
 
 
 
184
  msgstr ""
185
 
186
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:25
187
+ msgid "Text offset"
188
  msgstr ""
189
 
190
  #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  msgid "Font"
192
  msgstr ""
193
 
194
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:42
195
  msgid "Text color"
196
  msgstr ""
197
 
198
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:45
199
  msgid "Text size"
200
  msgstr ""
201
 
202
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form-text.php:49
203
  msgid "Text angle"
204
  msgstr ""
205
 
207
  msgid "Easy Watermark Settings"
208
  msgstr ""
209
 
210
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form.php:12
211
  msgid "Go to Easy Watermark Tool"
212
  msgstr ""
213
 
214
+ #: /media/szaleq/Data/easy-watermark/trunk/settings-form.php:28
215
  msgid "Save Changes"
216
  msgstr ""
217
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Easy Watermark ===
2
  Contributors: szaleq
3
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5MCXMBU3ETUDY&lc=PL&item_name=EawyWatermark%20Wordpress%20Plugin&currency_code=PLN&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: watermark, image, picture, photo, media, gallery, signature, transparent, upload, admin
5
  Requires at least: 3.3
6
  Tested up to: 3.5.1
7
- Stable tag: 0.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,12 +48,16 @@ If you have any other questions, please contact me.
48
 
49
  == Screenshots ==
50
 
51
- 1. Settings page
52
- 2. Easy Watermark Tool
53
- 3. `Add Watermark` link in media library
 
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 0.2.1 =
58
  * some changes on settings page
59
 
1
  === Easy Watermark ===
2
  Contributors: szaleq
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5MCXMBU3ETUDY&lc=GB&item_name=Easy%20Watermark%20Wordpress%20Plugin&currency_code=PLN&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
4
  Tags: watermark, image, picture, photo, media, gallery, signature, transparent, upload, admin
5
  Requires at least: 3.3
6
  Tested up to: 3.5.1
7
+ Stable tag: 0.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
 
49
  == Screenshots ==
50
 
51
+ 1. Text settings page
52
+ 2. Image settings page
53
+ 3. Easy Watermark Tool
54
+ 4. `Add Watermark` link in media library
55
 
56
  == Changelog ==
57
 
58
+ = 0.2.2 =
59
+ * added live text preview on the settings page
60
+
61
  = 0.2.1 =
62
  * some changes on settings page
63
 
settings-form-text.php CHANGED
@@ -1,8 +1,14 @@
1
 
2
  <table class="form-table">
3
  <tr><th scope="row"><?php _e('Text', 'easy-watermark'); ?></th><td>
4
- <input type="text" value="<?php echo $text; ?>" name="easy-watermark-settings-text[text]" />
5
- </tr>
 
 
 
 
 
 
6
  <tr valign="top" class="watermark-options"><th scope="row"><?php _e('Text alignment', 'easy-watermark'); ?></th><td>
7
  <div id="alignmentbox">
8
  <label for="alignment-1" id="alignment-1-label"><input type="radio" name="easy-watermark-settings-text[alignment]" value="1" id="alignment-1" <?php checked('1', $alignment); ?> /></label>
@@ -18,30 +24,12 @@
18
  </td></tr>
19
  <tr valign="top" class="watermark-options"><th scope="row"><?php _e('Text offset', 'easy-watermark'); ?></th><td>
20
  <label for="easy-watermark-position-offset_x"><?php _e('x', 'easy-watermark'); ?>: </label>
21
- <input size="3" type="text" id="easy-watermark-position-offset_x" name="easy-watermark-settings-text[offset_x]" value="<?php echo $offset_x; ?>" /><br />
22
  <label for="easy-watermark-position-offset_y"><?php _e('y', 'easy-watermark'); ?>: </label>
23
- <input type="text" size="3" id="easy-watermark-position-offset_y" name="easy-watermark-settings-text[offset_y]" value="<?php echo $offset_y; ?>"/><p class="description"><?php _e('Offset can be defined in pixels (just numeric value) or as percentage (e.g. \'33%\')', 'easy-watermark'); ?></p>
24
  </td></tr>
25
-
26
-
27
- <!--
28
- <tr valign="top" class="watermark-options"><th scope="row"><?php _e('Text position', 'easy-watermark'); ?></th>
29
- <td><strong> <?php _e('vertical', 'easy-watermark'); ?>: </strong>
30
- <label for="easy-watermark-position-top"><input id="easy-watermark-position-top" name="easy-watermark-settings-text[position_y]" type="radio" value="top" <?php checked('top', $position_y); ?>/> <?php _e('top', 'easy-watermark'); ?></label>
31
- <label for="easy-watermark-position-mdl"><input id="easy-watermark-position-mdl" name="easy-watermark-settings-text[position_y]" type="radio" value="mdl" <?php echo checked('mdl', $position_y); ?> /> <?php _e('middle', 'easy-watermark'); ?></label>
32
- <label for="easy-watermark-position-btm"><input id="easy-watermark-position-btm" name="easy-watermark-settings-text[position_y]" type="radio" value="btm" <?php echo checked('btm', $position_y); ?> /> <?php _e('bottom', 'easy-watermark'); ?></label><br />
33
- <label for="easy-watermark-position-offset_y"> <?php _e('offset', 'easy-watermark'); ?>: </label>
34
- <input size="3" type="text" id="easy-watermark-position-offset_y" name="easy-watermark-settings-text[offset_y]" value="<?php echo $offset_y; ?>" /><br /><br /><strong> <?php _e('horizontal', 'easy-watermark'); ?>: </strong>
35
- <label for="easy-watermark-position-lft"><input id="easy-watermark-position-lft" name="easy-watermark-settings-text[position_x]" type="radio" value="lft" <?php checked('lft', $position_x); ?>/> <?php _e('left', 'easy-watermark'); ?></label>
36
- <label for="easy-watermark-position-ctr"><input id="easy-watermark-position-ctr" name="easy-watermark-settings-text[position_x]" type="radio" value="ctr" <?php checked('ctr', $position_x); ?> /> <?php _e('center', 'easy-watermark'); ?></label>
37
- <label for="easy-watermark-position-rgt"><input id="easy-watermark-position-rgt" name="easy-watermark-settings-text[position_x]" type="radio" value="rgt" <?php checked('rgt', $position_x); ?> /> <?php _e('right', 'easy-watermark'); ?></label><br />
38
- <label for="easy-watermark-position-offset_x">offset: </label>
39
- <input type="text" size="3" id="easy-watermark-position-offset_x" name="easy-watermark-settings-text[offset_x]" value="<?php echo $offset_x; ?>"/><p class="description"><?php _e('Offset can be defined in pixels (just numeric value) or as percentage (e.g. \'33%\')', 'easy-watermark'); ?></p>
40
- </td>
41
- </tr>
42
- -->
43
  <tr><th scope="row"><?php _e('Font', 'easy-watermark'); ?></th><td>
44
- <select name="easy-watermark-settings-text[font]">
45
  <?php
46
  foreach($fonts as $val => $name){
47
  ?>
@@ -52,18 +40,18 @@
52
  </select>
53
  </td>
54
  <tr><th scope="row"><?php _e('Text color', 'easy-watermark'); ?></th><td>
55
- <input type="hidden" maxlength="6" name="easy-watermark-settings-text[color]" id="easy-watermark-color" value="<?php echo $color; ?>" /><div id="colorselector"><div style="background-color:#<?php echo $color; ?>"></div></div>
56
  </td>
57
  <tr><th scope="row"><?php _e('Text size', 'easy-watermark'); ?></th><td>
58
- <input type="text" size="3" name="easy-watermark-settings-text[size]" id="easy-watermark-size" value="<?php echo $size; ?>" /> pt
59
  </td>
60
  </tr>
61
  <tr><th scope="row"><?php _e('Text angle', 'easy-watermark'); ?></th><td>
62
- <input type="text" size="3" name="easy-watermark-settings-text[angle]" id="easy-watermark-angle" value="<?php echo $angle; ?>" /> &deg;
63
  </td>
64
  </tr>
65
  <tr><th scope="row"><?php _e('Opacity', 'easy-watermark'); ?></th><td>
66
- <input type="text" size="3" name="easy-watermark-settings-text[opacity]" id="easy-watermark-angle" value="<?php echo $opacity; ?>" /> %
67
  </td>
68
  </tr>
69
  </table>
1
 
2
  <table class="form-table">
3
  <tr><th scope="row"><?php _e('Text', 'easy-watermark'); ?></th><td>
4
+ <input type="text" value="<?php echo $text; ?>" id="ew-text" name="easy-watermark-settings-text[text]" />
5
+ </td></tr>
6
+ <?php $class = empty($text) ? ' class="hidden"' : ''; ?>
7
+ <tr<?php echo $class; ?> id="ew-preview-row"><th scope="row"><?php _e('Preview', 'easy-watermark'); ?></th><td>
8
+ <div id="text-preview">
9
+ <img id="ew-text-preview" src="<?php echo admin_url('options-general.php?page=easy-watermark-settings&tp=1'); ?>">
10
+ </div>
11
+ </td></tr>
12
  <tr valign="top" class="watermark-options"><th scope="row"><?php _e('Text alignment', 'easy-watermark'); ?></th><td>
13
  <div id="alignmentbox">
14
  <label for="alignment-1" id="alignment-1-label"><input type="radio" name="easy-watermark-settings-text[alignment]" value="1" id="alignment-1" <?php checked('1', $alignment); ?> /></label>
24
  </td></tr>
25
  <tr valign="top" class="watermark-options"><th scope="row"><?php _e('Text offset', 'easy-watermark'); ?></th><td>
26
  <label for="easy-watermark-position-offset_x"><?php _e('x', 'easy-watermark'); ?>: </label>
27
+ <input size="3" type="text" id="easy-watermark-offset_x" name="easy-watermark-settings-text[offset_x]" value="<?php echo $offset_x; ?>" /><br />
28
  <label for="easy-watermark-position-offset_y"><?php _e('y', 'easy-watermark'); ?>: </label>
29
+ <input type="text" size="3" id="easy-watermark-offset_y" name="easy-watermark-settings-text[offset_y]" value="<?php echo $offset_y; ?>"/><p class="description"><?php _e('Offset can be defined in pixels (just numeric value) or as percentage (e.g. \'33%\')', 'easy-watermark'); ?></p>
30
  </td></tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  <tr><th scope="row"><?php _e('Font', 'easy-watermark'); ?></th><td>
32
+ <select name="easy-watermark-settings-text[font]" id="ew-font">
33
  <?php
34
  foreach($fonts as $val => $name){
35
  ?>
40
  </select>
41
  </td>
42
  <tr><th scope="row"><?php _e('Text color', 'easy-watermark'); ?></th><td>
43
+ <input type="hidden" maxlength="6" name="easy-watermark-settings-text[color]" id="ew-color" value="<?php echo $color; ?>" /><div id="colorselector"><div style="background-color:#<?php echo $color; ?>"></div></div>
44
  </td>
45
  <tr><th scope="row"><?php _e('Text size', 'easy-watermark'); ?></th><td>
46
+ <input type="text" size="3" name="easy-watermark-settings-text[size]" id="ew-size" value="<?php echo $size; ?>" /> pt
47
  </td>
48
  </tr>
49
  <tr><th scope="row"><?php _e('Text angle', 'easy-watermark'); ?></th><td>
50
+ <input type="text" size="3" name="easy-watermark-settings-text[angle]" id="ew-angle" value="<?php echo $angle; ?>" /> &deg;
51
  </td>
52
  </tr>
53
  <tr><th scope="row"><?php _e('Opacity', 'easy-watermark'); ?></th><td>
54
+ <input type="text" size="3" name="easy-watermark-settings-text[opacity]" id="ew-opacity" value="<?php echo $opacity; ?>" /> %
55
  </td>
56
  </tr>
57
  </table>
settings-form.php CHANGED
@@ -1,15 +1,24 @@
1
  <div class="wrap easy-watermark">
2
  <h2><?php _e('Easy Watermark Settings', 'easy-watermark'); ?></h2>
 
 
 
 
 
 
 
 
 
3
  <a href="<?php echo admin_url('/upload.php?page=easy-watermark'); ?>"><?php _e('Go to Easy Watermark Tool', 'easy-watermark'); ?></a>
 
 
 
 
 
 
 
4
  <form method="post" action="options.php" id="easy-watermark-settings-form">
5
  <?php settings_fields('easy-watermark-settings-' . $current_tab); ?>
6
- <h3 class="nav-tab-wrapper">
7
- <?php
8
- foreach ( $this->tabs as $name => $caption ) {
9
- $active = $current_tab == $name ? 'nav-tab-active' : '';
10
- echo '<a class="nav-tab ' . $active . '" href="?page=' . $this->plugin->getSlug() . '-settings&tab=' . $name . '">' . __($caption, 'easy-watermark') . '</a>';
11
- }
12
- ?></h3>
13
  <?php
14
  $filename = dirname(__FILE__) . '/settings-form-' . $current_tab . '.php';
15
  if(file_exists($filename))
1
  <div class="wrap easy-watermark">
2
  <h2><?php _e('Easy Watermark Settings', 'easy-watermark'); ?></h2>
3
+ <div id="donation-link">
4
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
5
+ <input type="hidden" name="cmd" value="_s-xclick">
6
+ <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----
7
+ ">
8
+ <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
9
+ <img alt="" border="0" src="https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif" width="1" height="1">
10
+ </form>
11
+ </div><!-- #donation-link -->
12
  <a href="<?php echo admin_url('/upload.php?page=easy-watermark'); ?>"><?php _e('Go to Easy Watermark Tool', 'easy-watermark'); ?></a>
13
+ <h3 class="nav-tab-wrapper">
14
+ <?php
15
+ foreach ( $this->tabs as $name => $caption ) {
16
+ $active = $current_tab == $name ? 'nav-tab-active' : '';
17
+ echo '<a class="nav-tab ' . $active . '" href="?page=' . $this->plugin->getSlug() . '-settings&tab=' . $name . '">' . __($caption, 'easy-watermark') . '</a>';
18
+ }
19
+ ?></h3>
20
  <form method="post" action="options.php" id="easy-watermark-settings-form">
21
  <?php settings_fields('easy-watermark-settings-' . $current_tab); ?>
 
 
 
 
 
 
 
22
  <?php
23
  $filename = dirname(__FILE__) . '/settings-form-' . $current_tab . '.php';
24
  if(file_exists($filename))