Image Watermark - Version 1.3.0

Version Description

  • Tweak: Manual watermarking now works even if selected post types are selected
  • Tweak: UI improvements for WP 3.8
  • Fix: Image protection options not saving properly
Download this release

Release Info

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

Code changes from version 1.2.1 to 1.3.0

css/image-watermark.css CHANGED
@@ -1,37 +1,22 @@
1
- #image-watermark { max-width:70%; margin-right:20px; }
2
- #image-watermark h3 { font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif; font-weight: bold; }
3
- #image-watermark hr, #df-credits hr { border: solid #ddd; border-width: 1px 0 0; clear: both; height: 0; -moz-box-shadow: 0px 1px 0px #fff; -webkit-box-shadow: 0px 1px 0px #fff; box-shadow: 0px 1px 0px #fff; margin:15px 0; }
4
- #watermark-submit { margin:20px 0; }
5
- #watermark-position-table, #watermark-protection-table { margin-bottom:20px; }
6
- #df-credits { width:25%; min-width:200px; max-width:350px; border:1px solid #ddd; background:#fcfcfc; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;}
7
- #df-credits h3 { margin-top:5px; }
8
- #df-credits h3.metabox-title {
9
- background: #f9f9f9 url(images/bg_fallback.png) 0 -50px repeat-x; /* Old browsers */
10
- background: -moz-linear-gradient(top, #2e9fd2 0%, #21759B 100%); /* FF3.6+ */
11
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2e9fd2), color-stop(100%,#21759B)); /* Chrome,Safari4+ */
12
- background: -webkit-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Chrome10+,Safari5.1+ */
13
- background: -o-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* Opera11.10+ */
14
- background: -ms-linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* IE10+ */
15
- background: linear-gradient(top, #2e9fd2 0%,#21759B 100%); /* W3C */
16
- -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
17
- -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
18
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
19
- border: 1px solid;
20
- border-color: #21759b;
21
- border-bottom-color: #1e6a8d;
22
- -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
23
- box-shadow: inset 0 1px 0 rgba(120,200,230,0.5);
24
- color: #fff;
25
- text-decoration: none;
26
- text-shadow: 0 1px 0 rgba(0,0,0,0.5);
27
- margin:0;
28
- line-height:32px;
29
- font-weight:normal;
30
- padding:0 10px;
31
  }
32
- #df-credits .inner { padding:15px 10px; }
33
- #df-credits .df-link { font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif; font-style:italic; margin:0; }
34
- #df-credits .df-link a { vertical-align: middle; padding: 5px 0 0 7px; }
35
  #cpt-select { margin-top: 5px; }
36
  .wplike-slider span.middle { width: 150px; }
37
  .wplike-slider span.left { margin-right: 10px; }
1
+ /* Image Watermark settings */
2
+ .df-credits { float: right; width: 280px; background: #fff; margin: 20px -300px 20px 20px; position: relative; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); }
3
+ .df-credits .inner { padding-left: 10px; padding-right: 10px; }
4
+ .df-credits h3 { font-size: 14px; line-height: 1.4; margin: 0; padding: 8px 12px; border-bottom: 1px solid #eee; }
5
+ .df-credits .df-link { font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; font-style:italic; padding-bottom: 10px; margin: 0; }
6
+ .df-credits .df-link a { vertical-align: middle; padding: 5px 0 0 4px; }
7
+ .image-watermark-settings { margin-right: 300px; }
8
+ .image-watermark-settings hr, .df-credits hr { border: solid #eee; border-width: 1px 0 0; clear: both; height: 0; }
9
+ .image-watermark-settings form { float: left; min-width: 463px; width: auto; }
10
+ .image-watermark-settings fieldset span.description { margin-bottom: 8px; margin-top: 4px; display: block; }
11
+ .image-watermark-settings.ui-button { margin-bottom: 5px; }
12
+ .image-watermark-settings .description { font-size: 13px; margin-bottom: 8px; }
13
+
14
+ /* All Mobile Sizes (devices and browser) */
15
+ @media only screen and (max-width: 959px) {
16
+ .df-credits { width: 100%; float: none; margin: 20px 0; }
17
+ .image-watermark-settings { margin-right: 0; }
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  }
19
+
 
 
20
  #cpt-select { margin-top: 5px; }
21
  .wplike-slider span.middle { width: 150px; }
22
  .wplike-slider span.left { margin-right: 10px; }
image-watermark.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Image Watermark
4
  Description: Image Watermark allows you to automatically watermark images uploaded to the WordPress Media Library and bulk watermark previously uploaded images.
5
- Version: 1.2.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
@@ -69,7 +69,7 @@ class Image_Watermark
69
  'draganddrop' => 0,
70
  'forlogged' => 0,
71
  ),
72
- 'version' => '1.2.0'
73
  );
74
 
75
 
@@ -172,7 +172,7 @@ class Image_Watermark
172
  $location = add_query_arg('paged', $wp_list_table->get_pagenum(), $location);
173
 
174
  //do we have selected attachments?
175
- if(isset($_REQUEST['media']) && !empty($_REQUEST['media']))
176
  {
177
  $watermarked = $skipped = 0;
178
 
@@ -186,7 +186,8 @@ class Image_Watermark
186
  $this->apply_watermark($data, 'manual');
187
  $watermarked++;
188
  }
189
- else $skipped++;
 
190
  }
191
 
192
  $location = add_query_arg(array('watermarked' => $watermarked, 'skipped' => $skipped), $location);
@@ -384,10 +385,12 @@ class Image_Watermark
384
  {
385
  $options = get_option('df_image_protection');
386
 
 
 
 
 
387
  if(($options['forlogged'] == 0 && is_user_logged_in()) || ($options['draganddrop'] == 0 && $options['rightclick'] == 0))
388
- {
389
  return;
390
- }
391
 
392
  wp_enqueue_script(
393
  'no-right-click',
@@ -562,9 +565,9 @@ class Image_Watermark
562
  foreach($this->_options[$option] as $protection => $value_p)
563
  {
564
  if(in_array($protection, array_keys($_POST[$option])))
565
- {
566
  $tmp[$protection] = 1;
567
- }
 
568
  }
569
 
570
  update_option($option, $tmp);
@@ -633,314 +636,314 @@ class Image_Watermark
633
  <div class="wrap">
634
  <div id="icon-options-general" class="icon32"><br /></div>
635
  <h2><?php echo __('Image Watermark Settings', 'image-watermark'); ?></h2>
636
- <div id="image-watermark" class="postbox-container">
637
- <div class="metabox-holder">
638
- <form method="post" action="">
639
- <h3><?php echo __('General settings', 'image-watermark'); ?></h3>
640
- <table id="watermark-general-table" class="form-table">
641
- <tr valign="top">
642
- <th scope="row"><?php echo __('Automatic watermarking', 'image-watermark'); ?></th>
643
- <td class="wr_width">
644
- <fieldset class="wr_width">
645
- <div id="run-watermark">
646
- <label for="plugin_on"><?php echo __('on', 'image-watermark'); ?></label>
647
- <input type="radio" id="plugin_on" value="0" name="df_watermark_image[plugin_off]" <?php checked($watermark_image['plugin_off'], 0, TRUE); ?> />
648
- <label for="plugin_off"><?php echo __('off', 'image-watermark'); ?></label>
649
- <input type="radio" id="plugin_off" value="1" name="df_watermark_image[plugin_off]" <?php checked($watermark_image['plugin_off'], 1, TRUE); ?> />
650
- </div>
651
- <p class="howto"><?php echo __('Enable or disable watermark for uploaded images.', 'image-watermark'); ?></p>
652
- </fieldset>
653
- </td>
654
- </tr>
655
- </table>
656
- <table id="watermark-manual-table" class="form-table">
657
- <tr valign="top">
658
- <th scope="row"><?php echo __('Manual watermarking', 'image-watermark'); ?></th>
659
- <td class="wr_width">
660
- <fieldset class="wr_width">
661
- <div id="run-manual-watermark">
662
- <label for="manual_watermarking_on"><?php echo __('on', 'image-watermark'); ?></label>
663
- <input type="radio" id="manual_watermarking_on" value="1" name="df_watermark_image[manual_watermarking]" <?php checked($watermark_image['manual_watermarking'], 1, TRUE); ?> />
664
- <label for="manual_watermarking_off"><?php echo __('off', 'image-watermark'); ?></label>
665
- <input type="radio" id="manual_watermarking_off" value="0" name="df_watermark_image[manual_watermarking]" <?php checked($watermark_image['manual_watermarking'], 0, TRUE); ?> />
666
- </div>
667
- <p class="howto"><?php echo __('Enable or disable Apply Watermark option for images in Media Library.', 'image-watermark'); ?></p>
668
- </fieldset>
669
- </td>
670
- </tr>
671
- </table>
672
- <table id="watermark-for-table" class="form-table">
673
- <tr valign="top">
674
- <th scope="row"><?php echo __('Enable watermark for', 'image-watermark'); ?></th>
675
- <td class="wr_width">
676
- <fieldset class="wr_width">
677
- <div id="thumbnail-select">
678
- <?php foreach($this->_image_sizes as $image_size) : ?>
679
- <input name="df_watermark_on[<?php echo $image_size; ?>]" type="checkbox" id="<?php echo $image_size; ?>" value="1" <?php echo (in_array($image_size, array_keys($watermark_on)) ? ' checked="checked"' : ''); ?> />
680
- <label for="<?php echo $image_size; ?>"><?php echo $image_size; ?></label>
681
- <?php endforeach; ?>
682
- </div>
683
- <p class="howto"><?php echo __('Check image sizes on which watermark should appear. <b>Notice:</b> checking full size is not recommened as it\'s the original image.', 'image-watermark'); ?></p>
684
- <?php $watermark_cpt_on = array_keys(get_option('df_watermark_cpt_on'));
685
- if(in_array('everywhere', $watermark_cpt_on) && count($watermark_cpt_on) === 1)
686
- { $first_checked = TRUE; $second_checked = FALSE; $watermark_cpt_on = array(); }
687
- else { $first_checked = FALSE; $second_checked = TRUE; } ?>
688
- <div id="cpt-specific">
689
- <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>
690
- <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>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
691
  </div>
692
- <div id="cpt-select" <?php echo ($second_checked === FALSE ? 'style="display: none;"' : ''); ?>>
693
- <?php foreach($this->getCustomPostTypes() as $cpt) : ?>
694
- <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"' : ''); ?> />
695
- <label for="<?php echo $cpt; ?>"><?php echo $cpt; ?></label>
696
- <?php endforeach; ?>
697
- </div>
698
- <p class="howto"><?php echo __('Check custom post types on which watermark should be applied to uploaded images.', 'image-watermark'); ?></p>
699
- </fieldset>
700
- </td>
701
- </tr>
702
- </table>
703
- <table id="watermark-general-table-front" class="form-table">
704
- <tr valign="top">
705
- <th scope="row"><?php echo __('Automatic frontend watermarking', 'image-watermark'); ?></th>
706
- <td class="wr_width">
707
- <fieldset class="wr_width">
708
- <div id="run-watermark-front">
709
- <label for="frontend_active"><?php echo __('on', 'image-watermark'); ?></label>
710
- <input type="radio" id="frontend_active" value="1" name="df_watermark_image[frontend_active]" <?php checked($watermark_image['frontend_active'], TRUE, TRUE); ?> />
711
- <label for="frontend_inactive"><?php echo __('off', 'image-watermark'); ?></label>
712
- <input type="radio" id="frontend_inactive" value="0" name="df_watermark_image[frontend_active]" <?php checked($watermark_image['frontend_active'], FALSE, TRUE); ?> />
713
- </div>
714
- <p class="howto"><?php echo __('Enable or disable watermark for frontend image uploading. (uploading script is not included, but you may use a plugin or custom code). Notice: This functionality works only if uploaded images are processed using WordPress native upload methods.', 'image-watermark'); ?></p>
715
- </fieldset>
716
- </td>
717
- </tr>
718
- </table>
719
- <table id="watermark-general-table-deactivation" class="form-table">
720
- <tr valign="top">
721
- <th scope="row"><?php echo __('Plugin deactivation', 'image-watermark'); ?></th>
722
- <td class="wr_width">
723
- <fieldset class="wr_width">
724
- <div id="deactivation-delete">
725
- <label for="deactivate_on"><?php echo __('on', 'image-watermark'); ?></label>
726
- <input type="radio" id="deactivate_on" value="1" name="df_watermark_image[deactivation_delete]" <?php checked($watermark_image['deactivation_delete'], TRUE, TRUE); ?> />
727
- <label for="deactivate_off"><?php echo __('off', 'image-watermark'); ?></label>
728
- <input type="radio" id="deactivate_off" value="0" name="df_watermark_image[deactivation_delete]" <?php checked($watermark_image['deactivation_delete'], FALSE, TRUE); ?> />
729
- </div>
730
- <p class="howto"><?php echo __('Delete all database settings on plugin deactivation.', 'image-watermark'); ?></p>
731
- </fieldset>
732
- </td>
733
- </tr>
734
- </table>
735
- <hr />
736
- <h3><?php echo __('Watermark position', 'image-watermark'); ?></h3>
737
- <table id="watermark-position-table" class="form-table">
738
- <tr valign="top">
739
- <th scope="row"><?php echo __('Watermark alignment','image-watermark'); ?></th>
740
- <td>
741
- <fieldset>
742
- <table id="watermark_position" border="1">
743
- <?php $watermark_position = $watermark_image['position']; ?>
744
- <?php foreach($this->_watermark_positions['y'] as $y) : ?>
745
- <tr>
746
- <?php foreach($this->_watermark_positions['x'] as $x) : ?>
747
- <td title="<?php echo ucfirst($y . ' ' . $x); ?>">
748
- <input name="df_watermark_image[position]" type="radio" value="<?php echo $y . '_' . $x; ?>"<?php echo ($watermark_position == $y . '_' . $x ? ' checked="checked"' : NULL); ?> />
749
- </td>
750
- <?php endforeach; ?>
751
- </tr>
752
  <?php endforeach; ?>
753
- </table>
754
- <p class="howto"><?php echo __('Choose the position of watermark image.','image-watermark'); ?></p>
755
- </fieldset>
756
- </td>
757
- </tr>
758
- <tr valign="top">
759
- <th scope="row"><?php echo __('Watermark offset','image-watermark'); ?></th>
760
- <td>
761
- <fieldset>
762
- <?php echo __('x:','image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[offset_width]" value="<?php echo $watermark_image['offset_width']; ?>"> <?php echo __('px','image-watermark'); ?>
763
- <br />
764
- <?php echo __('y:','image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[offset_height]" value="<?php echo $watermark_image['offset_height']; ?>"> <?php echo __('px','image-watermark'); ?>
765
- </fieldset>
766
- </td>
767
- </tr>
768
- </table>
769
- <hr />
770
-
771
- <?php
772
- if($watermark_image['url'] !== NULL && $watermark_image['url'] != 0)
773
- {
774
- $image = wp_get_attachment_image_src($watermark_image['url'], array(300, 300), FALSE);
775
- $imageSelected = TRUE;
776
- }
777
- else $imageSelected = FALSE;
778
- ?>
779
-
780
- <h3><?php echo __('Watermark image','image-watermark'); ?></h3>
781
- <p class="howto"><?php echo __('Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF.','image-watermark'); ?></p>
782
- <table id="watermark-image-table" class="form-table">
783
- <tr valign="top">
784
- <th scope="row"><?php echo __('Watermark image','image-watermark'); ?></th>
785
- <td>
786
- <input id="upload_image" type="hidden" name="df_watermark_image[url]" value="<?php echo (int)$watermark_image['url']; ?>" />
787
- <input id="upload_image_button" type="button" class="button button-secondary" value="<?php echo __('Select image','image-watermark'); ?>" />
788
- <input id="turn_off_image_button" type="button" class="button button-secondary" value="<?php echo __('Turn off image','image-watermark'); ?>" <?php if($imageSelected === FALSE) echo 'disabled="disabled"'; ?>/>
789
- <p class="howto"><?php _e('You have to save changes after the selection or removal of the image.', 'image-watermark'); ?></p>
790
- </td>
791
- </tr>
792
- <tr valign="top">
793
- <th scope="row"><?php echo __('Watermark preview', 'image-watermark'); ?></th>
794
- <td class="wr_width">
795
- <fieldset class="wr_width">
796
- <div id="previewImg_imageDiv">
797
- <?php if($imageSelected === TRUE) {
798
- $image = wp_get_attachment_image_src($watermark_image['url'], array(300, 300), FALSE);
799
- ?>
800
- <img id="previewImg_image" src="<?php echo $image[0]; ?>" alt="" width="300" />
801
- <?php } else { ?>
802
- <img id="previewImg_image" src="" alt="" width="300" style="display: none;" />
803
- <?php } ?>
804
- </div>
805
- <p id="previewImageInfo" class="howto">
806
- <?php
807
- if($imageSelected === FALSE)
808
- {
809
- _e('Watermak has not been selected yet.', 'image-watermark');
810
- }
811
- else
812
- {
813
- $imageFullSize = wp_get_attachment_image_src($watermark_image['url'], 'full', FALSE);
814
 
815
- _e('Original size', 'image-watermark').': '.$imageFullSize[1].' px / '.$imageFullSize[2].' px';
816
- }
817
- ?>
818
- </p>
819
- </fieldset>
820
- </td>
821
- </tr>
822
- <tr valign="top">
823
- <th scope="row"><?php _e('Watermark size', 'image-watermark'); ?></th>
824
- <td class="wr_width">
825
- <fieldset class="wr_width">
826
- <div id="watermark-type">
827
- <label for="type1"><?php _e('original', 'image-watermark'); ?></label>
828
- <input type="radio" id="type1" value="0" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 0, TRUE); ?> />
829
- <label for="type2"><?php _e('custom', 'image-watermark'); ?></label>
830
- <input type="radio" id="type2" value="1" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 1, TRUE); ?> />
831
- <label for="type3"><?php _e('scaled', 'image-watermark'); ?></label>
832
- <input type="radio" id="type3" value="2" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 2, TRUE); ?> />
833
- </div>
834
- <p class="howto"><?php _e('Select method of aplying watermark size.', 'image-watermark'); ?></p>
835
- </fieldset>
836
- </td>
837
- </tr>
838
- <tr valign="top" id="watermark_size_custom">
839
- <th scope="row"><?php _e('Watermark custom size', 'image-watermark'); ?></th>
840
- <td class="wr_width">
841
- <fieldset class="wr_width">
842
- <?php _e('x:', 'image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[absolute_width]" value="<?php echo $watermark_image['absolute_width']; ?>"> <?php _e('px', 'image-watermark'); ?>
843
- <br />
844
- <?php _e('y:', 'image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[absolute_height]" value="<?php echo $watermark_image['absolute_height']; ?>"> <?php _e('px','image-watermark'); ?>
845
- </fieldset>
846
- <p class="howto"><?php _e('Those dimensions will be used if "custom" method is selected above.', 'image-watermark'); ?></p>
847
- </td>
848
- </tr>
849
- <tr valign="top" id="watermark_size_scale">
850
- <th scope="row"><?php _e('Scale of watermark in relation to image width', 'image-watermark'); ?></th>
851
- <td class="wr_width">
852
- <fieldset class="wr_width">
853
- <div>
854
- <input type="text" id="iw_size_input" maxlength="3" class="hide-if-js" name="df_watermark_image[width]" value="<?php echo $watermark_image['width']; ?>" />
855
- <div class="wplike-slider">
856
- <span class="left hide-if-no-js">0</span><span class="middle" id="iw_size_span" title="<?php echo $watermark_image['width']; ?>"></span><span class="right hide-if-no-js">100</span>
857
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
858
  </div>
859
- </fieldset>
860
- <p class="howto"><?php _e('This value will be used if "scaled" method if selected above. <br />Enter a number ranging from 0 to 100. 100 makes width of watermark image equal to width of the image it is applied to.', 'image-watermark'); ?></p>
861
- </td>
862
- </tr>
863
- <tr valign="top">
864
- <th scope="row"><?php _e('Watermark transparency / opacity', 'image-watermark'); ?></th>
865
- <td class="wr_width">
866
- <fieldset class="wr_width">
867
- <div>
868
- <input type="text" id="iw_opacity_input" maxlength="3" class="hide-if-js" name="df_watermark_image[transparent]" value="<?php echo $watermark_image['transparent']; ?>" />
869
- <div class="wplike-slider">
870
- <span class="left hide-if-no-js">0</span><span class="middle" id="iw_opacity_span" title="<?php echo $watermark_image['transparent']; ?>"></span><span class="right hide-if-no-js">100</span>
871
- </div>
872
  </div>
873
- </fieldset>
874
- <p class="howto"><?php _e('Enter a number ranging from 0 to 100. 0 makes watermark image completely transparent, 100 shows it as is.', 'image-watermark'); ?></p>
875
- </td>
876
- </tr>
877
- <tr valign="top">
878
- <th scope="row"><?php _e('Image quality', 'image-watermark'); ?></th>
879
- <td class="wr_width">
880
- <fieldset class="wr_width">
881
- <div>
882
- <input type="text" id="iw_quality_input" maxlength="3" class="hide-if-js" name="df_watermark_image[quality]" value="<?php echo $watermark_image['quality']; ?>" />
883
- <div class="wplike-slider">
884
- <span class="left hide-if-no-js">0</span><span class="middle" id="iw_quality_span" title="<?php echo $watermark_image['quality']; ?>"></span><span class="right hide-if-no-js">100</span>
885
- </div>
886
  </div>
887
- </fieldset>
888
- <p class="howto"><?php _e('Set output image quality.', 'image-watermark'); ?></p>
889
- </td>
890
- </tr>
891
- <tr valign="top">
892
- <th scope="row"><?php _e('Image format', 'image-watermark'); ?></th>
893
- <td class="wr_width">
894
- <fieldset class="wr_width">
895
- <div id="jpeg-format">
896
- <label for="baseline"><?php _e('baseline', 'image-watermark'); ?></label>
897
- <input type="radio" id="baseline" value="baseline" name="df_watermark_image[jpeg_format]" <?php checked($watermark_image['jpeg_format'], 'baseline', TRUE); ?> />
898
- <label for="progressive"><?php _e('progressive', 'image-watermark'); ?></label>
899
- <input type="radio" id="progressive" value="progressive" name="df_watermark_image[jpeg_format]" <?php checked($watermark_image['jpeg_format'], 'progressive', TRUE); ?> />
900
- </div>
901
- </fieldset>
902
- <p class="howto"><?php _e('Select baseline or progressive image format.', 'image-watermark'); ?></p>
903
- </td>
904
- </tr>
905
- </table>
906
- <input type="hidden" name="action" value="update" />
907
- <hr />
908
- <h3><?php _e('Image protection', 'image-watermark'); ?></h3>
909
- <table id="watermark-protection-table" class="form-table">
910
- <tr>
911
- <th><?php _e('Disable right mouse click on images', 'image-watermark'); ?></th>
912
- <td><input type="checkbox" <?php checked($image_protection['rightclick'], 1, TRUE); ?> value="1" name="df_image_protection[rightclick]"></td>
913
- </tr>
914
- <tr>
915
- <th><?php _e('Prevent drag and drop', 'image-watermark'); ?></th>
916
- <td><input type="checkbox" <?php checked($image_protection['draganddrop'], 1, TRUE); ?> value="1" name="df_image_protection[draganddrop]"></td>
917
- </tr>
918
- <tr>
919
- <th><?php _e('Enable image protection for logged-in users also', 'image-watermark'); ?></th>
920
- <td><input type="checkbox" <?php checked($image_protection['forlogged'], 1, TRUE); ?> value="1" name="df_image_protection[forlogged]"></td>
921
- </tr>
922
- </table>
923
- <hr />
924
- <input type="submit" id="watermark-submit" class="button button-primary" name="submit" value="<?php _e('Save Changes', 'image-watermark'); ?>" />
925
- <input type="submit" id="watermark-reset" class="button button-secondary" name="reset" value="<?php _e('Reset to defaults', 'image-watermark'); ?>" />
926
- </form>
927
- </div>
928
- </div>
929
- <div id="df-credits" class="postbox-container">
930
- <h3 class="metabox-title"><?php _e('Image Watermark', 'image-watermark'); ?></h3>
931
- <div class="inner">
932
- <h3><?php _e('Need support?', 'image-watermark'); ?></h3>
933
- <p><?php _e('If you are having problems with this plugin, please talk about them in the', 'image-watermark'); ?> <a href="http://dfactory.eu/support/" target="_blank" title="<?php _e('Support forum', 'image-watermark'); ?>"><?php _e('Support forum', 'image-watermark'); ?></a></p>
934
  <hr />
935
- <h3><?php _e('Do you like this plugin?', 'image-watermark'); ?></h3>
936
- <p><a href="http://wordpress.org/support/view/plugin-reviews/image-watermark?filter=5" target="_blank" title="<?php _e('Rate it 5', 'image-watermark'); ?>"><?php _e('Rate it 5', 'image-watermark'); ?></a> <?php _e('on WordPress.org', 'image-watermark'); ?><br />
937
- <?php _e('Blog about it & link to the','image-watermark'); ?> <a href="http://dfactory.eu/plugins/image-watermark/" target="_blank" title="<?php _e('plugin page', 'image-watermark'); ?>"><?php _e('plugin page', 'image-watermark'); ?></a><br />
938
- <?php _e('Check out our other', 'image-watermark'); ?> <a href="http://dfactory.eu/plugins/" target="_blank" title="<?php _e('WordPress plugins', 'image-watermark'); ?>"><?php _e('WordPress plugins', 'image-watermark'); ?></a>
939
- </p>
 
 
 
 
 
 
 
 
 
 
940
  <hr />
941
- <p class="df-link"><?php _e('Created by', 'restrict-widgets'); ?><a href="http://www.dfactory.eu" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="<?php echo plugins_url( 'images/logo-dfactory.png' , __FILE__ ); ?>" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
942
- </div>
943
- </div>
 
944
  </div>
945
  <?php
946
  }
@@ -994,11 +997,11 @@ class Image_Watermark
994
  $opt_cpt = get_option('df_watermark_cpt_on');
995
  $opt_won = get_option('df_watermark_on');
996
 
997
- $post = get_post($attachment_id);
998
- $post_id = (int)$post->post_parent;
999
 
1000
- //if something is wrong we dont apply the watermark
1001
- if(($attachment_id === 'manual' || $this->is_admin === TRUE) && !((isset($opt_cpt[0]) && $opt_cpt[0] === 'everywhere') || ($post_id > 0 && in_array(get_post_type($post_id), array_keys($opt_cpt)) === TRUE)))
1002
  return $data;
1003
 
1004
  if(apply_filters('iw_watermark_display', $attachment_id) === FALSE)
@@ -1139,8 +1142,16 @@ class Image_Watermark
1139
  elseif($size_type === 2) //scale
1140
  {
1141
  $ratio = $img_width * $opt['df_watermark_image']['width'] / 100 / $watermark_width;
 
1142
  $w = (int)($watermark_width * $ratio);
1143
  $h = (int)($watermark_height * $ratio);
 
 
 
 
 
 
 
1144
  }
1145
  else //original
1146
  {
2
  /*
3
  Plugin Name: Image Watermark
4
  Description: Image Watermark allows you to automatically watermark images uploaded to the WordPress Media Library and bulk watermark previously uploaded images.
5
+ Version: 1.3.0
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/image-watermark/
69
  'draganddrop' => 0,
70
  'forlogged' => 0,
71
  ),
72
+ 'version' => '1.3.0'
73
  );
74
 
75
 
172
  $location = add_query_arg('paged', $wp_list_table->get_pagenum(), $location);
173
 
174
  //do we have selected attachments?
175
+ if(!empty($_REQUEST['media']))
176
  {
177
  $watermarked = $skipped = 0;
178
 
186
  $this->apply_watermark($data, 'manual');
187
  $watermarked++;
188
  }
189
+ else
190
+ $skipped++;
191
  }
192
 
193
  $location = add_query_arg(array('watermarked' => $watermarked, 'skipped' => $skipped), $location);
385
  {
386
  $options = get_option('df_image_protection');
387
 
388
+ $options['forlogged'] = (!empty($image_protection['forlogged']) ? 1 : 0);
389
+ $options['draganddrop'] = (!empty($image_protection['draganddrop']) ? 1 : 0);
390
+ $options['rightclick'] = (!empty($image_protection['rightclick']) ? 1 : 0);
391
+
392
  if(($options['forlogged'] == 0 && is_user_logged_in()) || ($options['draganddrop'] == 0 && $options['rightclick'] == 0))
 
393
  return;
 
394
 
395
  wp_enqueue_script(
396
  'no-right-click',
565
  foreach($this->_options[$option] as $protection => $value_p)
566
  {
567
  if(in_array($protection, array_keys($_POST[$option])))
 
568
  $tmp[$protection] = 1;
569
+ else
570
+ $tmp[$protection] = 0;
571
  }
572
 
573
  update_option($option, $tmp);
636
  <div class="wrap">
637
  <div id="icon-options-general" class="icon32"><br /></div>
638
  <h2><?php echo __('Image Watermark Settings', 'image-watermark'); ?></h2>
639
+
640
+ <div class="image-watermark-settings">
641
+ <div class="df-credits">
642
+ <h3 class="hndle"><?php _e('Image Watermark', 'image-watermark'); ?></h3>
643
+ <div class="inside">
644
+ <h4 class="inner"><?php _e('Need support?', 'image-watermark'); ?></h4>
645
+ <p class="inner"><?php _e('If you are having problems with this plugin, please talk about them in the', 'image-watermark'); ?> <a href="http://dfactory.eu/support/" target="_blank" title="<?php _e('Support forum', 'image-watermark'); ?>"><?php _e('Support forum', 'image-watermark'); ?></a></p>
646
+ <hr />
647
+ <h4 class="inner"><?php _e('Do you like this plugin?', 'image-watermark'); ?></h4>
648
+ <p class="inner"><a href="http://wordpress.org/support/view/plugin-reviews/image-watermark?filter=5" target="_blank" title="<?php _e('Rate it 5', 'image-watermark'); ?>"><?php _e('Rate it 5', 'image-watermark'); ?></a> <?php _e('on WordPress.org', 'image-watermark'); ?><br />
649
+ <?php _e('Blog about it & link to the','image-watermark'); ?> <a href="http://dfactory.eu/plugins/image-watermark/" target="_blank" title="<?php _e('plugin page', 'image-watermark'); ?>"><?php _e('plugin page', 'image-watermark'); ?></a><br />
650
+ <?php _e('Check out our other', 'image-watermark'); ?> <a href="http://dfactory.eu/plugins/" target="_blank" title="<?php _e('WordPress plugins', 'image-watermark'); ?>"><?php _e('WordPress plugins', 'image-watermark'); ?></a>
651
+ </p>
652
+ <hr />
653
+ <p class="df-link inner"><?php _e('Created by', 'restrict-widgets'); ?><a href="http://www.dfactory.eu" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="<?php echo plugins_url( 'images/logo-dfactory.png' , __FILE__ ); ?>" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
654
+ </div>
655
+ </div>
656
+
657
+ <form method="post" action="">
658
+ <h3><?php echo __('General settings', 'image-watermark'); ?></h3>
659
+ <table id="watermark-general-table" class="form-table">
660
+ <tr valign="top">
661
+ <th scope="row"><?php echo __('Automatic watermarking', 'image-watermark'); ?></th>
662
+ <td class="wr_width">
663
+ <fieldset class="wr_width">
664
+ <div id="run-watermark">
665
+ <label for="plugin_on"><?php echo __('on', 'image-watermark'); ?></label>
666
+ <input type="radio" id="plugin_on" value="0" name="df_watermark_image[plugin_off]" <?php checked($watermark_image['plugin_off'], 0, TRUE); ?> />
667
+ <label for="plugin_off"><?php echo __('off', 'image-watermark'); ?></label>
668
+ <input type="radio" id="plugin_off" value="1" name="df_watermark_image[plugin_off]" <?php checked($watermark_image['plugin_off'], 1, TRUE); ?> />
669
+ </div>
670
+ <p class="description"><?php echo __('Enable or disable watermark for uploaded images.', 'image-watermark'); ?></p>
671
+ </fieldset>
672
+ </td>
673
+ </tr>
674
+ </table>
675
+ <table id="watermark-manual-table" class="form-table">
676
+ <tr valign="top">
677
+ <th scope="row"><?php echo __('Manual watermarking', 'image-watermark'); ?></th>
678
+ <td class="wr_width">
679
+ <fieldset class="wr_width">
680
+ <div id="run-manual-watermark">
681
+ <label for="manual_watermarking_on"><?php echo __('on', 'image-watermark'); ?></label>
682
+ <input type="radio" id="manual_watermarking_on" value="1" name="df_watermark_image[manual_watermarking]" <?php checked($watermark_image['manual_watermarking'], 1, TRUE); ?> />
683
+ <label for="manual_watermarking_off"><?php echo __('off', 'image-watermark'); ?></label>
684
+ <input type="radio" id="manual_watermarking_off" value="0" name="df_watermark_image[manual_watermarking]" <?php checked($watermark_image['manual_watermarking'], 0, TRUE); ?> />
685
+ </div>
686
+ <p class="description"><?php echo __('Enable or disable Apply Watermark option for images in Media Library.', 'image-watermark'); ?></p>
687
+ </fieldset>
688
+ </td>
689
+ </tr>
690
+ </table>
691
+ <table id="watermark-for-table" class="form-table">
692
+ <tr valign="top">
693
+ <th scope="row"><?php echo __('Enable watermark for', 'image-watermark'); ?></th>
694
+ <td class="wr_width">
695
+ <fieldset class="wr_width">
696
+ <div id="thumbnail-select">
697
+ <?php foreach($this->_image_sizes as $image_size) : ?>
698
+ <input name="df_watermark_on[<?php echo $image_size; ?>]" type="checkbox" id="<?php echo $image_size; ?>" value="1" <?php echo (in_array($image_size, array_keys($watermark_on)) ? ' checked="checked"' : ''); ?> />
699
+ <label for="<?php echo $image_size; ?>"><?php echo $image_size; ?></label>
700
+ <?php endforeach; ?>
701
+ </div>
702
+ <p class="description"><?php echo __('Check image sizes on which watermark should appear.<br /><strong>IMPORTANT:</strong> checking full size is NOT recommended as it\'s the original image. You may need it later - for removing or changing watermark, image sizes regeneration or any other image manipulations. Use it only if you know what you are doing.', 'image-watermark'); ?></p>
703
+ <?php $watermark_cpt_on = array_keys(get_option('df_watermark_cpt_on'));
704
+ if(in_array('everywhere', $watermark_cpt_on) && count($watermark_cpt_on) === 1)
705
+ { $first_checked = TRUE; $second_checked = FALSE; $watermark_cpt_on = array(); }
706
+ else { $first_checked = FALSE; $second_checked = TRUE; } ?>
707
+ <div id="cpt-specific">
708
+ <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>
709
+ <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>
710
+ </div>
711
+ <div id="cpt-select" <?php echo ($second_checked === FALSE ? 'style="display: none;"' : ''); ?>>
712
+ <?php foreach($this->getCustomPostTypes() as $cpt) : ?>
713
+ <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"' : ''); ?> />
714
+ <label for="<?php echo $cpt; ?>"><?php echo $cpt; ?></label>
715
+ <?php endforeach; ?>
716
  </div>
717
+ <p class="description"><?php echo __('Check custom post types on which watermark should be applied to uploaded images.', 'image-watermark'); ?></p>
718
+ </fieldset>
719
+ </td>
720
+ </tr>
721
+ </table>
722
+ <table id="watermark-general-table-front" class="form-table">
723
+ <tr valign="top">
724
+ <th scope="row"><?php echo __('Automatic frontend watermarking', 'image-watermark'); ?></th>
725
+ <td class="wr_width">
726
+ <fieldset class="wr_width">
727
+ <div id="run-watermark-front">
728
+ <label for="frontend_active"><?php echo __('on', 'image-watermark'); ?></label>
729
+ <input type="radio" id="frontend_active" value="1" name="df_watermark_image[frontend_active]" <?php checked($watermark_image['frontend_active'], TRUE, TRUE); ?> />
730
+ <label for="frontend_inactive"><?php echo __('off', 'image-watermark'); ?></label>
731
+ <input type="radio" id="frontend_inactive" value="0" name="df_watermark_image[frontend_active]" <?php checked($watermark_image['frontend_active'], FALSE, TRUE); ?> />
732
+ </div>
733
+ <p class="description"><?php echo __('Enable or disable watermark for frontend image uploading. (uploading script is not included, but you may use a plugin or custom code). <strong>Notice:</strong> This functionality works only if uploaded images are processed using WordPress native upload methods.', 'image-watermark'); ?></p>
734
+ </fieldset>
735
+ </td>
736
+ </tr>
737
+ </table>
738
+ <table id="watermark-general-table-deactivation" class="form-table">
739
+ <tr valign="top">
740
+ <th scope="row"><?php echo __('Plugin deactivation', 'image-watermark'); ?></th>
741
+ <td class="wr_width">
742
+ <fieldset class="wr_width">
743
+ <div id="deactivation-delete">
744
+ <label for="deactivate_on"><?php echo __('on', 'image-watermark'); ?></label>
745
+ <input type="radio" id="deactivate_on" value="1" name="df_watermark_image[deactivation_delete]" <?php checked($watermark_image['deactivation_delete'], TRUE, TRUE); ?> />
746
+ <label for="deactivate_off"><?php echo __('off', 'image-watermark'); ?></label>
747
+ <input type="radio" id="deactivate_off" value="0" name="df_watermark_image[deactivation_delete]" <?php checked($watermark_image['deactivation_delete'], FALSE, TRUE); ?> />
748
+ </div>
749
+ <p class="description"><?php echo __('Delete all database settings on plugin deactivation.', 'image-watermark'); ?></p>
750
+ </fieldset>
751
+ </td>
752
+ </tr>
753
+ </table>
754
+ <hr />
755
+ <h3><?php echo __('Watermark position', 'image-watermark'); ?></h3>
756
+ <table id="watermark-position-table" class="form-table">
757
+ <tr valign="top">
758
+ <th scope="row"><?php echo __('Watermark alignment','image-watermark'); ?></th>
759
+ <td>
760
+ <fieldset>
761
+ <table id="watermark_position" border="1">
762
+ <?php $watermark_position = $watermark_image['position']; ?>
763
+ <?php foreach($this->_watermark_positions['y'] as $y) : ?>
764
+ <tr>
765
+ <?php foreach($this->_watermark_positions['x'] as $x) : ?>
766
+ <td title="<?php echo ucfirst($y . ' ' . $x); ?>">
767
+ <input name="df_watermark_image[position]" type="radio" value="<?php echo $y . '_' . $x; ?>"<?php echo ($watermark_position == $y . '_' . $x ? ' checked="checked"' : NULL); ?> />
768
+ </td>
 
 
 
 
 
 
 
 
769
  <?php endforeach; ?>
770
+ </tr>
771
+ <?php endforeach; ?>
772
+ </table>
773
+ <p class="description"><?php echo __('Choose the position of watermark image.','image-watermark'); ?></p>
774
+ </fieldset>
775
+ </td>
776
+ </tr>
777
+ <tr valign="top">
778
+ <th scope="row"><?php echo __('Watermark offset','image-watermark'); ?></th>
779
+ <td>
780
+ <fieldset>
781
+ <?php echo __('x:','image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[offset_width]" value="<?php echo $watermark_image['offset_width']; ?>"> <?php echo __('px','image-watermark'); ?>
782
+ <br />
783
+ <?php echo __('y:','image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[offset_height]" value="<?php echo $watermark_image['offset_height']; ?>"> <?php echo __('px','image-watermark'); ?>
784
+ </fieldset>
785
+ </td>
786
+ </tr>
787
+ </table>
788
+ <hr />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
789
 
790
+ <?php
791
+ if($watermark_image['url'] !== NULL && $watermark_image['url'] != 0)
792
+ {
793
+ $image = wp_get_attachment_image_src($watermark_image['url'], array(300, 300), FALSE);
794
+ $imageSelected = TRUE;
795
+ }
796
+ else $imageSelected = FALSE;
797
+ ?>
798
+
799
+ <h3><?php echo __('Watermark image','image-watermark'); ?></h3>
800
+ <p class="description"><?php echo __('Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF.','image-watermark'); ?></p>
801
+ <table id="watermark-image-table" class="form-table">
802
+ <tr valign="top">
803
+ <th scope="row"><?php echo __('Watermark image','image-watermark'); ?></th>
804
+ <td>
805
+ <input id="upload_image" type="hidden" name="df_watermark_image[url]" value="<?php echo (int)$watermark_image['url']; ?>" />
806
+ <input id="upload_image_button" type="button" class="button button-secondary" value="<?php echo __('Select image','image-watermark'); ?>" />
807
+ <input id="turn_off_image_button" type="button" class="button button-secondary" value="<?php echo __('Turn off image','image-watermark'); ?>" <?php if($imageSelected === FALSE) echo 'disabled="disabled"'; ?>/>
808
+ <p class="description"><?php _e('You have to save changes after the selection or removal of the image.', 'image-watermark'); ?></p>
809
+ </td>
810
+ </tr>
811
+ <tr valign="top">
812
+ <th scope="row"><?php echo __('Watermark preview', 'image-watermark'); ?></th>
813
+ <td class="wr_width">
814
+ <fieldset class="wr_width">
815
+ <div id="previewImg_imageDiv">
816
+ <?php if($imageSelected === TRUE) {
817
+ $image = wp_get_attachment_image_src($watermark_image['url'], array(300, 300), FALSE);
818
+ ?>
819
+ <img id="previewImg_image" src="<?php echo $image[0]; ?>" alt="" width="300" />
820
+ <?php } else { ?>
821
+ <img id="previewImg_image" src="" alt="" width="300" style="display: none;" />
822
+ <?php } ?>
823
+ </div>
824
+ <p id="previewImageInfo" class="description">
825
+ <?php
826
+ if($imageSelected === FALSE)
827
+ {
828
+ _e('Watermak has not been selected yet.', 'image-watermark');
829
+ }
830
+ else
831
+ {
832
+ $imageFullSize = wp_get_attachment_image_src($watermark_image['url'], 'full', FALSE);
833
+
834
+ _e('Original size', 'image-watermark').': '.$imageFullSize[1].' px / '.$imageFullSize[2].' px';
835
+ }
836
+ ?>
837
+ </p>
838
+ </fieldset>
839
+ </td>
840
+ </tr>
841
+ <tr valign="top">
842
+ <th scope="row"><?php _e('Watermark size', 'image-watermark'); ?></th>
843
+ <td class="wr_width">
844
+ <fieldset class="wr_width">
845
+ <div id="watermark-type">
846
+ <label for="type1"><?php _e('original', 'image-watermark'); ?></label>
847
+ <input type="radio" id="type1" value="0" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 0, TRUE); ?> />
848
+ <label for="type2"><?php _e('custom', 'image-watermark'); ?></label>
849
+ <input type="radio" id="type2" value="1" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 1, TRUE); ?> />
850
+ <label for="type3"><?php _e('scaled', 'image-watermark'); ?></label>
851
+ <input type="radio" id="type3" value="2" name="df_watermark_image[watermark_size_type]" <?php checked($watermark_image['watermark_size_type'], 2, TRUE); ?> />
852
+ </div>
853
+ <p class="description"><?php _e('Select method of aplying watermark size.', 'image-watermark'); ?></p>
854
+ </fieldset>
855
+ </td>
856
+ </tr>
857
+ <tr valign="top" id="watermark_size_custom">
858
+ <th scope="row"><?php _e('Watermark custom size', 'image-watermark'); ?></th>
859
+ <td class="wr_width">
860
+ <fieldset class="wr_width">
861
+ <?php _e('x:', 'image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[absolute_width]" value="<?php echo $watermark_image['absolute_width']; ?>"> <?php _e('px', 'image-watermark'); ?>
862
+ <br />
863
+ <?php _e('y:', 'image-watermark'); ?> <input type="text" size="5" name="df_watermark_image[absolute_height]" value="<?php echo $watermark_image['absolute_height']; ?>"> <?php _e('px','image-watermark'); ?>
864
+ </fieldset>
865
+ <p class="description"><?php _e('Those dimensions will be used if "custom" method is selected above.', 'image-watermark'); ?></p>
866
+ </td>
867
+ </tr>
868
+ <tr valign="top" id="watermark_size_scale">
869
+ <th scope="row"><?php _e('Scale of watermark in relation to image width', 'image-watermark'); ?></th>
870
+ <td class="wr_width">
871
+ <fieldset class="wr_width">
872
+ <div>
873
+ <input type="text" id="iw_size_input" maxlength="3" class="hide-if-js" name="df_watermark_image[width]" value="<?php echo $watermark_image['width']; ?>" />
874
+ <div class="wplike-slider">
875
+ <span class="left hide-if-no-js">0</span><span class="middle" id="iw_size_span" title="<?php echo $watermark_image['width']; ?>"></span><span class="right hide-if-no-js">100</span>
876
  </div>
877
+ </div>
878
+ </fieldset>
879
+ <p class="description"><?php _e('This value will be used if "scaled" method if selected above. <br />Enter a number ranging from 0 to 100. 100 makes width of watermark image equal to width of the image it is applied to.', 'image-watermark'); ?></p>
880
+ </td>
881
+ </tr>
882
+ <tr valign="top">
883
+ <th scope="row"><?php _e('Watermark transparency / opacity', 'image-watermark'); ?></th>
884
+ <td class="wr_width">
885
+ <fieldset class="wr_width">
886
+ <div>
887
+ <input type="text" id="iw_opacity_input" maxlength="3" class="hide-if-js" name="df_watermark_image[transparent]" value="<?php echo $watermark_image['transparent']; ?>" />
888
+ <div class="wplike-slider">
889
+ <span class="left hide-if-no-js">0</span><span class="middle" id="iw_opacity_span" title="<?php echo $watermark_image['transparent']; ?>"></span><span class="right hide-if-no-js">100</span>
890
  </div>
891
+ </div>
892
+ </fieldset>
893
+ <p class="description"><?php _e('Enter a number ranging from 0 to 100. 0 makes watermark image completely transparent, 100 shows it as is.', 'image-watermark'); ?></p>
894
+ </td>
895
+ </tr>
896
+ <tr valign="top">
897
+ <th scope="row"><?php _e('Image quality', 'image-watermark'); ?></th>
898
+ <td class="wr_width">
899
+ <fieldset class="wr_width">
900
+ <div>
901
+ <input type="text" id="iw_quality_input" maxlength="3" class="hide-if-js" name="df_watermark_image[quality]" value="<?php echo $watermark_image['quality']; ?>" />
902
+ <div class="wplike-slider">
903
+ <span class="left hide-if-no-js">0</span><span class="middle" id="iw_quality_span" title="<?php echo $watermark_image['quality']; ?>"></span><span class="right hide-if-no-js">100</span>
904
  </div>
905
+ </div>
906
+ </fieldset>
907
+ <p class="description"><?php _e('Set output image quality.', 'image-watermark'); ?></p>
908
+ </td>
909
+ </tr>
910
+ <tr valign="top">
911
+ <th scope="row"><?php _e('Image format', 'image-watermark'); ?></th>
912
+ <td class="wr_width">
913
+ <fieldset class="wr_width">
914
+ <div id="jpeg-format">
915
+ <label for="baseline"><?php _e('baseline', 'image-watermark'); ?></label>
916
+ <input type="radio" id="baseline" value="baseline" name="df_watermark_image[jpeg_format]" <?php checked($watermark_image['jpeg_format'], 'baseline', TRUE); ?> />
917
+ <label for="progressive"><?php _e('progressive', 'image-watermark'); ?></label>
918
+ <input type="radio" id="progressive" value="progressive" name="df_watermark_image[jpeg_format]" <?php checked($watermark_image['jpeg_format'], 'progressive', TRUE); ?> />
919
+ </div>
920
+ </fieldset>
921
+ <p class="description"><?php _e('Select baseline or progressive image format.', 'image-watermark'); ?></p>
922
+ </td>
923
+ </tr>
924
+ </table>
925
+ <input type="hidden" name="action" value="update" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
926
  <hr />
927
+ <h3><?php _e('Image protection', 'image-watermark'); ?></h3>
928
+ <table id="watermark-protection-table" class="form-table">
929
+ <tr>
930
+ <th><?php _e('Disable right mouse click on images', 'image-watermark'); ?></th>
931
+ <td><input type="checkbox" <?php checked((!empty($image_protection['rightclick']) ? 1 : 0), 1, TRUE); ?> value="1" name="df_image_protection[rightclick]"></td>
932
+ </tr>
933
+ <tr>
934
+ <th><?php _e('Prevent drag and drop', 'image-watermark'); ?></th>
935
+ <td><input type="checkbox" <?php checked((!empty($image_protection['draganddrop']) ? 1 : 0), 1, TRUE); ?> value="1" name="df_image_protection[draganddrop]"></td>
936
+ </tr>
937
+ <tr>
938
+ <th><?php _e('Enable image protection for logged-in users also', 'image-watermark'); ?></th>
939
+ <td><input type="checkbox" <?php checked((!empty($image_protection['forlogged']) ? 1 : 0), 1, TRUE); ?> value="1" name="df_image_protection[forlogged]"></td>
940
+ </tr>
941
+ </table>
942
  <hr />
943
+ <input type="submit" id="watermark-submit" class="button button-primary" name="submit" value="<?php _e('Save Changes', 'image-watermark'); ?>" />
944
+ <input type="submit" id="watermark-reset" class="button button-secondary" name="reset" value="<?php _e('Reset to defaults', 'image-watermark'); ?>" />
945
+ </form>
946
+ </div>
947
  </div>
948
  <?php
949
  }
997
  $opt_cpt = get_option('df_watermark_cpt_on');
998
  $opt_won = get_option('df_watermark_on');
999
 
1000
+ $post = get_post((int)$attachment_id);
1001
+ $post_id = (!empty($post) ? (int)$post->post_parent : 0);
1002
 
1003
+ //something went wrong or is it automatic mode?
1004
+ if($attachment_id !== 'manual' && ($this->is_admin === TRUE && !((isset($opt_cpt[0]) && $opt_cpt[0] === 'everywhere') || ($post_id > 0 && in_array(get_post_type($post_id), array_keys($opt_cpt)) === TRUE))))
1005
  return $data;
1006
 
1007
  if(apply_filters('iw_watermark_display', $attachment_id) === FALSE)
1142
  elseif($size_type === 2) //scale
1143
  {
1144
  $ratio = $img_width * $opt['df_watermark_image']['width'] / 100 / $watermark_width;
1145
+
1146
  $w = (int)($watermark_width * $ratio);
1147
  $h = (int)($watermark_height * $ratio);
1148
+
1149
+ //if watermark scaled height is bigger then image watermark
1150
+ if($h > $img_height)
1151
+ {
1152
+ $w = (int)($img_height * $w / $h);
1153
+ $h = $img_height;
1154
+ }
1155
  }
1156
  else //original
1157
  {
languages/image-watermark-pl_PL.mo CHANGED
Binary file
languages/image-watermark-pl_PL.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-10-02 13:02+0100\n"
6
- "PO-Revision-Date: 2013-10-02 13:04+0100\n"
7
- "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
8
  "Language-Team: Digital Factory <info@digitalfactory.pl>\n"
9
  "Language: pl_PL\n"
10
  "MIME-Version: 1.0\n"
@@ -14,18 +14,18 @@ msgstr ""
14
  "esc_attr_e\n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Generator: Poedit 1.5.7\n"
18
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
21
- #: ../image-watermark.php:27
22
  msgid ""
23
  "Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or higher."
24
  msgstr ""
25
  "Przykro nam, ale ta wtyczka wymaga PHP w wersji co najmniej 5.0 WordPressa w "
26
  "wersji 3.5 lub wyższej.."
27
 
28
- #: ../image-watermark.php:215
29
  msgid ""
30
  "Watermark could not be applied to selected files or no valid images (JPEG, "
31
  "PNG) were selected."
@@ -33,87 +33,87 @@ msgstr ""
33
  "Znak wodny nie został został dodany do wybranych obrazków lub nie został "
34
  "wybrany prawidłowy typ pliku (JPEG, PNG)."
35
 
36
- #: ../image-watermark.php:215 ../image-watermark.php:219
37
  msgid "Skipped files"
38
  msgstr "Pominięte pliki"
39
 
40
- #: ../image-watermark.php:219
41
  #, php-format
42
  msgid "Watermark was succesfully applied to 1 image."
43
  msgid_plural "Watermark was succesfully applied to %s images."
44
  msgstr[0] "Znak wodny został dodany do 1 obrazka."
45
  msgstr[1] "Znak wodny został dodany do %s obrazków."
46
 
47
- #: ../image-watermark.php:262
48
  msgid "Support"
49
  msgstr "Forum pomocy"
50
 
51
- #: ../image-watermark.php:284
52
  msgid "Settings"
53
  msgstr "Ustawienia"
54
 
55
- #: ../image-watermark.php:315
56
  msgid "Apply watermark"
57
  msgstr "Dodaj znak wodny"
58
 
59
- #: ../image-watermark.php:335
60
  msgid "Select watermark"
61
  msgstr "Wybierz znak wodny"
62
 
63
- #: ../image-watermark.php:336 ../image-watermark.php:813
64
  msgid "Original size"
65
  msgstr "Rozmiar oryginalny"
66
 
67
- #: ../image-watermark.php:337 ../image-watermark.php:807
68
  msgid "Watermak has not been selected yet."
69
  msgstr "Znak wodny nie został jeszcze wybrany."
70
 
71
- #: ../image-watermark.php:338
72
  msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
73
  msgstr "Ten rodzaj obrazka nie może być znakiem wodnym. Użyj JPEG, PNG or GIF."
74
 
75
- #: ../image-watermark.php:340
76
  msgid "Add watermark"
77
  msgstr "Dodaj znak wodny"
78
 
79
- #: ../image-watermark.php:357
80
  msgid "Are you sure you want to reset settings to defaults?"
81
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
82
 
83
- #: ../image-watermark.php:412
84
  msgid "Image Watermark Options"
85
  msgstr "Ustawienia znaku wodnego"
86
 
87
- #: ../image-watermark.php:413
88
  msgid "Watermark"
89
  msgstr "Znak wodny"
90
 
91
- #: ../image-watermark.php:439
92
  msgid "Image Watermark will not work properly without GD PHP extension."
93
  msgstr ""
94
  "Znak wodny nie może funkcjonować bez zainstalowanego rozszerzenia GD PHP."
95
 
96
- #: ../image-watermark.php:581
97
  msgid "Settings saved."
98
  msgstr "Ustawienia zostały zapisane."
99
 
100
- #: ../image-watermark.php:594
101
  msgid "Settings restored to defaults."
102
  msgstr "Ustawienia zostały przywrócone do domyślnych."
103
 
104
- #: ../image-watermark.php:614
105
  msgid "Watermark will not be applied when <b>watermark image is not set</b>."
106
  msgstr ""
107
  "Znak wodny nie zostanie dodany ponieważ <b>nie wybrano obrazka dla znaku "
108
  "wodnego</b>."
109
 
110
- #: ../image-watermark.php:617
111
  msgid "Watermark will not be applied when <b>no image sizes are selected</b>."
112
  msgstr ""
113
  "Znak wodny nie zostanie dodany ponieważ <b>nie wybrano wielkości obrazków</"
114
  "b>."
115
 
116
- #: ../image-watermark.php:623
117
  msgid ""
118
  "Watermark will not be applied while frontend image upload if <b>watermark "
119
  "image is not set</b>."
@@ -121,7 +121,7 @@ msgstr ""
121
  "Znak wodny nie zostanie dodany w trakcie wczytywania na froncie strony jeśli "
122
  "<b>nie wybrano obrazka dla znaku wodnego</b>."
123
 
124
- #: ../image-watermark.php:626
125
  msgid ""
126
  "Watermark will not be applied while frontend image upload if <b>no image "
127
  "sizes are selected</b>."
@@ -129,63 +129,118 @@ msgstr ""
129
  "Znak wodny nie zostanie dodany w trakcie wczytywania na froncie strony jeśli "
130
  "<b>nie wybrano wielkości obrazków</b>."
131
 
132
- #: ../image-watermark.php:633
133
  msgid "Image Watermark Settings"
134
  msgstr "Ustawienia znaku wodnego"
135
 
136
- #: ../image-watermark.php:637
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  msgid "General settings"
138
  msgstr "Ustawienia ogólne"
139
 
140
- #: ../image-watermark.php:640
141
  msgid "Automatic watermarking"
142
  msgstr "Automatyczne dodawanie znaku wodnego"
143
 
144
- #: ../image-watermark.php:644 ../image-watermark.php:660
145
- #: ../image-watermark.php:707 ../image-watermark.php:723
146
  msgid "on"
147
  msgstr "włączony"
148
 
149
- #: ../image-watermark.php:646 ../image-watermark.php:662
150
- #: ../image-watermark.php:709 ../image-watermark.php:725
151
  msgid "off"
152
  msgstr "wyłączony"
153
 
154
- #: ../image-watermark.php:649
155
  msgid "Enable or disable watermark for uploaded images."
156
  msgstr "Włącz lub wyłącz dodawanie znaku wodnego do wgrywanych obrazków."
157
 
158
- #: ../image-watermark.php:656
159
  msgid "Manual watermarking"
160
  msgstr "Ręczne dodawanie znaku wodnego"
161
 
162
- #: ../image-watermark.php:665
163
  msgid "Enable or disable Apply Watermark option for images in Media Library."
164
  msgstr ""
165
  "Włącz lub wyłącz dodawanie znaku wodnego do obrazków w Bibliotece mediów."
166
 
167
- #: ../image-watermark.php:672
168
  msgid "Enable watermark for"
169
  msgstr "Dodawaj znak wodny do"
170
 
171
- #: ../image-watermark.php:681
172
  msgid ""
173
- "Check image sizes on which watermark should appear. <b>Notice:</b> checking "
174
- "full size is not recommened as it's the original image."
 
 
 
175
  msgstr ""
176
- "Zaznacz wielkości obazków dla których będzie dodany znak wodny. <b>Uwaga:</"
177
- "b> zaznaczenie pełnej wielkości nie jest rekomendowane, ponieważ jest to "
178
- "oryginał obrazka."
179
-
180
- #: ../image-watermark.php:687
 
 
 
181
  msgid "everywhere"
182
  msgstr "wszędzie"
183
 
184
- #: ../image-watermark.php:688
185
  msgid "on selected post types only"
186
  msgstr "na wybranych typach wpisów"
187
 
188
- #: ../image-watermark.php:696
189
  msgid ""
190
  "Check custom post types on which watermark should be applied to uploaded "
191
  "images."
@@ -193,122 +248,122 @@ msgstr ""
193
  "Zaznacz własne typy wpisów w których znak wodny będzie dodawany do "
194
  "wgrywanych obrazków."
195
 
196
- #: ../image-watermark.php:703
197
  msgid "Automatic frontend watermarking"
198
  msgstr "Znaku wodny na froncie strony"
199
 
200
- #: ../image-watermark.php:712
201
  msgid ""
202
  "Enable or disable watermark for frontend image uploading. (uploading script "
203
- "is not included, but you may use a plugin or custom code). Notice: This "
204
- "functionality works only if uploaded images are processed using WordPress "
205
- "native upload methods."
206
  msgstr ""
207
  "Włącz lub wyłącz dodawanie znaku wodnego wtrakcie wgrywania obrazków na "
208
  "froncie strony. (skrypt umożliwiający wczytywanie nie jest dostarczony, ale "
209
- "możesz użyć wtyczki lub własnego kodu). Uwaga: ta funkcjonalność działa "
210
- "tylko jeśli wgrywane zdjęcia są przetwarzane z wykorzystaniem domyślnych "
211
- "metod WordPressa."
212
 
213
- #: ../image-watermark.php:719
214
  msgid "Plugin deactivation"
215
  msgstr "Deaktywacja wtyczki"
216
 
217
- #: ../image-watermark.php:728
218
  msgid "Delete all database settings on plugin deactivation."
219
  msgstr "Usuń wszystkie dane wtyczki po jej deaktywacji."
220
 
221
- #: ../image-watermark.php:734
222
  msgid "Watermark position"
223
  msgstr "Pozycja znaku wodnego"
224
 
225
- #: ../image-watermark.php:737
226
  msgid "Watermark alignment"
227
  msgstr "Wyrównanie znaku wodnego"
228
 
229
- #: ../image-watermark.php:752
230
  msgid "Choose the position of watermark image."
231
  msgstr "Wybierz pozycję znaku wodnego na obrazkach"
232
 
233
- #: ../image-watermark.php:757
234
  msgid "Watermark offset"
235
  msgstr "Korekcja pozycji"
236
 
237
- #: ../image-watermark.php:760 ../image-watermark.php:840
238
  msgid "x:"
239
  msgstr "x:"
240
 
241
- #: ../image-watermark.php:760 ../image-watermark.php:762
242
- #: ../image-watermark.php:840 ../image-watermark.php:842
243
  msgid "px"
244
  msgstr "pikseli"
245
 
246
- #: ../image-watermark.php:762 ../image-watermark.php:842
247
  msgid "y:"
248
  msgstr "y:"
249
 
250
- #: ../image-watermark.php:778 ../image-watermark.php:782
251
  msgid "Watermark image"
252
  msgstr "Obrazek znaku wodnego"
253
 
254
- #: ../image-watermark.php:779
255
  msgid ""
256
  "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
257
  msgstr ""
258
  "Skonfiguruj obrazek znaku wodnego. Dozwolone formaty plików to: JPEG, PNG, "
259
  "GIF."
260
 
261
- #: ../image-watermark.php:785
262
  msgid "Select image"
263
  msgstr "Wybierz obrazek"
264
 
265
- #: ../image-watermark.php:786
266
  msgid "Turn off image"
267
  msgstr "Wyłącz obrazek"
268
 
269
- #: ../image-watermark.php:787
270
  msgid "You have to save changes after the selection or removal of the image."
271
  msgstr "Po zapisaniu zmian lub wybraniu obrazka powienieneś zapisać zmiany."
272
 
273
- #: ../image-watermark.php:791
274
  msgid "Watermark preview"
275
  msgstr "Podgląd obrazka"
276
 
277
- #: ../image-watermark.php:821
278
  msgid "Watermark size"
279
  msgstr "Wielkość znaku wodnego"
280
 
281
- #: ../image-watermark.php:825
282
  msgid "original"
283
  msgstr "oryginalna"
284
 
285
- #: ../image-watermark.php:827
286
  msgid "custom"
287
  msgstr "własna"
288
 
289
- #: ../image-watermark.php:829
290
  msgid "scaled"
291
  msgstr "skalowana"
292
 
293
- #: ../image-watermark.php:832
294
  msgid "Select method of aplying watermark size."
295
  msgstr "Wybierz sposób określania wielkości znaku wodnego."
296
 
297
- #: ../image-watermark.php:837
298
  msgid "Watermark custom size"
299
  msgstr "Własna wielkość"
300
 
301
- #: ../image-watermark.php:844
302
  msgid "Those dimensions will be used if \"custom\" method is selected above."
303
  msgstr ""
304
  "Te wymiary zostaną zastosowane, jeśli wybrałeś \"własną\" wielkość znaku "
305
  "wodnego. "
306
 
307
- #: ../image-watermark.php:848
308
  msgid "Scale of watermark in relation to image width"
309
  msgstr "Wielkość znaku wodnego w stosunku do szerokości obrazków"
310
 
311
- #: ../image-watermark.php:858
312
  msgid ""
313
  "This value will be used if \"scaled\" method if selected above. <br />Enter "
314
  "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
@@ -319,11 +374,11 @@ msgstr ""
319
  "że wielkość znaku wodnego będzie równa wielkości obrazka, do którego jest "
320
  "dodawany."
321
 
322
- #: ../image-watermark.php:862
323
  msgid "Watermark transparency / opacity"
324
  msgstr "Przezroczystość znaku wodnego"
325
 
326
- #: ../image-watermark.php:872
327
  msgid ""
328
  "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
329
  "transparent, 100 shows it as is."
@@ -331,102 +386,61 @@ msgstr ""
331
  "Wpisz liczbę z zakresu od 0 do 100. Wpisanie 0 spowoduje, że znak wodny "
332
  "będzie całkowicie przezroczysty, 100 że widoczny taki jak jest."
333
 
334
- #: ../image-watermark.php:876
335
  msgid "Image quality"
336
  msgstr "Jakość obrazka"
337
 
338
- #: ../image-watermark.php:886
339
  msgid "Set output image quality."
340
  msgstr "Wybierz jakość obrazka po nadaniu znaku wodnego"
341
 
342
- #: ../image-watermark.php:890
343
  msgid "Image format"
344
  msgstr "Format obrazka"
345
 
346
- #: ../image-watermark.php:894
347
  msgid "baseline"
348
  msgstr "baseline"
349
 
350
- #: ../image-watermark.php:896
351
  msgid "progressive"
352
  msgstr "progressive"
353
 
354
- #: ../image-watermark.php:900
355
  msgid "Select baseline or progressive image format."
356
  msgstr "Wybierz format obrazu."
357
 
358
- #: ../image-watermark.php:906
359
  msgid "Image protection"
360
  msgstr "Ochrona obrazków"
361
 
362
- #: ../image-watermark.php:909
363
  msgid "Disable right mouse click on images"
364
  msgstr "Wyłącz możliwość kliknięcia prawym przyciskiem myszy na obrazku"
365
 
366
- #: ../image-watermark.php:913
367
  msgid "Prevent drag and drop"
368
  msgstr "Wyłącz możliwość przeciągania i upuszczania obrazków"
369
 
370
- #: ../image-watermark.php:917
371
  msgid "Enable image protection for logged-in users also"
372
  msgstr "Włącz ochronę zdjęć także dla zalogowanych użytkowników"
373
 
374
- #: ../image-watermark.php:922
375
  msgid "Save Changes"
376
  msgstr "Zapisz zmiany"
377
 
378
- #: ../image-watermark.php:923
379
  msgid "Reset to defaults"
380
  msgstr "Przywróć domyślne"
381
 
382
- #: ../image-watermark.php:928
383
- msgid "Image Watermark"
384
- msgstr "Znak wodny"
385
-
386
- #: ../image-watermark.php:930
387
- msgid "Need support?"
388
- msgstr "Potrzebujesz pomocy?"
389
-
390
- #: ../image-watermark.php:931
391
- msgid ""
392
- "If you are having problems with this plugin, please talk about them in the"
393
- msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o tym na"
394
-
395
- #: ../image-watermark.php:931
396
- msgid "Support forum"
397
- msgstr "Forum pomocy"
398
-
399
- #: ../image-watermark.php:933
400
- msgid "Do you like this plugin?"
401
- msgstr "Lubisz tę wtyczkę?"
402
-
403
- #: ../image-watermark.php:934
404
- msgid "Rate it 5"
405
- msgstr "Oceń ją na 5"
406
-
407
- #: ../image-watermark.php:934
408
- msgid "on WordPress.org"
409
- msgstr "na WordPress.org"
410
-
411
- #: ../image-watermark.php:935
412
- msgid "Blog about it & link to the"
413
- msgstr "Napisz o niej i dodaj link do"
414
-
415
- #: ../image-watermark.php:935
416
- msgid "plugin page"
417
- msgstr "strony wtyczki"
418
-
419
- #: ../image-watermark.php:936
420
- msgid "Check out our other"
421
- msgstr "Sprawdź inne"
422
-
423
- #: ../image-watermark.php:936
424
- msgid "WordPress plugins"
425
- msgstr "wtyczki do WordPressa"
426
-
427
- #: ../image-watermark.php:939
428
- msgid "Created by"
429
- msgstr "Stworzone przez"
430
 
431
  #, fuzzy
432
  #~ msgid "Enable or disable watermark for uploaded images on frontend."
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-02-14 11:41+0100\n"
6
+ "PO-Revision-Date: 2014-02-14 11:45+0100\n"
7
+ "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: Digital Factory <info@digitalfactory.pl>\n"
9
  "Language: pl_PL\n"
10
  "MIME-Version: 1.0\n"
14
  "esc_attr_e\n"
15
  "X-Poedit-Basepath: .\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Generator: Poedit 1.6.4\n"
18
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
19
  "X-Poedit-SearchPath-0: ..\n"
20
 
21
+ #: ../image-watermark.php:29
22
  msgid ""
23
  "Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or higher."
24
  msgstr ""
25
  "Przykro nam, ale ta wtyczka wymaga PHP w wersji co najmniej 5.0 WordPressa w "
26
  "wersji 3.5 lub wyższej.."
27
 
28
+ #: ../image-watermark.php:218
29
  msgid ""
30
  "Watermark could not be applied to selected files or no valid images (JPEG, "
31
  "PNG) were selected."
33
  "Znak wodny nie został został dodany do wybranych obrazków lub nie został "
34
  "wybrany prawidłowy typ pliku (JPEG, PNG)."
35
 
36
+ #: ../image-watermark.php:218 ../image-watermark.php:222
37
  msgid "Skipped files"
38
  msgstr "Pominięte pliki"
39
 
40
+ #: ../image-watermark.php:222
41
  #, php-format
42
  msgid "Watermark was succesfully applied to 1 image."
43
  msgid_plural "Watermark was succesfully applied to %s images."
44
  msgstr[0] "Znak wodny został dodany do 1 obrazka."
45
  msgstr[1] "Znak wodny został dodany do %s obrazków."
46
 
47
+ #: ../image-watermark.php:265
48
  msgid "Support"
49
  msgstr "Forum pomocy"
50
 
51
+ #: ../image-watermark.php:287
52
  msgid "Settings"
53
  msgstr "Ustawienia"
54
 
55
+ #: ../image-watermark.php:318
56
  msgid "Apply watermark"
57
  msgstr "Dodaj znak wodny"
58
 
59
+ #: ../image-watermark.php:338
60
  msgid "Select watermark"
61
  msgstr "Wybierz znak wodny"
62
 
63
+ #: ../image-watermark.php:339 ../image-watermark.php:834
64
  msgid "Original size"
65
  msgstr "Rozmiar oryginalny"
66
 
67
+ #: ../image-watermark.php:340 ../image-watermark.php:828
68
  msgid "Watermak has not been selected yet."
69
  msgstr "Znak wodny nie został jeszcze wybrany."
70
 
71
+ #: ../image-watermark.php:341
72
  msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
73
  msgstr "Ten rodzaj obrazka nie może być znakiem wodnym. Użyj JPEG, PNG or GIF."
74
 
75
+ #: ../image-watermark.php:343
76
  msgid "Add watermark"
77
  msgstr "Dodaj znak wodny"
78
 
79
+ #: ../image-watermark.php:360
80
  msgid "Are you sure you want to reset settings to defaults?"
81
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
82
 
83
+ #: ../image-watermark.php:417
84
  msgid "Image Watermark Options"
85
  msgstr "Ustawienia znaku wodnego"
86
 
87
+ #: ../image-watermark.php:418
88
  msgid "Watermark"
89
  msgstr "Znak wodny"
90
 
91
+ #: ../image-watermark.php:444
92
  msgid "Image Watermark will not work properly without GD PHP extension."
93
  msgstr ""
94
  "Znak wodny nie może funkcjonować bez zainstalowanego rozszerzenia GD PHP."
95
 
96
+ #: ../image-watermark.php:586
97
  msgid "Settings saved."
98
  msgstr "Ustawienia zostały zapisane."
99
 
100
+ #: ../image-watermark.php:599
101
  msgid "Settings restored to defaults."
102
  msgstr "Ustawienia zostały przywrócone do domyślnych."
103
 
104
+ #: ../image-watermark.php:619
105
  msgid "Watermark will not be applied when <b>watermark image is not set</b>."
106
  msgstr ""
107
  "Znak wodny nie zostanie dodany ponieważ <b>nie wybrano obrazka dla znaku "
108
  "wodnego</b>."
109
 
110
+ #: ../image-watermark.php:622
111
  msgid "Watermark will not be applied when <b>no image sizes are selected</b>."
112
  msgstr ""
113
  "Znak wodny nie zostanie dodany ponieważ <b>nie wybrano wielkości obrazków</"
114
  "b>."
115
 
116
+ #: ../image-watermark.php:628
117
  msgid ""
118
  "Watermark will not be applied while frontend image upload if <b>watermark "
119
  "image is not set</b>."
121
  "Znak wodny nie zostanie dodany w trakcie wczytywania na froncie strony jeśli "
122
  "<b>nie wybrano obrazka dla znaku wodnego</b>."
123
 
124
+ #: ../image-watermark.php:631
125
  msgid ""
126
  "Watermark will not be applied while frontend image upload if <b>no image "
127
  "sizes are selected</b>."
129
  "Znak wodny nie zostanie dodany w trakcie wczytywania na froncie strony jeśli "
130
  "<b>nie wybrano wielkości obrazków</b>."
131
 
132
+ #: ../image-watermark.php:638
133
  msgid "Image Watermark Settings"
134
  msgstr "Ustawienia znaku wodnego"
135
 
136
+ #: ../image-watermark.php:642
137
+ msgid "Image Watermark"
138
+ msgstr "Znak wodny"
139
+
140
+ #: ../image-watermark.php:644
141
+ msgid "Need support?"
142
+ msgstr "Potrzebujesz pomocy?"
143
+
144
+ #: ../image-watermark.php:645
145
+ msgid ""
146
+ "If you are having problems with this plugin, please talk about them in the"
147
+ msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o tym na"
148
+
149
+ #: ../image-watermark.php:645
150
+ msgid "Support forum"
151
+ msgstr "Forum pomocy"
152
+
153
+ #: ../image-watermark.php:647
154
+ msgid "Do you like this plugin?"
155
+ msgstr "Lubisz tę wtyczkę?"
156
+
157
+ #: ../image-watermark.php:648
158
+ msgid "Rate it 5"
159
+ msgstr "Oceń ją na 5"
160
+
161
+ #: ../image-watermark.php:648
162
+ msgid "on WordPress.org"
163
+ msgstr "na WordPress.org"
164
+
165
+ #: ../image-watermark.php:649
166
+ msgid "Blog about it & link to the"
167
+ msgstr "Napisz o niej i dodaj link do"
168
+
169
+ #: ../image-watermark.php:649
170
+ msgid "plugin page"
171
+ msgstr "strony wtyczki"
172
+
173
+ #: ../image-watermark.php:650
174
+ msgid "Check out our other"
175
+ msgstr "Sprawdź inne"
176
+
177
+ #: ../image-watermark.php:650
178
+ msgid "WordPress plugins"
179
+ msgstr "wtyczki do WordPressa"
180
+
181
+ #: ../image-watermark.php:653
182
+ msgid "Created by"
183
+ msgstr "Stworzone przez"
184
+
185
+ #: ../image-watermark.php:658
186
  msgid "General settings"
187
  msgstr "Ustawienia ogólne"
188
 
189
+ #: ../image-watermark.php:661
190
  msgid "Automatic watermarking"
191
  msgstr "Automatyczne dodawanie znaku wodnego"
192
 
193
+ #: ../image-watermark.php:665 ../image-watermark.php:681
194
+ #: ../image-watermark.php:728 ../image-watermark.php:744
195
  msgid "on"
196
  msgstr "włączony"
197
 
198
+ #: ../image-watermark.php:667 ../image-watermark.php:683
199
+ #: ../image-watermark.php:730 ../image-watermark.php:746
200
  msgid "off"
201
  msgstr "wyłączony"
202
 
203
+ #: ../image-watermark.php:670
204
  msgid "Enable or disable watermark for uploaded images."
205
  msgstr "Włącz lub wyłącz dodawanie znaku wodnego do wgrywanych obrazków."
206
 
207
+ #: ../image-watermark.php:677
208
  msgid "Manual watermarking"
209
  msgstr "Ręczne dodawanie znaku wodnego"
210
 
211
+ #: ../image-watermark.php:686
212
  msgid "Enable or disable Apply Watermark option for images in Media Library."
213
  msgstr ""
214
  "Włącz lub wyłącz dodawanie znaku wodnego do obrazków w Bibliotece mediów."
215
 
216
+ #: ../image-watermark.php:693
217
  msgid "Enable watermark for"
218
  msgstr "Dodawaj znak wodny do"
219
 
220
+ #: ../image-watermark.php:702
221
  msgid ""
222
+ "Check image sizes on which watermark should appear.<br /><strong>IMPORTANT:</"
223
+ "strong> checking full size is NOT recommended as it's the original image. "
224
+ "You may need it later - for removing or changing watermark, image sizes "
225
+ "regeneration or any other image manipulations. Use it only if you know what "
226
+ "you are doing."
227
  msgstr ""
228
+ "Zaznacz rozmiary obrazków dla których chcesz dodać znak wodny. <br /"
229
+ "><strong>WAŻNE:</strong> zaznaczanie pełnego rozmiaru jest NIE polecane, "
230
+ "ponieważ dotyczy obrazków w oryginale, które mogą być Ci później potrzebne - "
231
+ "do usuwania znaku wodnego lub jego zmiany, regenerowania rozmiarów obrazków "
232
+ "lub innych modyfikacji. Zaznacz ten rozmiar tylko wtedy, gdy naprawdę wiesz "
233
+ "co robisz."
234
+
235
+ #: ../image-watermark.php:708
236
  msgid "everywhere"
237
  msgstr "wszędzie"
238
 
239
+ #: ../image-watermark.php:709
240
  msgid "on selected post types only"
241
  msgstr "na wybranych typach wpisów"
242
 
243
+ #: ../image-watermark.php:717
244
  msgid ""
245
  "Check custom post types on which watermark should be applied to uploaded "
246
  "images."
248
  "Zaznacz własne typy wpisów w których znak wodny będzie dodawany do "
249
  "wgrywanych obrazków."
250
 
251
+ #: ../image-watermark.php:724
252
  msgid "Automatic frontend watermarking"
253
  msgstr "Znaku wodny na froncie strony"
254
 
255
+ #: ../image-watermark.php:733
256
  msgid ""
257
  "Enable or disable watermark for frontend image uploading. (uploading script "
258
+ "is not included, but you may use a plugin or custom code). <strong>Notice:</"
259
+ "strong> This functionality works only if uploaded images are processed using "
260
+ "WordPress native upload methods."
261
  msgstr ""
262
  "Włącz lub wyłącz dodawanie znaku wodnego wtrakcie wgrywania obrazków na "
263
  "froncie strony. (skrypt umożliwiający wczytywanie nie jest dostarczony, ale "
264
+ "możesz użyć wtyczki lub własnego kodu). <strong>Uwaga:</strong> ta "
265
+ "funkcjonalność działa tylko jeśli wgrywane obrazki są przetwarzane z "
266
+ "wykorzystaniem domyślnych metod WordPressa."
267
 
268
+ #: ../image-watermark.php:740
269
  msgid "Plugin deactivation"
270
  msgstr "Deaktywacja wtyczki"
271
 
272
+ #: ../image-watermark.php:749
273
  msgid "Delete all database settings on plugin deactivation."
274
  msgstr "Usuń wszystkie dane wtyczki po jej deaktywacji."
275
 
276
+ #: ../image-watermark.php:755
277
  msgid "Watermark position"
278
  msgstr "Pozycja znaku wodnego"
279
 
280
+ #: ../image-watermark.php:758
281
  msgid "Watermark alignment"
282
  msgstr "Wyrównanie znaku wodnego"
283
 
284
+ #: ../image-watermark.php:773
285
  msgid "Choose the position of watermark image."
286
  msgstr "Wybierz pozycję znaku wodnego na obrazkach"
287
 
288
+ #: ../image-watermark.php:778
289
  msgid "Watermark offset"
290
  msgstr "Korekcja pozycji"
291
 
292
+ #: ../image-watermark.php:781 ../image-watermark.php:861
293
  msgid "x:"
294
  msgstr "x:"
295
 
296
+ #: ../image-watermark.php:781 ../image-watermark.php:783
297
+ #: ../image-watermark.php:861 ../image-watermark.php:863
298
  msgid "px"
299
  msgstr "pikseli"
300
 
301
+ #: ../image-watermark.php:783 ../image-watermark.php:863
302
  msgid "y:"
303
  msgstr "y:"
304
 
305
+ #: ../image-watermark.php:799 ../image-watermark.php:803
306
  msgid "Watermark image"
307
  msgstr "Obrazek znaku wodnego"
308
 
309
+ #: ../image-watermark.php:800
310
  msgid ""
311
  "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
312
  msgstr ""
313
  "Skonfiguruj obrazek znaku wodnego. Dozwolone formaty plików to: JPEG, PNG, "
314
  "GIF."
315
 
316
+ #: ../image-watermark.php:806
317
  msgid "Select image"
318
  msgstr "Wybierz obrazek"
319
 
320
+ #: ../image-watermark.php:807
321
  msgid "Turn off image"
322
  msgstr "Wyłącz obrazek"
323
 
324
+ #: ../image-watermark.php:808
325
  msgid "You have to save changes after the selection or removal of the image."
326
  msgstr "Po zapisaniu zmian lub wybraniu obrazka powienieneś zapisać zmiany."
327
 
328
+ #: ../image-watermark.php:812
329
  msgid "Watermark preview"
330
  msgstr "Podgląd obrazka"
331
 
332
+ #: ../image-watermark.php:842
333
  msgid "Watermark size"
334
  msgstr "Wielkość znaku wodnego"
335
 
336
+ #: ../image-watermark.php:846
337
  msgid "original"
338
  msgstr "oryginalna"
339
 
340
+ #: ../image-watermark.php:848
341
  msgid "custom"
342
  msgstr "własna"
343
 
344
+ #: ../image-watermark.php:850
345
  msgid "scaled"
346
  msgstr "skalowana"
347
 
348
+ #: ../image-watermark.php:853
349
  msgid "Select method of aplying watermark size."
350
  msgstr "Wybierz sposób określania wielkości znaku wodnego."
351
 
352
+ #: ../image-watermark.php:858
353
  msgid "Watermark custom size"
354
  msgstr "Własna wielkość"
355
 
356
+ #: ../image-watermark.php:865
357
  msgid "Those dimensions will be used if \"custom\" method is selected above."
358
  msgstr ""
359
  "Te wymiary zostaną zastosowane, jeśli wybrałeś \"własną\" wielkość znaku "
360
  "wodnego. "
361
 
362
+ #: ../image-watermark.php:869
363
  msgid "Scale of watermark in relation to image width"
364
  msgstr "Wielkość znaku wodnego w stosunku do szerokości obrazków"
365
 
366
+ #: ../image-watermark.php:879
367
  msgid ""
368
  "This value will be used if \"scaled\" method if selected above. <br />Enter "
369
  "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
374
  "że wielkość znaku wodnego będzie równa wielkości obrazka, do którego jest "
375
  "dodawany."
376
 
377
+ #: ../image-watermark.php:883
378
  msgid "Watermark transparency / opacity"
379
  msgstr "Przezroczystość znaku wodnego"
380
 
381
+ #: ../image-watermark.php:893
382
  msgid ""
383
  "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
384
  "transparent, 100 shows it as is."
386
  "Wpisz liczbę z zakresu od 0 do 100. Wpisanie 0 spowoduje, że znak wodny "
387
  "będzie całkowicie przezroczysty, 100 że widoczny taki jak jest."
388
 
389
+ #: ../image-watermark.php:897
390
  msgid "Image quality"
391
  msgstr "Jakość obrazka"
392
 
393
+ #: ../image-watermark.php:907
394
  msgid "Set output image quality."
395
  msgstr "Wybierz jakość obrazka po nadaniu znaku wodnego"
396
 
397
+ #: ../image-watermark.php:911
398
  msgid "Image format"
399
  msgstr "Format obrazka"
400
 
401
+ #: ../image-watermark.php:915
402
  msgid "baseline"
403
  msgstr "baseline"
404
 
405
+ #: ../image-watermark.php:917
406
  msgid "progressive"
407
  msgstr "progressive"
408
 
409
+ #: ../image-watermark.php:921
410
  msgid "Select baseline or progressive image format."
411
  msgstr "Wybierz format obrazu."
412
 
413
+ #: ../image-watermark.php:927
414
  msgid "Image protection"
415
  msgstr "Ochrona obrazków"
416
 
417
+ #: ../image-watermark.php:930
418
  msgid "Disable right mouse click on images"
419
  msgstr "Wyłącz możliwość kliknięcia prawym przyciskiem myszy na obrazku"
420
 
421
+ #: ../image-watermark.php:934
422
  msgid "Prevent drag and drop"
423
  msgstr "Wyłącz możliwość przeciągania i upuszczania obrazków"
424
 
425
+ #: ../image-watermark.php:938
426
  msgid "Enable image protection for logged-in users also"
427
  msgstr "Włącz ochronę zdjęć także dla zalogowanych użytkowników"
428
 
429
+ #: ../image-watermark.php:943
430
  msgid "Save Changes"
431
  msgstr "Zapisz zmiany"
432
 
433
+ #: ../image-watermark.php:944
434
  msgid "Reset to defaults"
435
  msgstr "Przywróć domyślne"
436
 
437
+ #~ msgid ""
438
+ #~ "Check image sizes on which watermark should appear. <b>Notice:</b> "
439
+ #~ "checking full size is not recommened as it's the original image."
440
+ #~ msgstr ""
441
+ #~ "Zaznacz wielkości obazków dla których będzie dodany znak wodny. <b>Uwaga:"
442
+ #~ "</b> zaznaczenie pełnej wielkości nie jest rekomendowane, ponieważ jest "
443
+ #~ "to oryginał obrazka."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
444
 
445
  #, fuzzy
446
  #~ msgid "Enable or disable watermark for uploaded images on frontend."
languages/image-watermark.pot CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
- "POT-Creation-Date: 2013-10-02 13:01+0100\n"
5
- "PO-Revision-Date: 2013-10-02 13:01+0100\n"
6
- "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\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"
@@ -17,378 +17,381 @@ msgstr ""
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 ""
24
 
25
- #: ../image-watermark.php:215
26
  msgid ""
27
  "Watermark could not be applied to selected files or no valid images (JPEG, "
28
  "PNG) were selected."
29
  msgstr ""
30
 
31
- #: ../image-watermark.php:215 ../image-watermark.php:219
32
  msgid "Skipped files"
33
  msgstr ""
34
 
35
- #: ../image-watermark.php:219
36
  #, php-format
37
  msgid "Watermark was succesfully applied to 1 image."
38
  msgid_plural "Watermark was succesfully applied to %s images."
39
  msgstr[0] ""
40
  msgstr[1] ""
41
 
42
- #: ../image-watermark.php:262
43
  msgid "Support"
44
  msgstr ""
45
 
46
- #: ../image-watermark.php:284
47
  msgid "Settings"
48
  msgstr ""
49
 
50
- #: ../image-watermark.php:315
51
  msgid "Apply watermark"
52
  msgstr ""
53
 
54
- #: ../image-watermark.php:335
55
  msgid "Select watermark"
56
  msgstr ""
57
 
58
- #: ../image-watermark.php:336 ../image-watermark.php:813
59
  msgid "Original size"
60
  msgstr ""
61
 
62
- #: ../image-watermark.php:337 ../image-watermark.php:807
63
  msgid "Watermak has not been selected yet."
64
  msgstr ""
65
 
66
- #: ../image-watermark.php:338
67
  msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
68
  msgstr ""
69
 
70
- #: ../image-watermark.php:340
71
  msgid "Add watermark"
72
  msgstr ""
73
 
74
- #: ../image-watermark.php:357
75
  msgid "Are you sure you want to reset settings to defaults?"
76
  msgstr ""
77
 
78
- #: ../image-watermark.php:412
79
  msgid "Image Watermark Options"
80
  msgstr ""
81
 
82
- #: ../image-watermark.php:413
83
  msgid "Watermark"
84
  msgstr ""
85
 
86
- #: ../image-watermark.php:439
87
  msgid "Image Watermark will not work properly without GD PHP extension."
88
  msgstr ""
89
 
90
- #: ../image-watermark.php:581
91
  msgid "Settings saved."
92
  msgstr ""
93
 
94
- #: ../image-watermark.php:594
95
  msgid "Settings restored to defaults."
96
  msgstr ""
97
 
98
- #: ../image-watermark.php:614
99
  msgid "Watermark will not be applied when <b>watermark image is not set</b>."
100
  msgstr ""
101
 
102
- #: ../image-watermark.php:617
103
  msgid "Watermark will not be applied when <b>no image sizes are selected</b>."
104
  msgstr ""
105
 
106
- #: ../image-watermark.php:623
107
  msgid ""
108
  "Watermark will not be applied while frontend image upload if <b>watermark "
109
  "image is not set</b>."
110
  msgstr ""
111
 
112
- #: ../image-watermark.php:626
113
  msgid ""
114
  "Watermark will not be applied while frontend image upload if <b>no image "
115
  "sizes are selected</b>."
116
  msgstr ""
117
 
118
- #: ../image-watermark.php:633
119
  msgid "Image Watermark Settings"
120
  msgstr ""
121
 
122
- #: ../image-watermark.php:637
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  msgid "General settings"
124
  msgstr ""
125
 
126
- #: ../image-watermark.php:640
127
  msgid "Automatic watermarking"
128
  msgstr ""
129
 
130
- #: ../image-watermark.php:644 ../image-watermark.php:660
131
- #: ../image-watermark.php:707 ../image-watermark.php:723
132
  msgid "on"
133
  msgstr ""
134
 
135
- #: ../image-watermark.php:646 ../image-watermark.php:662
136
- #: ../image-watermark.php:709 ../image-watermark.php:725
137
  msgid "off"
138
  msgstr ""
139
 
140
- #: ../image-watermark.php:649
141
  msgid "Enable or disable watermark for uploaded images."
142
  msgstr ""
143
 
144
- #: ../image-watermark.php:656
145
  msgid "Manual watermarking"
146
  msgstr ""
147
 
148
- #: ../image-watermark.php:665
149
  msgid "Enable or disable Apply Watermark option for images in Media Library."
150
  msgstr ""
151
 
152
- #: ../image-watermark.php:672
153
  msgid "Enable watermark for"
154
  msgstr ""
155
 
156
- #: ../image-watermark.php:681
157
  msgid ""
158
- "Check image sizes on which watermark should appear. <b>Notice:</b> checking "
159
- "full size is not recommened as it's the original image."
 
 
 
160
  msgstr ""
161
 
162
- #: ../image-watermark.php:687
163
  msgid "everywhere"
164
  msgstr ""
165
 
166
- #: ../image-watermark.php:688
167
  msgid "on selected post types only"
168
  msgstr ""
169
 
170
- #: ../image-watermark.php:696
171
  msgid ""
172
  "Check custom post types on which watermark should be applied to uploaded "
173
  "images."
174
  msgstr ""
175
 
176
- #: ../image-watermark.php:703
177
  msgid "Automatic frontend watermarking"
178
  msgstr ""
179
 
180
- #: ../image-watermark.php:712
181
  msgid ""
182
  "Enable or disable watermark for frontend image uploading. (uploading script "
183
- "is not included, but you may use a plugin or custom code). Notice: This "
184
- "functionality works only if uploaded images are processed using WordPress "
185
- "native upload methods."
186
  msgstr ""
187
 
188
- #: ../image-watermark.php:719
189
  msgid "Plugin deactivation"
190
  msgstr ""
191
 
192
- #: ../image-watermark.php:728
193
  msgid "Delete all database settings on plugin deactivation."
194
  msgstr ""
195
 
196
- #: ../image-watermark.php:734
197
  msgid "Watermark position"
198
  msgstr ""
199
 
200
- #: ../image-watermark.php:737
201
  msgid "Watermark alignment"
202
  msgstr ""
203
 
204
- #: ../image-watermark.php:752
205
  msgid "Choose the position of watermark image."
206
  msgstr ""
207
 
208
- #: ../image-watermark.php:757
209
  msgid "Watermark offset"
210
  msgstr ""
211
 
212
- #: ../image-watermark.php:760 ../image-watermark.php:840
213
  msgid "x:"
214
  msgstr ""
215
 
216
- #: ../image-watermark.php:760 ../image-watermark.php:762
217
- #: ../image-watermark.php:840 ../image-watermark.php:842
218
  msgid "px"
219
  msgstr ""
220
 
221
- #: ../image-watermark.php:762 ../image-watermark.php:842
222
  msgid "y:"
223
  msgstr ""
224
 
225
- #: ../image-watermark.php:778 ../image-watermark.php:782
226
  msgid "Watermark image"
227
  msgstr ""
228
 
229
- #: ../image-watermark.php:779
230
  msgid ""
231
  "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
232
  msgstr ""
233
 
234
- #: ../image-watermark.php:785
235
  msgid "Select image"
236
  msgstr ""
237
 
238
- #: ../image-watermark.php:786
239
  msgid "Turn off image"
240
  msgstr ""
241
 
242
- #: ../image-watermark.php:787
243
  msgid "You have to save changes after the selection or removal of the image."
244
  msgstr ""
245
 
246
- #: ../image-watermark.php:791
247
  msgid "Watermark preview"
248
  msgstr ""
249
 
250
- #: ../image-watermark.php:821
251
  msgid "Watermark size"
252
  msgstr ""
253
 
254
- #: ../image-watermark.php:825
255
  msgid "original"
256
  msgstr ""
257
 
258
- #: ../image-watermark.php:827
259
  msgid "custom"
260
  msgstr ""
261
 
262
- #: ../image-watermark.php:829
263
  msgid "scaled"
264
  msgstr ""
265
 
266
- #: ../image-watermark.php:832
267
  msgid "Select method of aplying watermark size."
268
  msgstr ""
269
 
270
- #: ../image-watermark.php:837
271
  msgid "Watermark custom size"
272
  msgstr ""
273
 
274
- #: ../image-watermark.php:844
275
  msgid "Those dimensions will be used if \"custom\" method is selected above."
276
  msgstr ""
277
 
278
- #: ../image-watermark.php:848
279
  msgid "Scale of watermark in relation to image width"
280
  msgstr ""
281
 
282
- #: ../image-watermark.php:858
283
  msgid ""
284
  "This value will be used if \"scaled\" method if selected above. <br />Enter "
285
  "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
286
  "width of the image it is applied to."
287
  msgstr ""
288
 
289
- #: ../image-watermark.php:862
290
  msgid "Watermark transparency / opacity"
291
  msgstr ""
292
 
293
- #: ../image-watermark.php:872
294
  msgid ""
295
  "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
296
  "transparent, 100 shows it as is."
297
  msgstr ""
298
 
299
- #: ../image-watermark.php:876
300
  msgid "Image quality"
301
  msgstr ""
302
 
303
- #: ../image-watermark.php:886
304
  msgid "Set output image quality."
305
  msgstr ""
306
 
307
- #: ../image-watermark.php:890
308
  msgid "Image format"
309
  msgstr ""
310
 
311
- #: ../image-watermark.php:894
312
  msgid "baseline"
313
  msgstr ""
314
 
315
- #: ../image-watermark.php:896
316
  msgid "progressive"
317
  msgstr ""
318
 
319
- #: ../image-watermark.php:900
320
  msgid "Select baseline or progressive image format."
321
  msgstr ""
322
 
323
- #: ../image-watermark.php:906
324
  msgid "Image protection"
325
  msgstr ""
326
 
327
- #: ../image-watermark.php:909
328
  msgid "Disable right mouse click on images"
329
  msgstr ""
330
 
331
- #: ../image-watermark.php:913
332
  msgid "Prevent drag and drop"
333
  msgstr ""
334
 
335
- #: ../image-watermark.php:917
336
  msgid "Enable image protection for logged-in users also"
337
  msgstr ""
338
 
339
- #: ../image-watermark.php:922
340
  msgid "Save Changes"
341
  msgstr ""
342
 
343
- #: ../image-watermark.php:923
344
  msgid "Reset to defaults"
345
  msgstr ""
346
-
347
- #: ../image-watermark.php:928
348
- msgid "Image Watermark"
349
- msgstr ""
350
-
351
- #: ../image-watermark.php:930
352
- msgid "Need support?"
353
- msgstr ""
354
-
355
- #: ../image-watermark.php:931
356
- msgid ""
357
- "If you are having problems with this plugin, please talk about them in the"
358
- msgstr ""
359
-
360
- #: ../image-watermark.php:931
361
- msgid "Support forum"
362
- msgstr ""
363
-
364
- #: ../image-watermark.php:933
365
- msgid "Do you like this plugin?"
366
- msgstr ""
367
-
368
- #: ../image-watermark.php:934
369
- msgid "Rate it 5"
370
- msgstr ""
371
-
372
- #: ../image-watermark.php:934
373
- msgid "on WordPress.org"
374
- msgstr ""
375
-
376
- #: ../image-watermark.php:935
377
- msgid "Blog about it & link to the"
378
- msgstr ""
379
-
380
- #: ../image-watermark.php:935
381
- msgid "plugin page"
382
- msgstr ""
383
-
384
- #: ../image-watermark.php:936
385
- msgid "Check out our other"
386
- msgstr ""
387
-
388
- #: ../image-watermark.php:936
389
- msgid "WordPress plugins"
390
- msgstr ""
391
-
392
- #: ../image-watermark.php:939
393
- msgid "Created by"
394
- msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WordPress Watermark\n"
4
+ "POT-Creation-Date: 2014-02-14 11:40+0100\n"
5
+ "PO-Revision-Date: 2014-02-14 11:40+0100\n"
6
+ "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.pl>\n"
8
+ "Language: en\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.6.4\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;esc_attr__;esc_attr_e;"
14
  "_n:1,2\n"
15
  "X-Poedit-Basepath: .\n"
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
  "X-Poedit-SearchPath-0: ..\n"
19
 
20
+ #: ../image-watermark.php:29
21
  msgid ""
22
  "Sorry, Image Watermark plugin requires at least PHP 5.0 and WP 3.5 or higher."
23
  msgstr ""
24
 
25
+ #: ../image-watermark.php:218
26
  msgid ""
27
  "Watermark could not be applied to selected files or no valid images (JPEG, "
28
  "PNG) were selected."
29
  msgstr ""
30
 
31
+ #: ../image-watermark.php:218 ../image-watermark.php:222
32
  msgid "Skipped files"
33
  msgstr ""
34
 
35
+ #: ../image-watermark.php:222
36
  #, php-format
37
  msgid "Watermark was succesfully applied to 1 image."
38
  msgid_plural "Watermark was succesfully applied to %s images."
39
  msgstr[0] ""
40
  msgstr[1] ""
41
 
42
+ #: ../image-watermark.php:265
43
  msgid "Support"
44
  msgstr ""
45
 
46
+ #: ../image-watermark.php:287
47
  msgid "Settings"
48
  msgstr ""
49
 
50
+ #: ../image-watermark.php:318
51
  msgid "Apply watermark"
52
  msgstr ""
53
 
54
+ #: ../image-watermark.php:338
55
  msgid "Select watermark"
56
  msgstr ""
57
 
58
+ #: ../image-watermark.php:339 ../image-watermark.php:834
59
  msgid "Original size"
60
  msgstr ""
61
 
62
+ #: ../image-watermark.php:340 ../image-watermark.php:828
63
  msgid "Watermak has not been selected yet."
64
  msgstr ""
65
 
66
+ #: ../image-watermark.php:341
67
  msgid "This image is not supported as watermark. Use JPEG, PNG or GIF."
68
  msgstr ""
69
 
70
+ #: ../image-watermark.php:343
71
  msgid "Add watermark"
72
  msgstr ""
73
 
74
+ #: ../image-watermark.php:360
75
  msgid "Are you sure you want to reset settings to defaults?"
76
  msgstr ""
77
 
78
+ #: ../image-watermark.php:417
79
  msgid "Image Watermark Options"
80
  msgstr ""
81
 
82
+ #: ../image-watermark.php:418
83
  msgid "Watermark"
84
  msgstr ""
85
 
86
+ #: ../image-watermark.php:444
87
  msgid "Image Watermark will not work properly without GD PHP extension."
88
  msgstr ""
89
 
90
+ #: ../image-watermark.php:586
91
  msgid "Settings saved."
92
  msgstr ""
93
 
94
+ #: ../image-watermark.php:599
95
  msgid "Settings restored to defaults."
96
  msgstr ""
97
 
98
+ #: ../image-watermark.php:619
99
  msgid "Watermark will not be applied when <b>watermark image is not set</b>."
100
  msgstr ""
101
 
102
+ #: ../image-watermark.php:622
103
  msgid "Watermark will not be applied when <b>no image sizes are selected</b>."
104
  msgstr ""
105
 
106
+ #: ../image-watermark.php:628
107
  msgid ""
108
  "Watermark will not be applied while frontend image upload if <b>watermark "
109
  "image is not set</b>."
110
  msgstr ""
111
 
112
+ #: ../image-watermark.php:631
113
  msgid ""
114
  "Watermark will not be applied while frontend image upload if <b>no image "
115
  "sizes are selected</b>."
116
  msgstr ""
117
 
118
+ #: ../image-watermark.php:638
119
  msgid "Image Watermark Settings"
120
  msgstr ""
121
 
122
+ #: ../image-watermark.php:642
123
+ msgid "Image Watermark"
124
+ msgstr ""
125
+
126
+ #: ../image-watermark.php:644
127
+ msgid "Need support?"
128
+ msgstr ""
129
+
130
+ #: ../image-watermark.php:645
131
+ msgid ""
132
+ "If you are having problems with this plugin, please talk about them in the"
133
+ msgstr ""
134
+
135
+ #: ../image-watermark.php:645
136
+ msgid "Support forum"
137
+ msgstr ""
138
+
139
+ #: ../image-watermark.php:647
140
+ msgid "Do you like this plugin?"
141
+ msgstr ""
142
+
143
+ #: ../image-watermark.php:648
144
+ msgid "Rate it 5"
145
+ msgstr ""
146
+
147
+ #: ../image-watermark.php:648
148
+ msgid "on WordPress.org"
149
+ msgstr ""
150
+
151
+ #: ../image-watermark.php:649
152
+ msgid "Blog about it & link to the"
153
+ msgstr ""
154
+
155
+ #: ../image-watermark.php:649
156
+ msgid "plugin page"
157
+ msgstr ""
158
+
159
+ #: ../image-watermark.php:650
160
+ msgid "Check out our other"
161
+ msgstr ""
162
+
163
+ #: ../image-watermark.php:650
164
+ msgid "WordPress plugins"
165
+ msgstr ""
166
+
167
+ #: ../image-watermark.php:653
168
+ msgid "Created by"
169
+ msgstr ""
170
+
171
+ #: ../image-watermark.php:658
172
  msgid "General settings"
173
  msgstr ""
174
 
175
+ #: ../image-watermark.php:661
176
  msgid "Automatic watermarking"
177
  msgstr ""
178
 
179
+ #: ../image-watermark.php:665 ../image-watermark.php:681
180
+ #: ../image-watermark.php:728 ../image-watermark.php:744
181
  msgid "on"
182
  msgstr ""
183
 
184
+ #: ../image-watermark.php:667 ../image-watermark.php:683
185
+ #: ../image-watermark.php:730 ../image-watermark.php:746
186
  msgid "off"
187
  msgstr ""
188
 
189
+ #: ../image-watermark.php:670
190
  msgid "Enable or disable watermark for uploaded images."
191
  msgstr ""
192
 
193
+ #: ../image-watermark.php:677
194
  msgid "Manual watermarking"
195
  msgstr ""
196
 
197
+ #: ../image-watermark.php:686
198
  msgid "Enable or disable Apply Watermark option for images in Media Library."
199
  msgstr ""
200
 
201
+ #: ../image-watermark.php:693
202
  msgid "Enable watermark for"
203
  msgstr ""
204
 
205
+ #: ../image-watermark.php:702
206
  msgid ""
207
+ "Check image sizes on which watermark should appear.<br /><strong>IMPORTANT:</"
208
+ "strong> checking full size is NOT recommended as it's the original image. "
209
+ "You may need it later - for removing or changing watermark, image sizes "
210
+ "regeneration or any other image manipulations. Use it only if you know what "
211
+ "you are doing."
212
  msgstr ""
213
 
214
+ #: ../image-watermark.php:708
215
  msgid "everywhere"
216
  msgstr ""
217
 
218
+ #: ../image-watermark.php:709
219
  msgid "on selected post types only"
220
  msgstr ""
221
 
222
+ #: ../image-watermark.php:717
223
  msgid ""
224
  "Check custom post types on which watermark should be applied to uploaded "
225
  "images."
226
  msgstr ""
227
 
228
+ #: ../image-watermark.php:724
229
  msgid "Automatic frontend watermarking"
230
  msgstr ""
231
 
232
+ #: ../image-watermark.php:733
233
  msgid ""
234
  "Enable or disable watermark for frontend image uploading. (uploading script "
235
+ "is not included, but you may use a plugin or custom code). <strong>Notice:</"
236
+ "strong> This functionality works only if uploaded images are processed using "
237
+ "WordPress native upload methods."
238
  msgstr ""
239
 
240
+ #: ../image-watermark.php:740
241
  msgid "Plugin deactivation"
242
  msgstr ""
243
 
244
+ #: ../image-watermark.php:749
245
  msgid "Delete all database settings on plugin deactivation."
246
  msgstr ""
247
 
248
+ #: ../image-watermark.php:755
249
  msgid "Watermark position"
250
  msgstr ""
251
 
252
+ #: ../image-watermark.php:758
253
  msgid "Watermark alignment"
254
  msgstr ""
255
 
256
+ #: ../image-watermark.php:773
257
  msgid "Choose the position of watermark image."
258
  msgstr ""
259
 
260
+ #: ../image-watermark.php:778
261
  msgid "Watermark offset"
262
  msgstr ""
263
 
264
+ #: ../image-watermark.php:781 ../image-watermark.php:861
265
  msgid "x:"
266
  msgstr ""
267
 
268
+ #: ../image-watermark.php:781 ../image-watermark.php:783
269
+ #: ../image-watermark.php:861 ../image-watermark.php:863
270
  msgid "px"
271
  msgstr ""
272
 
273
+ #: ../image-watermark.php:783 ../image-watermark.php:863
274
  msgid "y:"
275
  msgstr ""
276
 
277
+ #: ../image-watermark.php:799 ../image-watermark.php:803
278
  msgid "Watermark image"
279
  msgstr ""
280
 
281
+ #: ../image-watermark.php:800
282
  msgid ""
283
  "Configure your watermark image. Allowed file formats are: JPEG, PNG, GIF."
284
  msgstr ""
285
 
286
+ #: ../image-watermark.php:806
287
  msgid "Select image"
288
  msgstr ""
289
 
290
+ #: ../image-watermark.php:807
291
  msgid "Turn off image"
292
  msgstr ""
293
 
294
+ #: ../image-watermark.php:808
295
  msgid "You have to save changes after the selection or removal of the image."
296
  msgstr ""
297
 
298
+ #: ../image-watermark.php:812
299
  msgid "Watermark preview"
300
  msgstr ""
301
 
302
+ #: ../image-watermark.php:842
303
  msgid "Watermark size"
304
  msgstr ""
305
 
306
+ #: ../image-watermark.php:846
307
  msgid "original"
308
  msgstr ""
309
 
310
+ #: ../image-watermark.php:848
311
  msgid "custom"
312
  msgstr ""
313
 
314
+ #: ../image-watermark.php:850
315
  msgid "scaled"
316
  msgstr ""
317
 
318
+ #: ../image-watermark.php:853
319
  msgid "Select method of aplying watermark size."
320
  msgstr ""
321
 
322
+ #: ../image-watermark.php:858
323
  msgid "Watermark custom size"
324
  msgstr ""
325
 
326
+ #: ../image-watermark.php:865
327
  msgid "Those dimensions will be used if \"custom\" method is selected above."
328
  msgstr ""
329
 
330
+ #: ../image-watermark.php:869
331
  msgid "Scale of watermark in relation to image width"
332
  msgstr ""
333
 
334
+ #: ../image-watermark.php:879
335
  msgid ""
336
  "This value will be used if \"scaled\" method if selected above. <br />Enter "
337
  "a number ranging from 0 to 100. 100 makes width of watermark image equal to "
338
  "width of the image it is applied to."
339
  msgstr ""
340
 
341
+ #: ../image-watermark.php:883
342
  msgid "Watermark transparency / opacity"
343
  msgstr ""
344
 
345
+ #: ../image-watermark.php:893
346
  msgid ""
347
  "Enter a number ranging from 0 to 100. 0 makes watermark image completely "
348
  "transparent, 100 shows it as is."
349
  msgstr ""
350
 
351
+ #: ../image-watermark.php:897
352
  msgid "Image quality"
353
  msgstr ""
354
 
355
+ #: ../image-watermark.php:907
356
  msgid "Set output image quality."
357
  msgstr ""
358
 
359
+ #: ../image-watermark.php:911
360
  msgid "Image format"
361
  msgstr ""
362
 
363
+ #: ../image-watermark.php:915
364
  msgid "baseline"
365
  msgstr ""
366
 
367
+ #: ../image-watermark.php:917
368
  msgid "progressive"
369
  msgstr ""
370
 
371
+ #: ../image-watermark.php:921
372
  msgid "Select baseline or progressive image format."
373
  msgstr ""
374
 
375
+ #: ../image-watermark.php:927
376
  msgid "Image protection"
377
  msgstr ""
378
 
379
+ #: ../image-watermark.php:930
380
  msgid "Disable right mouse click on images"
381
  msgstr ""
382
 
383
+ #: ../image-watermark.php:934
384
  msgid "Prevent drag and drop"
385
  msgstr ""
386
 
387
+ #: ../image-watermark.php:938
388
  msgid "Enable image protection for logged-in users also"
389
  msgstr ""
390
 
391
+ #: ../image-watermark.php:943
392
  msgid "Save Changes"
393
  msgstr ""
394
 
395
+ #: ../image-watermark.php:944
396
  msgid "Reset to defaults"
397
  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.7.1
7
- Stable tag: 1.2.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -59,6 +59,11 @@ No questions yet.
59
 
60
  == Changelog ==
61
 
 
 
 
 
 
62
  = 1.2.1 =
63
  * New: German translation, thanks to Matthias Siebler
64
 
@@ -116,5 +121,7 @@ Initial release
116
 
117
  == Upgrade Notice ==
118
 
119
- = 1.2.1 =
120
- * New: German translation, thanks to Matthias Siebler
 
 
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.8.1
7
+ Stable tag: 1.3.0
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
59
 
60
  == Changelog ==
61
 
62
+ = 1.3.0 =
63
+ * Tweak: Manual watermarking now works even if selected post types are selected
64
+ * Tweak: UI improvements for WP 3.8
65
+ * Fix: Image protection options not saving properly
66
+
67
  = 1.2.1 =
68
  * New: German translation, thanks to Matthias Siebler
69
 
121
 
122
  == Upgrade Notice ==
123
 
124
+ = 1.3.0 =
125
+ * Tweak: Manual watermarking now works even if selected post types are selected
126
+ * Tweak: UI improvements for WP 3.8
127
+ * Fix: Image protection options not saving properly