Image Watermark - Version 1.1.4

Version Description

  • New: Arabic translation, thanks to Hassan Hisham
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Image Watermark
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

image-watermark.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Image Watermark
4
  Description: Image Watermark allows you to automatically and manually watermark images uploaded to the WordPress Media Library.
5
- Version: 1.1.3
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
@@ -613,7 +613,7 @@ class Image_Watermark
613
  <input id="df_option_everywhere" type="radio" name="df_watermark_cpt_on" value="everywhere" <?php echo ($first_checked === TRUE ? 'checked="checked"' : ''); ?>/><label for="df_option_everywhere"><?php _e('everywhere', 'image-watermark'); ?></label>
614
  <input id="df_option_cpt" type="radio" name="df_watermark_cpt_on" value="specific" <?php echo ($second_checked === TRUE ? 'checked="checked"' : ''); ?> /><label for="df_option_cpt"><?php _e('on selected post types only', 'image-watermark'); ?></label>
615
  </div>
616
- <div id="cpt-select" <? echo ($second_checked === FALSE ? 'style="display: none;"' : ''); ?>>
617
  <?php foreach($this->getCustomPostTypes() as $cpt) : ?>
618
  <input name="df_watermark_cpt_on_type[<?php echo $cpt; ?>]" type="checkbox" id="<?php echo $cpt; ?>" value="1" <?php echo (in_array($cpt, $watermark_cpt_on) ? ' checked="checked"' : ''); ?> />
619
  <label for="<?php echo $cpt; ?>"><?php echo $cpt; ?></label>
@@ -689,7 +689,7 @@ class Image_Watermark
689
  <?php if($imageSelected === TRUE) {
690
  $image = wp_get_attachment_image_src($watermark_image['url'], array(300, 300), FALSE);
691
  ?>
692
- <img id="previewImg_image" src="<? echo $image[0]; ?>" alt="" width="300" />
693
  <?php } else { ?>
694
  <img id="previewImg_image" src="" alt="" width="300" style="display: none;" />
695
  <?php } ?>
2
  /*
3
  Plugin Name: Image Watermark
4
  Description: Image Watermark allows you to automatically and manually watermark images uploaded to the WordPress Media Library.
5
+ Version: 1.1.4
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
613
  <input id="df_option_everywhere" type="radio" name="df_watermark_cpt_on" value="everywhere" <?php echo ($first_checked === TRUE ? 'checked="checked"' : ''); ?>/><label for="df_option_everywhere"><?php _e('everywhere', 'image-watermark'); ?></label>
614
  <input id="df_option_cpt" type="radio" name="df_watermark_cpt_on" value="specific" <?php echo ($second_checked === TRUE ? 'checked="checked"' : ''); ?> /><label for="df_option_cpt"><?php _e('on selected post types only', 'image-watermark'); ?></label>
615
  </div>
616
+ <div id="cpt-select" <?php echo ($second_checked === FALSE ? 'style="display: none;"' : ''); ?>>
617
  <?php foreach($this->getCustomPostTypes() as $cpt) : ?>
618
  <input name="df_watermark_cpt_on_type[<?php echo $cpt; ?>]" type="checkbox" id="<?php echo $cpt; ?>" value="1" <?php echo (in_array($cpt, $watermark_cpt_on) ? ' checked="checked"' : ''); ?> />
619
  <label for="<?php echo $cpt; ?>"><?php echo $cpt; ?></label>
689
  <?php if($imageSelected === TRUE) {
690
  $image = wp_get_attachment_image_src($watermark_image['url'], array(300, 300), FALSE);
691
  ?>
692
+ <img id="previewImg_image" src="<?php echo $image[0]; ?>" alt="" width="300" />
693
  <?php } else { ?>
694
  <img id="previewImg_image" src="" alt="" width="300" style="display: none;" />
695
  <?php } ?>
languages/image-watermark-ar.mo ADDED
Binary file
languages/image-watermark-ar.pot ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WordPress Watermark\n"
4
+ "POT-Creation-Date: 2013-06-11 13:16+0100\n"
5
+ "PO-Revision-Date: 2013-08-13 08:17+0300\n"
6
+ "Last-Translator: Hassan\n"
7
+ "Language-Team: dFactory <info@dfactory.pl>\n"
8
+ "Language: English\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.7\n"
13
+ "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;esc_attr__;esc_attr_e;"
14
+ "_n:1,2\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
+ "X-Poedit-SearchPath-0: ..\n"
19
+
20
+ #: ../image-watermark.php:27
21
+ msgid ""
22
+ "Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or higher."
23
+ msgstr "عفوا، هذه الإضافة تتطلب على الأقل PHP 5.0 وووردبريس 3.5 أو أعلى."
24
+
25
+ #: ../image-watermark.php:164
26
+ msgid ""
27
+ "Watermark could not be applied to selected files or no valid images (JPEG, "
28
+ "PNG) were selected."
29
+ msgstr ""
30
+ "تعذر تطبيق العلامة المائية على الملفات المختارة أو لم يتم إختيار ملفات صحيحة "
31
+ "(JPEG, PNG)"
32
+
33
+ #: ../image-watermark.php:164 ../image-watermark.php:168
34
+ msgid "Skipped files"
35
+ msgstr "الملفات المتخطاة"
36
+
37
+ #: ../image-watermark.php:168
38
+ #, php-format
39
+ msgid "Watermark was succesfully applied to 1 image."
40
+ msgid_plural "Watermark was succesfully applied to %s images."
41
+ msgstr[0] "تم تطبيق العلامة المائية بنجاح على صورة واحدة."
42
+ msgstr[1] "تم تطبيق العلامة المائية بنجاح على %s صور."
43
+
44
+ #: ../image-watermark.php:234
45
+ msgid "Support"
46
+ msgstr "دعم"
47
+
48
+ #: ../image-watermark.php:256
49
+ msgid "Settings"
50
+ msgstr "إعدادات"
51
+
52
+ #: ../image-watermark.php:287
53
+ msgid "Apply watermark"
54
+ msgstr "تطبيق العلامة المائية"
55
+
56
+ #: ../image-watermark.php:311
57
+ msgid "Select watermark"
58
+ msgstr "اختر علامة مائية"
59
+
60
+ #: ../image-watermark.php:312 ../image-watermark.php:707
61
+ msgid "Original size"
62
+ msgstr "الحجم الأصلي"
63
+
64
+ #: ../image-watermark.php:313 ../image-watermark.php:701
65
+ msgid "Watermak has not been selected yet."
66
+ msgstr "لم يتم اختيار العلامة المائية بعد."
67
+
68
+ #: ../image-watermark.php:314
69
+ msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
70
+ msgstr "هذه الصورة غير مدعومة كعلامة مائية. استخدم JPEG, PNG or GIF."
71
+
72
+ #: ../image-watermark.php:316
73
+ msgid "Add watermark"
74
+ msgstr "أضف علامة مائية"
75
+
76
+ #: ../image-watermark.php:361
77
+ msgid "Image Watermark Options"
78
+ msgstr "خيارات العلامة المائية المصورة"
79
+
80
+ #: ../image-watermark.php:362
81
+ msgid "Watermark"
82
+ msgstr "العلامة المائية"
83
+
84
+ #: ../image-watermark.php:388
85
+ msgid "Image Watermark will not work properly without GD PHP extension."
86
+ msgstr "الإضافة لن تعمل بصورة صحيحة بدون ملحق GD PHP."
87
+
88
+ #: ../image-watermark.php:525
89
+ msgid "Settings saved."
90
+ msgstr "تم حفظ الإعدادات."
91
+
92
+ #: ../image-watermark.php:546
93
+ msgid "Watermark will not be applied when <b>watermark image is not set</b>."
94
+ msgstr ""
95
+ "لن يتم تطبيق العلامة المائية عندما تكون <b>العلامة المائية غير محددة</b>."
96
+
97
+ #: ../image-watermark.php:551
98
+ msgid "Watermark will not be applied when <b>no image sizes are selected</b>."
99
+ msgstr "لن يتم تطبيق العلامة المائية عندما لا تكون <b>أحجام الصور محددة</b>."
100
+
101
+ #: ../image-watermark.php:559
102
+ msgid "Image Watermark Settings"
103
+ msgstr "إعدادات العلامة المائية المصورة"
104
+
105
+ #: ../image-watermark.php:563
106
+ msgid "General settings"
107
+ msgstr "إعدادات عامة"
108
+
109
+ #: ../image-watermark.php:566
110
+ msgid "Automatic watermarking"
111
+ msgstr "تطبيق آلي للعلامة المائية"
112
+
113
+ #: ../image-watermark.php:570 ../image-watermark.php:586
114
+ msgid "on"
115
+ msgstr "تشغيل"
116
+
117
+ #: ../image-watermark.php:572 ../image-watermark.php:588
118
+ msgid "off"
119
+ msgstr "إيقاف"
120
+
121
+ #: ../image-watermark.php:575
122
+ msgid "Enable or disable watermark for uploaded images."
123
+ msgstr "تفعيل أو تعطيل العلامة المائية للصور المرفوعة."
124
+
125
+ #: ../image-watermark.php:582
126
+ msgid "Manual watermarking"
127
+ msgstr "تطبيق يدوي للعلامة المائية"
128
+
129
+ #: ../image-watermark.php:591
130
+ msgid "Enable or disable Apply Watermark option for images in Media Library."
131
+ msgstr "تفعيل أو تعطيل خيار تطبيق العلامة المائية للصور في مكتبة الوسائط."
132
+
133
+ #: ../image-watermark.php:598
134
+ msgid "Enable watermark for"
135
+ msgstr "تفعيل العلامة المائية لـ"
136
+
137
+ #: ../image-watermark.php:607
138
+ msgid ""
139
+ "Check image sizes on which watermark should appear. <b>Notice:</b> checking "
140
+ "full size is not recommened as it's the original image."
141
+ msgstr ""
142
+ "اختر أحجام الصور التي يجب أن تظهر فيها العلامة المائية. <b>تنبيه:</b> اختيار "
143
+ "الحجم الكامل (full size) غير موصى به لأنها الصورة الأصلية."
144
+
145
+ #: ../image-watermark.php:613
146
+ msgid "everywhere"
147
+ msgstr "في أي مكان"
148
+
149
+ #: ../image-watermark.php:614
150
+ msgid "on selected post types only"
151
+ msgstr "في أنواع التدوينات المختارة فقط"
152
+
153
+ #: ../image-watermark.php:622
154
+ msgid ""
155
+ "Check custom post types on which watermark should be applied to uploaded "
156
+ "images."
157
+ msgstr ""
158
+ "اختر أنواع التدوينات التي يجب أن يتم تطبيق العلامة المائية على الصور "
159
+ "المرفوعة فيها."
160
+
161
+ #: ../image-watermark.php:628
162
+ msgid "Watermark position"
163
+ msgstr "موضع العلامة المائية"
164
+
165
+ #: ../image-watermark.php:631
166
+ msgid "Watermark alignment"
167
+ msgstr "محاذاة العلامة المائية"
168
+
169
+ #: ../image-watermark.php:646
170
+ msgid "Choose the position of watermark image."
171
+ msgstr "اختر موضع العلامة المائية المصورة."
172
+
173
+ #: ../image-watermark.php:651
174
+ msgid "Watermark offset"
175
+ msgstr "تكفاؤ العلامة المائية"
176
+
177
+ #: ../image-watermark.php:654 ../image-watermark.php:734
178
+ msgid "x:"
179
+ msgstr "س:"
180
+
181
+ #: ../image-watermark.php:654 ../image-watermark.php:656
182
+ #: ../image-watermark.php:734 ../image-watermark.php:736
183
+ msgid "px"
184
+ msgstr "بكسل"
185
+
186
+ #: ../image-watermark.php:656 ../image-watermark.php:736
187
+ msgid "y:"
188
+ msgstr "ص:"
189
+
190
+ #: ../image-watermark.php:672 ../image-watermark.php:676
191
+ msgid "Watermark image"
192
+ msgstr "صورة العلامة المائية"
193
+
194
+ #: ../image-watermark.php:673
195
+ msgid ""
196
+ "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
197
+ msgstr ""
198
+ "قم بتعديل صورة العلامة المائية الخاصة بك. أنواع الملفات المسموح بها: JPEG, "
199
+ "PNG, GIF."
200
+
201
+ #: ../image-watermark.php:679
202
+ msgid "Select image"
203
+ msgstr "اختر صورة"
204
+
205
+ #: ../image-watermark.php:680
206
+ msgid "Turn off image"
207
+ msgstr "تعطيل الصورة"
208
+
209
+ #: ../image-watermark.php:681
210
+ msgid "You have to save changes after the selection or removal of the image."
211
+ msgstr "يجب عليك حفظ التغييرات بعد اختيار أو حذف الصور."
212
+
213
+ #: ../image-watermark.php:685
214
+ msgid "Watermark preview"
215
+ msgstr "معاينة العلامة المائية"
216
+
217
+ #: ../image-watermark.php:715
218
+ msgid "Watermark size"
219
+ msgstr "حجم العلامة المائية"
220
+
221
+ #: ../image-watermark.php:719
222
+ msgid "original"
223
+ msgstr "الأصل"
224
+
225
+ #: ../image-watermark.php:721
226
+ msgid "custom"
227
+ msgstr "مخصوص"
228
+
229
+ #: ../image-watermark.php:723
230
+ msgid "scaled"
231
+ msgstr "تناسب"
232
+
233
+ #: ../image-watermark.php:726
234
+ msgid "Select method of aplying watermark size."
235
+ msgstr "اختر طريقة تطبيق حجم العلامة المائية."
236
+
237
+ #: ../image-watermark.php:731
238
+ msgid "Watermark custom size"
239
+ msgstr "الحجم المخصوص للعلامة المائية"
240
+
241
+ #: ../image-watermark.php:738
242
+ msgid "Those dimensions will be used if \"custom\" method is selected above."
243
+ msgstr "سيتم استخدام هذه الأبعاد إذا تم اختيار الطريقة \"مخصوص\" أعلاه."
244
+
245
+ #: ../image-watermark.php:742
246
+ msgid "Scale of watermark in relation to image width"
247
+ msgstr "تناسب العلامة المائية بالنسبة لعرض الصورة"
248
+
249
+ #: ../image-watermark.php:747
250
+ msgid ""
251
+ "This value will be used if \"scaled\" method if selected above. <br />Enter "
252
+ "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
253
+ "width of the image it is applied to."
254
+ msgstr ""
255
+ "سيتم استخدام هذه القيمة إذا تم اختيار طريقة \"تناسب\" أعلاه. <br />أدخل رقما "
256
+ "بين 0 و 100. 100 تجعل عرض العلامة المائية مساويا لعرض الصورة المطبقة عليها."
257
+
258
+ #: ../image-watermark.php:751
259
+ msgid "Watermark transparency / opacity"
260
+ msgstr "شفافية / تعتيم العلامة المائية"
261
+
262
+ #: ../image-watermark.php:756
263
+ msgid ""
264
+ "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
265
+ "transparent, 100 shows it as is."
266
+ msgstr ""
267
+ "أدخل رقما بين 0 و 100. 0 تجعل العلامة المائية شفافة تماما، 100 تعرضها كما هي."
268
+
269
+ #: ../image-watermark.php:760
270
+ msgid "Image quality"
271
+ msgstr "جودة الصورة"
272
+
273
+ #: ../image-watermark.php:765
274
+ msgid "Set watermark image quality."
275
+ msgstr "اختر جودة صورة العلامة المائية."
276
+
277
+ #: ../image-watermark.php:769
278
+ msgid "Image format"
279
+ msgstr "تنسيق الصورة"
280
+
281
+ #: ../image-watermark.php:773
282
+ msgid "baseline"
283
+ msgstr "خط أساس"
284
+
285
+ #: ../image-watermark.php:775
286
+ msgid "progressive"
287
+ msgstr "تقدمي"
288
+
289
+ #: ../image-watermark.php:779
290
+ msgid "Select baseline or progressive image format."
291
+ msgstr "اختر تنسيق صورة بين خط أساس أو تقدمي."
292
+
293
+ #: ../image-watermark.php:785
294
+ msgid "Image protection"
295
+ msgstr "حماية الصورة"
296
+
297
+ #: ../image-watermark.php:788
298
+ msgid "Disable right mouse click on images"
299
+ msgstr "تعطيل النقر بزر الفأرة الأيمن على الصور"
300
+
301
+ #: ../image-watermark.php:792
302
+ msgid "Prevent drag and drop"
303
+ msgstr "منع السحب والإلقاء"
304
+
305
+ #: ../image-watermark.php:796
306
+ msgid "Enable image protection for logged-in users also"
307
+ msgstr "تفعيل حماية الصور للمستخدمين المسجلي الدخول أيضا"
308
+
309
+ #: ../image-watermark.php:801
310
+ msgid "Save Changes"
311
+ msgstr "حفظ التغييرات"
312
+
313
+ #: ../image-watermark.php:807
314
+ msgid "Image Watermark"
315
+ msgstr "العلامة المائية المصورة"
316
+
317
+ #: ../image-watermark.php:809
318
+ msgid "Need support?"
319
+ msgstr "تحتاج لدعم؟"
320
+
321
+ #: ../image-watermark.php:810
322
+ msgid ""
323
+ "If you are having problems with this plugin, please talk about them in the"
324
+ msgstr "إذا كانت لديك مشاكل مع هذه الإضافة، الرجاء مناقشتها في"
325
+
326
+ #: ../image-watermark.php:810
327
+ msgid "Support forum"
328
+ msgstr "منتدى الدعم"
329
+
330
+ #: ../image-watermark.php:812
331
+ msgid "Do you like this plugin?"
332
+ msgstr "هل أعجبتك هذه الإضافة؟"
333
+
334
+ #: ../image-watermark.php:813
335
+ msgid "Rate it 5"
336
+ msgstr "اعطها تصنيف 5"
337
+
338
+ #: ../image-watermark.php:813
339
+ msgid "on WordPress.org"
340
+ msgstr "على WordPress.org"
341
+
342
+ #: ../image-watermark.php:814
343
+ msgid "Blog about it & link to the"
344
+ msgstr "اكتب تدوينة عنها وأضف رابطا إلى"
345
+
346
+ #: ../image-watermark.php:814
347
+ msgid "plugin page"
348
+ msgstr "صفحة الإضافة"
349
+
350
+ #: ../image-watermark.php:815
351
+ msgid "Check out our other"
352
+ msgstr "انظر ما لدينا من"
353
+
354
+ #: ../image-watermark.php:815
355
+ msgid "WordPress plugins"
356
+ msgstr "إضافات ووردبريس"
357
+
358
+ #: ../image-watermark.php:819
359
+ msgid "Created by"
360
+ msgstr "صنع بواسطة"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
  Tags: image, images, picture, photo, watermark, watermarking, protection, image protection, image security, plugin
5
  Requires at least: 3.5
6
- Tested up to: 3.5.1
7
- Stable tag: 1.1.3
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -34,6 +34,11 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
34
  * Disable image protection for logged-in users
35
  * .pot file for translations included
36
 
 
 
 
 
 
37
 
38
  == Installation ==
39
 
@@ -53,6 +58,9 @@ No questions yet.
53
 
54
  == Changelog ==
55
 
 
 
 
56
  = 1.1.3 =
57
  * New: Introducing API hooks: iw_before_apply_watermark, iw_after_apply_watermark, iw_watermark_options
58
  * Fix: Wrong watermark watermark path
@@ -97,6 +105,5 @@ Initial release
97
 
98
  == Upgrade Notice ==
99
 
100
- = 1.1.2 =
101
-
102
- Final fix (hopefully) for getimagesize() error and wrong watermark file path
3
  Donate link: http://www.dfactory.eu/
4
  Tags: image, images, picture, photo, watermark, watermarking, protection, image protection, image security, plugin
5
  Requires at least: 3.5
6
+ Tested up to: 3.6
7
+ Stable tag: 1.1.4
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
34
  * Disable image protection for logged-in users
35
  * .pot file for translations included
36
 
37
+ = Translations: =
38
+
39
+ * Arabic - by Hassan Hisham
40
+ * Polish - by Bartosz Arendt
41
+
42
 
43
  == Installation ==
44
 
58
 
59
  == Changelog ==
60
 
61
+ = 1.1.4 =
62
+ * New: Arabic translation, thanks to Hassan Hisham
63
+
64
  = 1.1.3 =
65
  * New: Introducing API hooks: iw_before_apply_watermark, iw_after_apply_watermark, iw_watermark_options
66
  * Fix: Wrong watermark watermark path
105
 
106
  == Upgrade Notice ==
107
 
108
+ = 1.1.4 =
109
+ New: Arabic translation, thanks to Hassan Hisham