jQuery Pin It Button for Images - Version 1.15

Version Description

  • Released 2013-11-06
  • Added 'Image description' option to 'Description source' option
Download this release

Release Info

Developer mrsztuczkens
Plugin Icon wp plugin jQuery Pin It Button for Images
Version 1.15
Comparing to
See all releases

Code changes from version 1.14 to 1.15

jquery-pin-it-button-for-images.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: jQuery Pin It Button For Images
4
  Plugin URI: http://mrsztuczkens.me/jpibfi/
5
  Description: Highlights images on hover and adds a "Pin It" button over them for easy pinning.
6
  Author: Marcin Skrzypiec
7
- Version: 1.14
8
  Author URI: http://mrsztuczkens.me/
9
  */
10
 
@@ -18,7 +18,8 @@ if ( ! function_exists( 'add_action' ) ) {
18
  * CONSTANTS
19
  *
20
  */
21
- define( "JPIBFI_VERSION", "1.14" );
 
22
  define( "JPIBFI_METADATA", "jpibfi_meta" );
23
  define( "JPIBFI_SELECTION_OPTIONS", "jpibfi_selection_options" );
24
  define( "JPIBFI_VISUAL_OPTIONS", "jpibfi_visual_options" );
@@ -83,9 +84,9 @@ function jpibfi_add_plugin_scripts() {
83
  if ( ! ( jpibfi_add_plugin() ) )
84
  return;
85
 
86
- wp_register_style( 'jquery-pin-it-button-style', plugins_url( '/css/style.css', __FILE__ ), array(), JPIBFI_VERSION, 'all' );
87
  wp_enqueue_style( 'jquery-pin-it-button-style' );
88
- wp_enqueue_script( 'jquery-pin-it-button-script', plugins_url( '/js/script.min.js', __FILE__ ), array( 'jquery' ), JPIBFI_VERSION, false );
89
 
90
  $visual_options = get_option( JPIBFI_VISUAL_OPTIONS );
91
  $selection_options = get_option( JPIBFI_SELECTION_OPTIONS );
@@ -178,11 +179,52 @@ function jpibfi_print_header_style_action() {
178
 
179
  add_action( 'wp_head', 'jpibfi_print_header_style_action' );
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  /*
182
  * Adds a hidden field with url and and description of the pin that's used when user uses "Link to individual page"
183
- * Thanks to go brocheafoin, who added most of the code that handles creating description
184
  */
185
- function jpibfi_print_hidden_field_script( $content ) {
186
  if ( ! jpibfi_add_plugin() )
187
  return $content;
188
  global $post;
@@ -205,13 +247,21 @@ function jpibfi_print_hidden_field_script( $content ) {
205
  $attributes_html .= 'data-jpibfi-description ="' . esc_attr( $description ) . '" ';
206
  }
207
 
208
-
209
  $input_html = '<input class="jpibfi" type="hidden" ' . $attributes_html . '>';
210
- return $input_html . $content;
 
 
 
 
 
 
 
 
 
211
  }
212
 
213
- add_filter( "the_content", 'jpibfi_print_hidden_field_script' );
214
- add_filter( "the_excerpt", 'jpibfi_print_hidden_field_script' );
215
 
216
  /*
217
  *
@@ -430,19 +480,19 @@ add_action( 'admin_menu', 'jpibfi_print_admin_page_action' );
430
  */
431
  function jpibfi_add_admin_site_scripts() {
432
 
433
- wp_register_style( 'jquery-pin-it-button-admin-style', plugins_url( '/css/admin.css', __FILE__ ), array(), JPIBFI_VERSION, 'all' );
434
  wp_enqueue_style( 'jquery-pin-it-button-admin-style' );
435
 
436
- wp_enqueue_script( 'jquery-pin-it-button-admin-script', plugins_url( '/js/admin.js', __FILE__ ), array( 'jquery' ), JPIBFI_VERSION, false );
437
 
438
  wp_register_script( 'angular', plugins_url( '/js/angular.min.js', __FILE__ ) , '', '1.0.7', false );
439
- wp_enqueue_script( 'jquery-pin-it-button-admin-angular-script', plugins_url( '/js/admin-angular.js', __FILE__ ), array( 'angular' ), JPIBFI_VERSION, false );
440
 
441
  if ( function_exists( "wp_enqueue_media") ) {
442
  wp_enqueue_media();
443
- wp_enqueue_script( 'jpibfi-upload-new', plugins_url( '/js/upload-button-new.js', __FILE__ ), array(), JPIBFI_VERSION, false );
444
  } else {
445
- wp_enqueue_script( 'jpibfi-upload-old', plugins_url( '/js/upload-button-old.js', __FILE__ ), array('thickbox', 'media-upload' ), JPIBFI_VERSION, false );
446
  }
447
  }
448
 
@@ -867,7 +917,7 @@ function jpibfi_initialize_visual_options() {
867
  'jpibfi_visual_options',
868
  'visual_options_section',
869
  array(
870
- __( 'From where the Pinterest message should be taken.', 'jpibfi' ),
871
  )
872
  );
873
 
@@ -982,6 +1032,7 @@ function jpibfi_description_option_callback( $args ) {
982
  <option value="2" <?php selected ( "2", $description_option ); ?>><?php _e( 'Page description', 'jpibfi' ); ?></option>
983
  <option value="3" <?php selected ( "3", $description_option ); ?>><?php _e( 'Picture title or (if title not available) alt attribute', 'jpibfi' ); ?></option>
984
  <option value="4" <?php selected ( "4", $description_option ); ?>><?php _e( 'Site title (Settings->General)', 'jpibfi' ); ?></option>
 
985
  </select>
986
 
987
  <?php
@@ -1228,12 +1279,73 @@ function jpibfi_debug_callback( $args ){
1228
  echo jpibfi_create_description( $args[0] );
1229
  }
1230
 
 
1231
  /*
1232
  *
1233
  * UTILITIES
1234
  *
1235
  */
1236
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1237
  /*
1238
  * Function returns properly formatted description of a setting
1239
  */
@@ -1339,4 +1451,40 @@ function jpibfi_contains_css_class_names_or_empty( $str ) {
1339
  $only_class_names = jpibfi_is_string_css_class_name( $names [ $i ] );
1340
 
1341
  return $only_class_names;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1342
  }
4
  Plugin URI: http://mrsztuczkens.me/jpibfi/
5
  Description: Highlights images on hover and adds a "Pin It" button over them for easy pinning.
6
  Author: Marcin Skrzypiec
7
+ Version: 1.15
8
  Author URI: http://mrsztuczkens.me/
9
  */
10
 
18
  * CONSTANTS
19
  *
20
  */
21
+ define( "JPIBFI_VERSION", "1.15" );
22
+ define( "JPIBFI_VERSION_MINOR", "a" );
23
  define( "JPIBFI_METADATA", "jpibfi_meta" );
24
  define( "JPIBFI_SELECTION_OPTIONS", "jpibfi_selection_options" );
25
  define( "JPIBFI_VISUAL_OPTIONS", "jpibfi_visual_options" );
84
  if ( ! ( jpibfi_add_plugin() ) )
85
  return;
86
 
87
+ wp_register_style( 'jquery-pin-it-button-style', plugins_url( '/css/style.css', __FILE__ ), array(), JPIBFI_VERSION . JPIBFI_VERSION_MINOR, 'all' );
88
  wp_enqueue_style( 'jquery-pin-it-button-style' );
89
+ wp_enqueue_script( 'jquery-pin-it-button-script', plugins_url( '/js/script.min.js', __FILE__ ), array( 'jquery' ), JPIBFI_VERSION . JPIBFI_VERSION_MINOR, false );
90
 
91
  $visual_options = get_option( JPIBFI_VISUAL_OPTIONS );
92
  $selection_options = get_option( JPIBFI_SELECTION_OPTIONS );
179
 
180
  add_action( 'wp_head', 'jpibfi_print_header_style_action' );
181
 
182
+ /*
183
+ * Adds data-jpibfi-description attribute to each image that is added through media library. The value is the "Description" of the image from media library.
184
+ * This piece of code uses a lot of code from the Photo Protect http://wordpress.org/plugins/photo-protect/ plugin
185
+ */
186
+ function jpibfi_add_description_attribute_to_images( $content ) {
187
+
188
+ $imgPattern = '/<img[^>]*>/i';
189
+ $attrPattern = '/ ([\w]+)[ ]*=[ ]*([\"\'])(.*?)\2/i';
190
+
191
+ preg_match_all($imgPattern, $content, $images, PREG_SET_ORDER);
192
+
193
+ foreach ($images as $img) {
194
+
195
+ preg_match_all($attrPattern, $img[0], $attributes, PREG_SET_ORDER);
196
+
197
+ $newImg = '<img';
198
+ $src = '';
199
+ $id = '';
200
+
201
+ foreach ($attributes as $att) {
202
+ $full = $att[0];
203
+ $name = $att[1];
204
+ $value = $att[3];
205
+
206
+ $newImg .= $full;
207
+
208
+ if ('class' == $name ) {
209
+ $id = jpibfi_get_post_id_from_image_classes( $value );
210
+ } else if ( 'src' == $name ) {
211
+ $src = $value;
212
+ }
213
+ }
214
+
215
+ $description = jpibfi_get_image_description( $id, $src );
216
+ $newImg .= ' data-jpibfi-description="' . esc_attr( $description ) . '" />';
217
+ $content = str_replace($img[0], $newImg, $content);
218
+ }
219
+
220
+ return $content;
221
+ }
222
+
223
  /*
224
  * Adds a hidden field with url and and description of the pin that's used when user uses "Link to individual page"
225
+ * Thanks go to brocheafoin, who added most of the code that handles creating description
226
  */
227
+ function jpibfi_prepare_the_content( $content ) {
228
  if ( ! jpibfi_add_plugin() )
229
  return $content;
230
  global $post;
247
  $attributes_html .= 'data-jpibfi-description ="' . esc_attr( $description ) . '" ';
248
  }
249
 
 
250
  $input_html = '<input class="jpibfi" type="hidden" ' . $attributes_html . '>';
251
+ $content = $input_html . $content;
252
+
253
+ $add_image_descriptions = '5' == $options[ 'description_option' ];
254
+
255
+ //if we need to add data-jpibfi-description to each image
256
+ if ( $add_image_descriptions ){
257
+ $content = jpibfi_add_description_attribute_to_images( $content );
258
+ }
259
+
260
+ return $content;
261
  }
262
 
263
+ add_filter( "the_content", 'jpibfi_prepare_the_content' );
264
+ add_filter( "the_excerpt", 'jpibfi_prepare_the_content' );
265
 
266
  /*
267
  *
480
  */
481
  function jpibfi_add_admin_site_scripts() {
482
 
483
+ wp_register_style( 'jquery-pin-it-button-admin-style', plugins_url( '/css/admin.css', __FILE__ ), array(), JPIBFI_VERSION . JPIBFI_VERSION_MINOR, 'all' );
484
  wp_enqueue_style( 'jquery-pin-it-button-admin-style' );
485
 
486
+ wp_enqueue_script( 'jquery-pin-it-button-admin-script', plugins_url( '/js/admin.js', __FILE__ ), array( 'jquery' ), JPIBFI_VERSION . JPIBFI_VERSION_MINOR, false );
487
 
488
  wp_register_script( 'angular', plugins_url( '/js/angular.min.js', __FILE__ ) , '', '1.0.7', false );
489
+ wp_enqueue_script( 'jquery-pin-it-button-admin-angular-script', plugins_url( '/js/admin-angular.js', __FILE__ ), array( 'angular' ), JPIBFI_VERSION . JPIBFI_VERSION_MINOR, false );
490
 
491
  if ( function_exists( "wp_enqueue_media") ) {
492
  wp_enqueue_media();
493
+ wp_enqueue_script( 'jpibfi-upload-new', plugins_url( '/js/upload-button-new.js', __FILE__ ), array(), JPIBFI_VERSION . JPIBFI_VERSION_MINOR, false );
494
  } else {
495
+ wp_enqueue_script( 'jpibfi-upload-old', plugins_url( '/js/upload-button-old.js', __FILE__ ), array('thickbox', 'media-upload' ), JPIBFI_VERSION . JPIBFI_VERSION_MINOR, false );
496
  }
497
  }
498
 
917
  'jpibfi_visual_options',
918
  'visual_options_section',
919
  array(
920
+ __( 'From where the Pinterest message should be taken. Please note that "Image description" works properly only for images that were added to your Media Library.', 'jpibfi' ),
921
  )
922
  );
923
 
1032
  <option value="2" <?php selected ( "2", $description_option ); ?>><?php _e( 'Page description', 'jpibfi' ); ?></option>
1033
  <option value="3" <?php selected ( "3", $description_option ); ?>><?php _e( 'Picture title or (if title not available) alt attribute', 'jpibfi' ); ?></option>
1034
  <option value="4" <?php selected ( "4", $description_option ); ?>><?php _e( 'Site title (Settings->General)', 'jpibfi' ); ?></option>
1035
+ <option value="5" <?php selected ( "5", $description_option ); ?>><?php _e( 'Image description', 'jpibfi' ); ?></option>
1036
  </select>
1037
 
1038
  <?php
1279
  echo jpibfi_create_description( $args[0] );
1280
  }
1281
 
1282
+
1283
  /*
1284
  *
1285
  * UTILITIES
1286
  *
1287
  */
1288
 
1289
+ //function gets the id of the image by searching for class with wp-image- prefix, otherwise returns empty string
1290
+ function jpibfi_get_post_id_from_image_classes( $class_attribute ) {
1291
+ $classes = preg_split( '/\s+/', $class_attribute, -1, PREG_SPLIT_NO_EMPTY );
1292
+ $prefix = 'wp-image-';
1293
+
1294
+ for ($i = 0; $i < count( $classes ); $i++) {
1295
+
1296
+ if ( $prefix === substr( $classes[ $i ], 0, strlen( $prefix ) ))
1297
+ return str_replace( $prefix, '', $classes[ $i ] );
1298
+
1299
+ }
1300
+
1301
+ return '';
1302
+ }
1303
+
1304
+ /*
1305
+ * Get description for a given image
1306
+ */
1307
+ function jpibfi_get_image_description( $id, $src ) {
1308
+
1309
+ $error_result = jpibfi_get_image_description_error_array();
1310
+
1311
+ $result = is_numeric( $id ) ? jpibfi_get_image_description_by_id( $id ) : $error_result;
1312
+
1313
+ //if description based on id wasn't found
1314
+ if ( $error_result[ 'result' ] === $result[ 'result' ] ) {
1315
+ $id = jpibfi_fjarrett_get_attachment_id_by_url( $src );
1316
+ $result = is_numeric ( $id ) ? jpibfi_get_image_description_by_id( $id ) : $error_result;
1317
+ }
1318
+
1319
+ return $result[ 'description' ];
1320
+ }
1321
+
1322
+ /*
1323
+ * Function searches for image based on $id and returns an array based on results
1324
+ */
1325
+ function jpibfi_get_image_description_by_id( $id ){
1326
+
1327
+ $attachment = get_post( $id );
1328
+
1329
+ if ( null == $attachment ) {
1330
+ $result = jpibfi_get_image_description_error_array();
1331
+ } else {
1332
+ $result = array(
1333
+ 'description' => $attachment->post_content,
1334
+ 'result' => '0'
1335
+ );
1336
+ }
1337
+
1338
+ return $result;
1339
+ }
1340
+
1341
+ //returns error image description array
1342
+ function jpibfi_get_image_description_error_array() {
1343
+ return array(
1344
+ 'description' => '',
1345
+ 'result' => '1'
1346
+ );
1347
+ }
1348
+
1349
  /*
1350
  * Function returns properly formatted description of a setting
1351
  */
1451
  $only_class_names = jpibfi_is_string_css_class_name( $names [ $i ] );
1452
 
1453
  return $only_class_names;
1454
+ }
1455
+
1456
+ /**
1457
+ * Function copied from http://frankiejarrett.com/get-an-attachment-id-by-url-in-wordpress/
1458
+ * Return an ID of an attachment by searching the database with the file URL.
1459
+ *
1460
+ * First checks to see if the $url is pointing to a file that exists in
1461
+ * the wp-content directory. If so, then we search the database for a
1462
+ * partial match consisting of the remaining path AFTER the wp-content
1463
+ * directory. Finally, if a match is found the attachment ID will be
1464
+ * returned.
1465
+ *
1466
+ * @return {int} $attachment
1467
+ */
1468
+ function jpibfi_fjarrett_get_attachment_id_by_url( $url ) {
1469
+
1470
+ // Split the $url into two parts with the wp-content directory as the separator.
1471
+ $parse_url = explode( parse_url( WP_CONTENT_URL, PHP_URL_PATH ), $url );
1472
+
1473
+ // Get the host of the current site and the host of the $url, ignoring www.
1474
+ $this_host = str_ireplace( 'www.', '', parse_url( home_url(), PHP_URL_HOST ) );
1475
+ $file_host = str_ireplace( 'www.', '', parse_url( $url, PHP_URL_HOST ) );
1476
+
1477
+ // Return nothing if there aren't any $url parts or if the current host and $url host do not match.
1478
+ if ( ! isset( $parse_url[1] ) || empty( $parse_url[1] ) || ( $this_host != $file_host ) )
1479
+ return;
1480
+
1481
+ // Now we're going to quickly search the DB for any attachment GUID with a partial path match.
1482
+ // Example: /uploads/2013/05/test-image.jpg
1483
+ global $wpdb;
1484
+
1485
+ $prefix = $wpdb->prefix;
1486
+ $attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM " . $prefix . "posts WHERE guid RLIKE %s;", $parse_url[1] ) );
1487
+
1488
+ // Returns null if no attachment is found.
1489
+ return $attachment ? $attachment[0] : null;
1490
  }
js/script.js CHANGED
@@ -39,8 +39,6 @@
39
  jpibfiLog( pinButtonDimensions );
40
  jpibfiLog( pinButtonMargins );
41
 
42
-
43
-
44
  var $containers = $('.jpibfi').closest('div').addClass('jpibfi_container');
45
 
46
  jpibfiLog( 'Number of containers added: ' + $containers.length );
@@ -252,11 +250,13 @@
252
  bookmarkDescription = descriptionForUrl || settings.pageDescription;
253
  else if ( settings.descriptionOption == 4 )
254
  bookmarkDescription = settings.siteTitle;
 
 
255
 
256
  bookmarkDescription = bookmarkDescription || ( descriptionForUrl || settings.pageTitle );
257
 
258
- var imageUrl = 'http://pinterest.com/pin/create/bookmarklet/?is_video=' + encodeURI('false') + "&url=" + encodeURI(bookmarkUrl) + "&media=" + encodeURI ( $image.data('media') || $image[0].src )
259
- + '&description=' + encodeURIComponent(bookmarkDescription);
260
 
261
  window.open(imageUrl, 'Pinterest', 'width=632,height=253,status=0,toolbar=0,menubar=0,location=1,scrollbars=1');
262
  return false;
@@ -313,5 +313,4 @@
313
 
314
  return selector;
315
  }
316
-
317
  })(jQuery);
39
  jpibfiLog( pinButtonDimensions );
40
  jpibfiLog( pinButtonMargins );
41
 
 
 
42
  var $containers = $('.jpibfi').closest('div').addClass('jpibfi_container');
43
 
44
  jpibfiLog( 'Number of containers added: ' + $containers.length );
250
  bookmarkDescription = descriptionForUrl || settings.pageDescription;
251
  else if ( settings.descriptionOption == 4 )
252
  bookmarkDescription = settings.siteTitle;
253
+ else if ( settings.descriptionOption == 5 )
254
+ bookmarkDescription = $image.attr( 'data-jpibfi-description' );
255
 
256
  bookmarkDescription = bookmarkDescription || ( descriptionForUrl || settings.pageTitle );
257
 
258
+ var imageUrl = 'http://pinterest.com/pin/create/bookmarklet/?is_video=' + encodeURI('false') + "&url=" + encodeURI( bookmarkUrl ) + "&media=" + encodeURI ( $image.data('media') || $image[0].src )
259
+ + '&description=' + encodeURIComponent( bookmarkDescription );
260
 
261
  window.open(imageUrl, 'Pinterest', 'width=632,height=253,status=0,toolbar=0,menubar=0,location=1,scrollbars=1');
262
  return false;
313
 
314
  return selector;
315
  }
 
316
  })(jQuery);
js/script.min.js CHANGED
@@ -1 +1 @@
1
- (function(e){"use strict";function n(e){if(t&&console&&console.log){if("string"==typeof e||e instanceof String){console.log("jpibfi debug: "+e)}else if("object"==typeof e&&typeof JSON!=="undefined"&&typeof JSON.stringify==="function"){console.log("jpibfi debug: "+JSON.stringify(e,null,4))}else if("object"==typeof e){var n="";for(var r in e)n+=r+": "+e[r]+"\n";console.log("jpibfi debug: "+n)}}}function r(e){switch(e){case"0":return"pinit-top-left";case"1":return"pinit-top-right";case"2":return"pinit-bottom-left";case"3":return"pinit-bottom-right";case"4":return"pinit-middle";default:return""}}function i(e){var t=e.split(";");var n="";for(var r=0;r<t.length;r++){if(t[r])n+="."+t[r]+","}if(n)n=n.substr(0,n.length-1);return n}var t=false;e(document).ready(function(){function h(){n("Add Elements called");var t=0;e("img[data-jpibfi-indexer]").each(function(){var n=e(this);if(this.clientWidth<s.minImageWidth||this.clientHeight<s.minImageHeight){n.removeAttr("data-jpibfi-indexer");return}if(s.mode=="static")d(n,s.buttonPosition);t++});n("Images caught after filtering: "+t)}function p(){n("Remove Elements called");e("div.pinit-overlay").remove()}function d(e,t){var n=e.offset();var r=v(e,t);e.after(r);r.css({height:e.get(0).clientHeight+"px",width:e.get(0).clientWidth+"px"}).show().offset({left:n.left,top:n.top});return r}function v(e,t){var n=e.attr("data-jpibfi-indexer");return jQuery("<div/>",{"class":"pinit-overlay","data-jpibfi-indexer":n,title:e.attr("title")||"",html:m(n).addClass(r(t))})}function m(t){var r=jQuery("<a/>",{href:"#","class":"pinit-button","data-jpibfi-indexer":t,text:"Pin It"});r.click(function(t){n("Pin In button clicked");var r=e(this).attr("data-jpibfi-indexer");var i=e('img[data-jpibfi-indexer="'+r+'"]');var o="",u="",a="";if(s.usePostUrl){var f=i.closest("div.jpibfi_container").find("input.jpibfi").first();if(f.length){u=f.attr("data-jpibfi-description");a=f.attr("data-jpibfi-url")}}a=a||s.pageUrl;if(s.descriptionOption==3)o=i.attr("title")||i.attr("alt");else if(s.descriptionOption==2)o=u||s.pageDescription;else if(s.descriptionOption==4)o=s.siteTitle;o=o||u||s.pageTitle;var l="http://pinterest.com/pin/create/bookmarklet/?is_video="+encodeURI("false")+"&url="+encodeURI(a)+"&media="+encodeURI(i.data("media")||i[0].src)+"&description="+encodeURIComponent(o);window.open(l,"Pinterest","width=632,height=253,status=0,toolbar=0,menubar=0,location=1,scrollbars=1");return false});return r}var s={pageUrl:document.URL,pageTitle:document.title,pageDescription:e('meta[name="description"]').attr("content")||"",siteTitle:jpibfi_options.site_title,imageSelector:jpibfi_options.image_selector,disabledClasses:jpibfi_options.disabled_classes,enabledClasses:jpibfi_options.enabled_classes,descriptionOption:jpibfi_options.description_option,usePostUrl:jpibfi_options.use_post_url=="1",minImageHeight:jpibfi_options.min_image_height,minImageWidth:jpibfi_options.min_image_width,mode:jpibfi_options.mode,buttonPosition:jpibfi_options.button_position};var o={height:parseInt(jpibfi_options.pin_image_height),width:parseInt(jpibfi_options.pin_image_width)};var u={top:parseInt(jpibfi_options.button_margin_top),right:parseInt(jpibfi_options.button_margin_right),bottom:parseInt(jpibfi_options.button_margin_bottom),left:parseInt(jpibfi_options.button_margin_left)};t="1"==jpibfi_options.debug;n(s);n(o);n(u);var a=e(".jpibfi").closest("div").addClass("jpibfi_container");n("Number of containers added: "+a.length);var f=i(s.disabledClasses);var l=i(s.enabledClasses)||"*";n("Image selector: "+s.imageSelector);n("Filter selector: "+l);n("Not selector: "+f);var c=0;e(s.imageSelector).not(f).filter(l).each(function(t){e(this).attr("data-jpibfi-indexer",t);c++});n("Images caught by selectors: "+c);if("static"==s.mode){n("Adding static mode delegates");e(document).delegate("div.pinit-overlay","hover",function(t){var n=t.type==="mouseenter";var r=e(this).attr("data-jpibfi-indexer");e('.pinit-button[data-jpibfi-indexer="'+r+'"]').toggle(n);e('img[data-jpibfi-indexer="'+r+'"]').toggleClass("pinit-hover",n)})}else if("dynamic"==s.mode){n("Adding dynamic mode delegates");e(document).delegate("a.pinit-button","mouseenter",function(){var t=e(this);clearTimeout(t.data("jpibfi-timeoutId"))});e(document).delegate("a.pinit-button","mouseleave",function(){var t=e(this);var n=setTimeout(function(){t.remove();e('img[data-jpibfi-indexer="'+t.attr("data-jpibfi-indexer")+'"]').removeClass("pinit-hover")},100);t.data("jpibfi-timeoutId",n)});e(document).delegate("img[data-jpibfi-indexer]","mouseenter",function(){var t=e(this);var n=t.attr("data-jpibfi-indexer");var r=e('a.pinit-button[data-jpibfi-indexer="'+n+'"]');if(r.length==0){var r=m(n);var i=t.offset();var a={width:t.get(0).clientWidth,height:t.get(0).clientHeight};switch(s.buttonPosition){case"0":i.left+=u.left;i.top+=u.top;break;case"1":i.top+=u.top;i.left=i.left+a.width-u.right-o.width;break;case"2":i.left+=u.left;i.top=i.top+a.height-u.bottom-o.height;break;case"3":i.left=i.left+a.width-u.right-o.width;i.top=i.top+a.height-u.bottom-o.height;break;case"4":i.left=Math.round(i.left+a.width/2-o.width/2);i.top=Math.round(i.top+a.height/2-o.height/2);break}t.after(r);r.show().offset({left:i.left,top:i.top})}else{clearTimeout(r.data("jpibfi-timeoutId"))}e('img[data-jpibfi-indexer="'+r.attr("data-jpibfi-indexer")+'"]').addClass("pinit-hover")});e(document).delegate("img[data-jpibfi-indexer]","mouseleave",function(){var t=e(this).attr("data-jpibfi-indexer");var n=e('a.pinit-button[data-jpibfi-indexer="'+t+'"]');var r=setTimeout(function(){n.remove();e('img[data-jpibfi-indexer="'+n.attr("data-jpibfi-indexer")+'"]').removeClass("pinit-hover")},100);n.data("jpibfi-timeoutId",r)})}e(window).load(h);e(window).resize(function(){p();h()})});})(jQuery)
1
+ (function(e){"use strict";function n(e){if(t&&console&&console.log){if("string"==typeof e||e instanceof String){console.log("jpibfi debug: "+e)}else if("object"==typeof e&&typeof JSON!=="undefined"&&typeof JSON.stringify==="function"){console.log("jpibfi debug: "+JSON.stringify(e,null,4))}else if("object"==typeof e){var n="";for(var r in e)n+=r+": "+e[r]+"\n";console.log("jpibfi debug: "+n)}}}function r(e){switch(e){case"0":return"pinit-top-left";case"1":return"pinit-top-right";case"2":return"pinit-bottom-left";case"3":return"pinit-bottom-right";case"4":return"pinit-middle";default:return""}}function i(e){var t=e.split(";");var n="";for(var r=0;r<t.length;r++){if(t[r])n+="."+t[r]+","}if(n)n=n.substr(0,n.length-1);return n}var t=false;e(document).ready(function(){function h(){n("Add Elements called");var t=0;e("img[data-jpibfi-indexer]").each(function(){var n=e(this);if(this.clientWidth<s.minImageWidth||this.clientHeight<s.minImageHeight){n.removeAttr("data-jpibfi-indexer");return}if(s.mode=="static")d(n,s.buttonPosition);t++});n("Images caught after filtering: "+t)}function p(){n("Remove Elements called");e("div.pinit-overlay").remove()}function d(e,t){var n=e.offset();var r=v(e,t);e.after(r);r.css({height:e.get(0).clientHeight+"px",width:e.get(0).clientWidth+"px"}).show().offset({left:n.left,top:n.top});return r}function v(e,t){var n=e.attr("data-jpibfi-indexer");return jQuery("<div/>",{"class":"pinit-overlay","data-jpibfi-indexer":n,title:e.attr("title")||"",html:m(n).addClass(r(t))})}function m(t){var r=jQuery("<a/>",{href:"#","class":"pinit-button","data-jpibfi-indexer":t,text:"Pin It"});r.click(function(t){n("Pin In button clicked");var r=e(this).attr("data-jpibfi-indexer");var i=e('img[data-jpibfi-indexer="'+r+'"]');var o="",u="",a="";if(s.usePostUrl){var f=i.closest("div.jpibfi_container").find("input.jpibfi").first();if(f.length){u=f.attr("data-jpibfi-description");a=f.attr("data-jpibfi-url")}}a=a||s.pageUrl;if(s.descriptionOption==3)o=i.attr("title")||i.attr("alt");else if(s.descriptionOption==2)o=u||s.pageDescription;else if(s.descriptionOption==4)o=s.siteTitle;else if(s.descriptionOption==5)o=i.attr("data-jpibfi-description");o=o||u||s.pageTitle;var l="http://pinterest.com/pin/create/bookmarklet/?is_video="+encodeURI("false")+"&url="+encodeURI(a)+"&media="+encodeURI(i.data("media")||i[0].src)+"&description="+encodeURIComponent(o);window.open(l,"Pinterest","width=632,height=253,status=0,toolbar=0,menubar=0,location=1,scrollbars=1");return false});return r}var s={pageUrl:document.URL,pageTitle:document.title,pageDescription:e('meta[name="description"]').attr("content")||"",siteTitle:jpibfi_options.site_title,imageSelector:jpibfi_options.image_selector,disabledClasses:jpibfi_options.disabled_classes,enabledClasses:jpibfi_options.enabled_classes,descriptionOption:jpibfi_options.description_option,usePostUrl:jpibfi_options.use_post_url=="1",minImageHeight:jpibfi_options.min_image_height,minImageWidth:jpibfi_options.min_image_width,mode:jpibfi_options.mode,buttonPosition:jpibfi_options.button_position};var o={height:parseInt(jpibfi_options.pin_image_height),width:parseInt(jpibfi_options.pin_image_width)};var u={top:parseInt(jpibfi_options.button_margin_top),right:parseInt(jpibfi_options.button_margin_right),bottom:parseInt(jpibfi_options.button_margin_bottom),left:parseInt(jpibfi_options.button_margin_left)};t="1"==jpibfi_options.debug;n(s);n(o);n(u);var a=e(".jpibfi").closest("div").addClass("jpibfi_container");n("Number of containers added: "+a.length);var f=i(s.disabledClasses);var l=i(s.enabledClasses)||"*";n("Image selector: "+s.imageSelector);n("Filter selector: "+l);n("Not selector: "+f);var c=0;e(s.imageSelector).not(f).filter(l).each(function(t){e(this).attr("data-jpibfi-indexer",t);c++});n("Images caught by selectors: "+c);if("static"==s.mode){n("Adding static mode delegates");e(document).delegate("div.pinit-overlay","hover",function(t){var n=t.type==="mouseenter";var r=e(this).attr("data-jpibfi-indexer");e('.pinit-button[data-jpibfi-indexer="'+r+'"]').toggle(n);e('img[data-jpibfi-indexer="'+r+'"]').toggleClass("pinit-hover",n)})}else if("dynamic"==s.mode){n("Adding dynamic mode delegates");e(document).delegate("a.pinit-button","mouseenter",function(){var t=e(this);clearTimeout(t.data("jpibfi-timeoutId"))});e(document).delegate("a.pinit-button","mouseleave",function(){var t=e(this);var n=setTimeout(function(){t.remove();e('img[data-jpibfi-indexer="'+t.attr("data-jpibfi-indexer")+'"]').removeClass("pinit-hover")},100);t.data("jpibfi-timeoutId",n)});e(document).delegate("img[data-jpibfi-indexer]","mouseenter",function(){var t=e(this);var n=t.attr("data-jpibfi-indexer");var r=e('a.pinit-button[data-jpibfi-indexer="'+n+'"]');if(r.length==0){var r=m(n);var i=t.offset();var a={width:t.get(0).clientWidth,height:t.get(0).clientHeight};switch(s.buttonPosition){case"0":i.left+=u.left;i.top+=u.top;break;case"1":i.top+=u.top;i.left=i.left+a.width-u.right-o.width;break;case"2":i.left+=u.left;i.top=i.top+a.height-u.bottom-o.height;break;case"3":i.left=i.left+a.width-u.right-o.width;i.top=i.top+a.height-u.bottom-o.height;break;case"4":i.left=Math.round(i.left+a.width/2-o.width/2);i.top=Math.round(i.top+a.height/2-o.height/2);break}t.after(r);r.show().offset({left:i.left,top:i.top})}else{clearTimeout(r.data("jpibfi-timeoutId"))}e('img[data-jpibfi-indexer="'+r.attr("data-jpibfi-indexer")+'"]').addClass("pinit-hover")});e(document).delegate("img[data-jpibfi-indexer]","mouseleave",function(){var t=e(this).attr("data-jpibfi-indexer");var n=e('a.pinit-button[data-jpibfi-indexer="'+t+'"]');var r=setTimeout(function(){n.remove();e('img[data-jpibfi-indexer="'+n.attr("data-jpibfi-indexer")+'"]').removeClass("pinit-hover")},100);n.data("jpibfi-timeoutId",r)})}e(window).load(h);e(window).resize(function(){p();h()})});})(jQuery)
languages/jpibfi.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: jQuery Pin It Button For Images 1.14\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/jquery-pin-it-button-for-images\n"
7
- "POT-Creation-Date: 2013-10-17 11:14:35+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,353 +12,357 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: jquery-pin-it-button-for-images.php:226
16
- #: jquery-pin-it-button-for-images.php:236
17
- #: jquery-pin-it-button-for-images.php:451
18
  msgid "Settings"
19
  msgstr ""
20
 
21
- #: jquery-pin-it-button-for-images.php:255
22
  msgid "Disable \"Pin it\" button for this post (works only on single pages/posts)"
23
  msgstr ""
24
 
25
- #: jquery-pin-it-button-for-images.php:464
26
  msgid "jQuery Pin It Button For Images Options"
27
  msgstr ""
28
 
29
- #: jquery-pin-it-button-for-images.php:473
30
  msgid "Selection Settings"
31
  msgstr ""
32
 
33
- #: jquery-pin-it-button-for-images.php:474
34
  msgid "Visual Settings"
35
  msgstr ""
36
 
37
- #: jquery-pin-it-button-for-images.php:475
38
- #: jquery-pin-it-button-for-images.php:1188
39
  msgid "Advanced Settings"
40
  msgstr ""
41
 
42
- #: jquery-pin-it-button-for-images.php:480
43
  msgid "If you would like to support development of the plugin, please %sdonate%s."
44
  msgstr ""
45
 
46
- #: jquery-pin-it-button-for-images.php:481
47
  msgid "If you experience issues with the plugin, check out the %ssupport forum%s."
48
  msgstr ""
49
 
50
- #: jquery-pin-it-button-for-images.php:482
51
  msgid "To help promote the plugin, %sleave a review%s."
52
  msgstr ""
53
 
54
- #: jquery-pin-it-button-for-images.php:483
55
  msgid "If you have any suggestions for improvements, %suse the feedback form%s."
56
  msgstr ""
57
 
58
- #: jquery-pin-it-button-for-images.php:548
59
  msgid "Selection"
60
  msgstr ""
61
 
62
- #: jquery-pin-it-button-for-images.php:556
63
  msgid "Image selector"
64
  msgstr ""
65
 
66
- #: jquery-pin-it-button-for-images.php:561
67
  msgid "jQuery selector for all the images that should have the \"Pin it\" button. Set the value to %s if you want the \"Pin it\" button to appear only on images in content or %s to appear on all images on site (including sidebar, header and footer). If you know a thing or two about jQuery, you might use your own selector. %sClick here%s to read about jQuery selectors."
68
  msgstr ""
69
 
70
- #: jquery-pin-it-button-for-images.php:572
71
- #: jquery-pin-it-button-for-images.php:756
72
  msgid "Disabled classes"
73
  msgstr ""
74
 
75
- #: jquery-pin-it-button-for-images.php:577
76
  msgid "Pictures with these CSS classes won't show the \"Pin it\" button. Please separate multiple classes with semicolons. Spaces are not accepted."
77
  msgstr ""
78
 
79
- #: jquery-pin-it-button-for-images.php:583
80
- #: jquery-pin-it-button-for-images.php:758
81
  msgid "Enabled classes"
82
  msgstr ""
83
 
84
- #: jquery-pin-it-button-for-images.php:588
85
  msgid "Only pictures with these CSS classes will show the \"Pin it\" button. Please separate multiple classes with semicolons. If this field is empty, images with any (besides disabled ones) classes will show the Pin It button."
86
  msgstr ""
87
 
88
- #: jquery-pin-it-button-for-images.php:594
89
  msgid "On which pages the \"Pin it\" button should be shown"
90
  msgstr ""
91
 
92
- #: jquery-pin-it-button-for-images.php:599
93
  msgid "Check on which pages you want the Pinterest button to show up."
94
  msgstr ""
95
 
96
- #: jquery-pin-it-button-for-images.php:605
97
  msgid "Minimum resolution that should trigger the \"Pin it\" button to show up"
98
  msgstr ""
99
 
100
- #: jquery-pin-it-button-for-images.php:610
101
  msgid "If you'd like the \"Pin it\" button to not show up on small images (e.g. social media icons), just set the appropriate values above. The default values cause the \"Pin it\" button to show on every eligible image."
102
  msgstr ""
103
 
104
- #: jquery-pin-it-button-for-images.php:624
105
  msgid "Which images can be pinned"
106
  msgstr ""
107
 
108
- #: jquery-pin-it-button-for-images.php:645
109
- #: jquery-pin-it-button-for-images.php:674
110
  msgid "No classes added."
111
  msgstr ""
112
 
113
- #: jquery-pin-it-button-for-images.php:654
114
- #: jquery-pin-it-button-for-images.php:683
115
  msgid "Class name"
116
  msgstr ""
117
 
118
- #: jquery-pin-it-button-for-images.php:656
119
- #: jquery-pin-it-button-for-images.php:685
120
  msgid "Add to list"
121
  msgstr ""
122
 
123
- #: jquery-pin-it-button-for-images.php:706
124
  msgid "Home page"
125
  msgstr ""
126
 
127
- #: jquery-pin-it-button-for-images.php:708
128
  msgid "Pages"
129
  msgstr ""
130
 
131
- #: jquery-pin-it-button-for-images.php:710
132
  msgid "Single posts"
133
  msgstr ""
134
 
135
- #: jquery-pin-it-button-for-images.php:712
136
  msgid "Category and archive pages"
137
  msgstr ""
138
 
139
- #: jquery-pin-it-button-for-images.php:714
140
  msgid "Blog pages"
141
  msgstr ""
142
 
143
- #: jquery-pin-it-button-for-images.php:728
144
- #: jquery-pin-it-button-for-images.php:1036
145
  msgid "Height"
146
  msgstr ""
147
 
148
- #: jquery-pin-it-button-for-images.php:735
149
- #: jquery-pin-it-button-for-images.php:1043
150
  msgid "Width"
151
  msgstr ""
152
 
153
- #: jquery-pin-it-button-for-images.php:763
154
  msgid "the given value doesn't meet the requirements. Please correct it and try again."
155
  msgstr ""
156
 
157
- #: jquery-pin-it-button-for-images.php:773
158
  msgid "Minimum image height"
159
  msgstr ""
160
 
161
- #: jquery-pin-it-button-for-images.php:775
162
  msgid "Minimum image width"
163
  msgstr ""
164
 
165
- #: jquery-pin-it-button-for-images.php:780
166
- #: jquery-pin-it-button-for-images.php:1141
167
  msgid "value must be a number greater or equal to %d."
168
  msgstr ""
169
 
170
- #: jquery-pin-it-button-for-images.php:846
171
  msgid "Visual"
172
  msgstr ""
173
 
174
- #: jquery-pin-it-button-for-images.php:854
175
  msgid "Mode"
176
  msgstr ""
177
 
178
- #: jquery-pin-it-button-for-images.php:859
179
  msgid "Static mode adds a layer on the top of the image that restricts image download, but works on websites that protect images download. Dynamic mode doesn't add that layer and allows image download. If you're experiencing issues with static mode, try using dynamic mode."
180
  msgstr ""
181
 
182
- #: jquery-pin-it-button-for-images.php:865
183
  msgid "Description source"
184
  msgstr ""
185
 
186
- #: jquery-pin-it-button-for-images.php:870
187
- msgid "From where the Pinterest message should be taken."
188
  msgstr ""
189
 
190
- #: jquery-pin-it-button-for-images.php:876
191
  msgid "Linked page"
192
  msgstr ""
193
 
194
- #: jquery-pin-it-button-for-images.php:881
195
  msgid "When checked, the link on Pinterest will always point to the individual page with the image and title of this individual page will be used if you've selected Title as the description source, even when the image was pinned on an archive page, category page or homepage. If false, the link will point to the URL the user is currently on."
196
  msgstr ""
197
 
198
- #: jquery-pin-it-button-for-images.php:887
199
  msgid "Transparency value"
200
  msgstr ""
201
 
202
- #: jquery-pin-it-button-for-images.php:892
203
  msgid "This setting sets the transparency of the image."
204
  msgstr ""
205
 
206
- #: jquery-pin-it-button-for-images.php:898
207
  msgid "Custom \"Pin It\" button"
208
  msgstr ""
209
 
210
- #: jquery-pin-it-button-for-images.php:903
211
  msgid "Check the <b>Use custom image</b> checkbox, specify image's URL, height and width to use your own Pinterest button design. You can just upload an image using Wordpress media library if you wish."
212
  msgstr ""
213
 
214
- #: jquery-pin-it-button-for-images.php:909
215
  msgid "\"Pin it\" button position"
216
  msgstr ""
217
 
218
- #: jquery-pin-it-button-for-images.php:914
219
  msgid "Where the \"Pin it\" button should appear on the image."
220
  msgstr ""
221
 
222
- #: jquery-pin-it-button-for-images.php:920
223
  msgid "\"Pin it\" button margins"
224
  msgstr ""
225
 
226
- #: jquery-pin-it-button-for-images.php:925
227
  msgid "Margins are used to adjust the position of the \"Pin it\" button, but not all margins are used on all button positions. Here is an example. If you're using the \"%s\" position, the button's position will be affected only by top and left margins. Bottom and right margins affect \"%s\" position, etc. The \"%s\" position does not use any margins at all."
228
  msgstr ""
229
 
230
- #: jquery-pin-it-button-for-images.php:926
231
- #: jquery-pin-it-button-for-images.php:1066
232
  msgid "Top left"
233
  msgstr ""
234
 
235
- #: jquery-pin-it-button-for-images.php:927
236
- #: jquery-pin-it-button-for-images.php:1069
237
  msgid "Bottom right"
238
  msgstr ""
239
 
240
- #: jquery-pin-it-button-for-images.php:928
241
- #: jquery-pin-it-button-for-images.php:1070
242
  msgid "Middle"
243
  msgstr ""
244
 
245
- #: jquery-pin-it-button-for-images.php:935
246
  msgid "Retina friendly"
247
  msgstr ""
248
 
249
- #: jquery-pin-it-button-for-images.php:940
250
  msgid "Please note that checking this option will result in rendering the \"Pin it\" button half of its normal size (if you use a 80x60 image, the button will be 40x30). When uploading a custom \"Pin it\" button (the default one is too small), please make sure both width and height are even numbers (i.e. divisible by two) when using this option."
251
  msgstr ""
252
 
253
- #: jquery-pin-it-button-for-images.php:955
254
  msgid "How it should look like"
255
  msgstr ""
256
 
257
- #: jquery-pin-it-button-for-images.php:965
258
  msgid "Static"
259
  msgstr ""
260
 
261
- #: jquery-pin-it-button-for-images.php:966
262
  msgid "Dynamic"
263
  msgstr ""
264
 
265
- #: jquery-pin-it-button-for-images.php:981
266
  msgid "Page title"
267
  msgstr ""
268
 
269
- #: jquery-pin-it-button-for-images.php:982
270
  msgid "Page description"
271
  msgstr ""
272
 
273
- #: jquery-pin-it-button-for-images.php:983
274
  msgid "Picture title or (if title not available) alt attribute"
275
  msgstr ""
276
 
277
- #: jquery-pin-it-button-for-images.php:984
278
  msgid "Site title (Settings->General)"
279
  msgstr ""
280
 
281
- #: jquery-pin-it-button-for-images.php:997
 
 
 
 
282
  msgid "Always link to individual post page"
283
  msgstr ""
284
 
285
- #: jquery-pin-it-button-for-images.php:1007
286
  msgid "Choose transparency (between %.02f and %.02f)"
287
  msgstr ""
288
 
289
- #: jquery-pin-it-button-for-images.php:1025
290
  msgid "Use custom image"
291
  msgstr ""
292
 
293
- #: jquery-pin-it-button-for-images.php:1028
294
  msgid "Upload an image using media library"
295
  msgstr ""
296
 
297
- #: jquery-pin-it-button-for-images.php:1031
298
  msgid "URL address of the image"
299
  msgstr ""
300
 
301
- #: jquery-pin-it-button-for-images.php:1050
302
  msgid "Custom Pin It button preview"
303
  msgstr ""
304
 
305
- #: jquery-pin-it-button-for-images.php:1054
306
  msgid "Refresh preview"
307
  msgstr ""
308
 
309
- #: jquery-pin-it-button-for-images.php:1067
310
  msgid "Top right"
311
  msgstr ""
312
 
313
- #: jquery-pin-it-button-for-images.php:1068
314
  msgid "Bottom left"
315
  msgstr ""
316
 
317
- #: jquery-pin-it-button-for-images.php:1090
318
  msgid "Top"
319
  msgstr ""
320
 
321
- #: jquery-pin-it-button-for-images.php:1092
322
  msgid "Bottom"
323
  msgstr ""
324
 
325
- #: jquery-pin-it-button-for-images.php:1094
326
  msgid "Left"
327
  msgstr ""
328
 
329
- #: jquery-pin-it-button-for-images.php:1096
330
  msgid "Right"
331
  msgstr ""
332
 
333
- #: jquery-pin-it-button-for-images.php:1109
334
  msgid "Optimize for high pixel density displays"
335
  msgstr ""
336
 
337
- #: jquery-pin-it-button-for-images.php:1125
338
  msgid "Transparency value must be a number between %.02d and %.02f."
339
  msgstr ""
340
 
341
- #: jquery-pin-it-button-for-images.php:1133
342
  msgid "Custom image height"
343
  msgstr ""
344
 
345
- #: jquery-pin-it-button-for-images.php:1135
346
  msgid "Custom image width"
347
  msgstr ""
348
 
349
- #: jquery-pin-it-button-for-images.php:1196
350
  msgid "Debug"
351
  msgstr ""
352
 
353
- #: jquery-pin-it-button-for-images.php:1201
354
  msgid "Use debug mode only if you are experiencing some issues with the plugin and you are reporting them to the developer of the plugin"
355
  msgstr ""
356
 
357
- #: jquery-pin-it-button-for-images.php:1214
358
  msgid "Advanced settings"
359
  msgstr ""
360
 
361
- #: jquery-pin-it-button-for-images.php:1226
362
  msgid "Enable debug mode"
363
  msgstr ""
364
  #. Plugin Name of the plugin/theme
4
  msgstr ""
5
  "Project-Id-Version: jQuery Pin It Button For Images 1.14\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/jquery-pin-it-button-for-images\n"
7
+ "POT-Creation-Date: 2013-10-29 07:52:19+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: jquery-pin-it-button-for-images.php:230
16
+ #: jquery-pin-it-button-for-images.php:240
17
+ #: jquery-pin-it-button-for-images.php:455
18
  msgid "Settings"
19
  msgstr ""
20
 
21
+ #: jquery-pin-it-button-for-images.php:259
22
  msgid "Disable \"Pin it\" button for this post (works only on single pages/posts)"
23
  msgstr ""
24
 
25
+ #: jquery-pin-it-button-for-images.php:468
26
  msgid "jQuery Pin It Button For Images Options"
27
  msgstr ""
28
 
29
+ #: jquery-pin-it-button-for-images.php:477
30
  msgid "Selection Settings"
31
  msgstr ""
32
 
33
+ #: jquery-pin-it-button-for-images.php:478
34
  msgid "Visual Settings"
35
  msgstr ""
36
 
37
+ #: jquery-pin-it-button-for-images.php:479
38
+ #: jquery-pin-it-button-for-images.php:1193
39
  msgid "Advanced Settings"
40
  msgstr ""
41
 
42
+ #: jquery-pin-it-button-for-images.php:484
43
  msgid "If you would like to support development of the plugin, please %sdonate%s."
44
  msgstr ""
45
 
46
+ #: jquery-pin-it-button-for-images.php:485
47
  msgid "If you experience issues with the plugin, check out the %ssupport forum%s."
48
  msgstr ""
49
 
50
+ #: jquery-pin-it-button-for-images.php:486
51
  msgid "To help promote the plugin, %sleave a review%s."
52
  msgstr ""
53
 
54
+ #: jquery-pin-it-button-for-images.php:487
55
  msgid "If you have any suggestions for improvements, %suse the feedback form%s."
56
  msgstr ""
57
 
58
+ #: jquery-pin-it-button-for-images.php:552
59
  msgid "Selection"
60
  msgstr ""
61
 
62
+ #: jquery-pin-it-button-for-images.php:560
63
  msgid "Image selector"
64
  msgstr ""
65
 
66
+ #: jquery-pin-it-button-for-images.php:565
67
  msgid "jQuery selector for all the images that should have the \"Pin it\" button. Set the value to %s if you want the \"Pin it\" button to appear only on images in content or %s to appear on all images on site (including sidebar, header and footer). If you know a thing or two about jQuery, you might use your own selector. %sClick here%s to read about jQuery selectors."
68
  msgstr ""
69
 
70
+ #: jquery-pin-it-button-for-images.php:576
71
+ #: jquery-pin-it-button-for-images.php:760
72
  msgid "Disabled classes"
73
  msgstr ""
74
 
75
+ #: jquery-pin-it-button-for-images.php:581
76
  msgid "Pictures with these CSS classes won't show the \"Pin it\" button. Please separate multiple classes with semicolons. Spaces are not accepted."
77
  msgstr ""
78
 
79
+ #: jquery-pin-it-button-for-images.php:587
80
+ #: jquery-pin-it-button-for-images.php:762
81
  msgid "Enabled classes"
82
  msgstr ""
83
 
84
+ #: jquery-pin-it-button-for-images.php:592
85
  msgid "Only pictures with these CSS classes will show the \"Pin it\" button. Please separate multiple classes with semicolons. If this field is empty, images with any (besides disabled ones) classes will show the Pin It button."
86
  msgstr ""
87
 
88
+ #: jquery-pin-it-button-for-images.php:598
89
  msgid "On which pages the \"Pin it\" button should be shown"
90
  msgstr ""
91
 
92
+ #: jquery-pin-it-button-for-images.php:603
93
  msgid "Check on which pages you want the Pinterest button to show up."
94
  msgstr ""
95
 
96
+ #: jquery-pin-it-button-for-images.php:609
97
  msgid "Minimum resolution that should trigger the \"Pin it\" button to show up"
98
  msgstr ""
99
 
100
+ #: jquery-pin-it-button-for-images.php:614
101
  msgid "If you'd like the \"Pin it\" button to not show up on small images (e.g. social media icons), just set the appropriate values above. The default values cause the \"Pin it\" button to show on every eligible image."
102
  msgstr ""
103
 
104
+ #: jquery-pin-it-button-for-images.php:628
105
  msgid "Which images can be pinned"
106
  msgstr ""
107
 
108
+ #: jquery-pin-it-button-for-images.php:649
109
+ #: jquery-pin-it-button-for-images.php:678
110
  msgid "No classes added."
111
  msgstr ""
112
 
113
+ #: jquery-pin-it-button-for-images.php:658
114
+ #: jquery-pin-it-button-for-images.php:687
115
  msgid "Class name"
116
  msgstr ""
117
 
118
+ #: jquery-pin-it-button-for-images.php:660
119
+ #: jquery-pin-it-button-for-images.php:689
120
  msgid "Add to list"
121
  msgstr ""
122
 
123
+ #: jquery-pin-it-button-for-images.php:710
124
  msgid "Home page"
125
  msgstr ""
126
 
127
+ #: jquery-pin-it-button-for-images.php:712
128
  msgid "Pages"
129
  msgstr ""
130
 
131
+ #: jquery-pin-it-button-for-images.php:714
132
  msgid "Single posts"
133
  msgstr ""
134
 
135
+ #: jquery-pin-it-button-for-images.php:716
136
  msgid "Category and archive pages"
137
  msgstr ""
138
 
139
+ #: jquery-pin-it-button-for-images.php:718
140
  msgid "Blog pages"
141
  msgstr ""
142
 
143
+ #: jquery-pin-it-button-for-images.php:732
144
+ #: jquery-pin-it-button-for-images.php:1041
145
  msgid "Height"
146
  msgstr ""
147
 
148
+ #: jquery-pin-it-button-for-images.php:739
149
+ #: jquery-pin-it-button-for-images.php:1048
150
  msgid "Width"
151
  msgstr ""
152
 
153
+ #: jquery-pin-it-button-for-images.php:767
154
  msgid "the given value doesn't meet the requirements. Please correct it and try again."
155
  msgstr ""
156
 
157
+ #: jquery-pin-it-button-for-images.php:777
158
  msgid "Minimum image height"
159
  msgstr ""
160
 
161
+ #: jquery-pin-it-button-for-images.php:779
162
  msgid "Minimum image width"
163
  msgstr ""
164
 
165
+ #: jquery-pin-it-button-for-images.php:784
166
+ #: jquery-pin-it-button-for-images.php:1146
167
  msgid "value must be a number greater or equal to %d."
168
  msgstr ""
169
 
170
+ #: jquery-pin-it-button-for-images.php:850
171
  msgid "Visual"
172
  msgstr ""
173
 
174
+ #: jquery-pin-it-button-for-images.php:858
175
  msgid "Mode"
176
  msgstr ""
177
 
178
+ #: jquery-pin-it-button-for-images.php:863
179
  msgid "Static mode adds a layer on the top of the image that restricts image download, but works on websites that protect images download. Dynamic mode doesn't add that layer and allows image download. If you're experiencing issues with static mode, try using dynamic mode."
180
  msgstr ""
181
 
182
+ #: jquery-pin-it-button-for-images.php:869
183
  msgid "Description source"
184
  msgstr ""
185
 
186
+ #: jquery-pin-it-button-for-images.php:874
187
+ msgid "From where the Pinterest message should be taken. Please note that \"Image description\" works properly only for images that were added to your Media Library."
188
  msgstr ""
189
 
190
+ #: jquery-pin-it-button-for-images.php:880
191
  msgid "Linked page"
192
  msgstr ""
193
 
194
+ #: jquery-pin-it-button-for-images.php:885
195
  msgid "When checked, the link on Pinterest will always point to the individual page with the image and title of this individual page will be used if you've selected Title as the description source, even when the image was pinned on an archive page, category page or homepage. If false, the link will point to the URL the user is currently on."
196
  msgstr ""
197
 
198
+ #: jquery-pin-it-button-for-images.php:891
199
  msgid "Transparency value"
200
  msgstr ""
201
 
202
+ #: jquery-pin-it-button-for-images.php:896
203
  msgid "This setting sets the transparency of the image."
204
  msgstr ""
205
 
206
+ #: jquery-pin-it-button-for-images.php:902
207
  msgid "Custom \"Pin It\" button"
208
  msgstr ""
209
 
210
+ #: jquery-pin-it-button-for-images.php:907
211
  msgid "Check the <b>Use custom image</b> checkbox, specify image's URL, height and width to use your own Pinterest button design. You can just upload an image using Wordpress media library if you wish."
212
  msgstr ""
213
 
214
+ #: jquery-pin-it-button-for-images.php:913
215
  msgid "\"Pin it\" button position"
216
  msgstr ""
217
 
218
+ #: jquery-pin-it-button-for-images.php:918
219
  msgid "Where the \"Pin it\" button should appear on the image."
220
  msgstr ""
221
 
222
+ #: jquery-pin-it-button-for-images.php:924
223
  msgid "\"Pin it\" button margins"
224
  msgstr ""
225
 
226
+ #: jquery-pin-it-button-for-images.php:929
227
  msgid "Margins are used to adjust the position of the \"Pin it\" button, but not all margins are used on all button positions. Here is an example. If you're using the \"%s\" position, the button's position will be affected only by top and left margins. Bottom and right margins affect \"%s\" position, etc. The \"%s\" position does not use any margins at all."
228
  msgstr ""
229
 
230
+ #: jquery-pin-it-button-for-images.php:930
231
+ #: jquery-pin-it-button-for-images.php:1071
232
  msgid "Top left"
233
  msgstr ""
234
 
235
+ #: jquery-pin-it-button-for-images.php:931
236
+ #: jquery-pin-it-button-for-images.php:1074
237
  msgid "Bottom right"
238
  msgstr ""
239
 
240
+ #: jquery-pin-it-button-for-images.php:932
241
+ #: jquery-pin-it-button-for-images.php:1075
242
  msgid "Middle"
243
  msgstr ""
244
 
245
+ #: jquery-pin-it-button-for-images.php:939
246
  msgid "Retina friendly"
247
  msgstr ""
248
 
249
+ #: jquery-pin-it-button-for-images.php:944
250
  msgid "Please note that checking this option will result in rendering the \"Pin it\" button half of its normal size (if you use a 80x60 image, the button will be 40x30). When uploading a custom \"Pin it\" button (the default one is too small), please make sure both width and height are even numbers (i.e. divisible by two) when using this option."
251
  msgstr ""
252
 
253
+ #: jquery-pin-it-button-for-images.php:959
254
  msgid "How it should look like"
255
  msgstr ""
256
 
257
+ #: jquery-pin-it-button-for-images.php:969
258
  msgid "Static"
259
  msgstr ""
260
 
261
+ #: jquery-pin-it-button-for-images.php:970
262
  msgid "Dynamic"
263
  msgstr ""
264
 
265
+ #: jquery-pin-it-button-for-images.php:985
266
  msgid "Page title"
267
  msgstr ""
268
 
269
+ #: jquery-pin-it-button-for-images.php:986
270
  msgid "Page description"
271
  msgstr ""
272
 
273
+ #: jquery-pin-it-button-for-images.php:987
274
  msgid "Picture title or (if title not available) alt attribute"
275
  msgstr ""
276
 
277
+ #: jquery-pin-it-button-for-images.php:988
278
  msgid "Site title (Settings->General)"
279
  msgstr ""
280
 
281
+ #: jquery-pin-it-button-for-images.php:989
282
+ msgid "Image description"
283
+ msgstr ""
284
+
285
+ #: jquery-pin-it-button-for-images.php:1002
286
  msgid "Always link to individual post page"
287
  msgstr ""
288
 
289
+ #: jquery-pin-it-button-for-images.php:1012
290
  msgid "Choose transparency (between %.02f and %.02f)"
291
  msgstr ""
292
 
293
+ #: jquery-pin-it-button-for-images.php:1030
294
  msgid "Use custom image"
295
  msgstr ""
296
 
297
+ #: jquery-pin-it-button-for-images.php:1033
298
  msgid "Upload an image using media library"
299
  msgstr ""
300
 
301
+ #: jquery-pin-it-button-for-images.php:1036
302
  msgid "URL address of the image"
303
  msgstr ""
304
 
305
+ #: jquery-pin-it-button-for-images.php:1055
306
  msgid "Custom Pin It button preview"
307
  msgstr ""
308
 
309
+ #: jquery-pin-it-button-for-images.php:1059
310
  msgid "Refresh preview"
311
  msgstr ""
312
 
313
+ #: jquery-pin-it-button-for-images.php:1072
314
  msgid "Top right"
315
  msgstr ""
316
 
317
+ #: jquery-pin-it-button-for-images.php:1073
318
  msgid "Bottom left"
319
  msgstr ""
320
 
321
+ #: jquery-pin-it-button-for-images.php:1095
322
  msgid "Top"
323
  msgstr ""
324
 
325
+ #: jquery-pin-it-button-for-images.php:1097
326
  msgid "Bottom"
327
  msgstr ""
328
 
329
+ #: jquery-pin-it-button-for-images.php:1099
330
  msgid "Left"
331
  msgstr ""
332
 
333
+ #: jquery-pin-it-button-for-images.php:1101
334
  msgid "Right"
335
  msgstr ""
336
 
337
+ #: jquery-pin-it-button-for-images.php:1114
338
  msgid "Optimize for high pixel density displays"
339
  msgstr ""
340
 
341
+ #: jquery-pin-it-button-for-images.php:1130
342
  msgid "Transparency value must be a number between %.02d and %.02f."
343
  msgstr ""
344
 
345
+ #: jquery-pin-it-button-for-images.php:1138
346
  msgid "Custom image height"
347
  msgstr ""
348
 
349
+ #: jquery-pin-it-button-for-images.php:1140
350
  msgid "Custom image width"
351
  msgstr ""
352
 
353
+ #: jquery-pin-it-button-for-images.php:1201
354
  msgid "Debug"
355
  msgstr ""
356
 
357
+ #: jquery-pin-it-button-for-images.php:1206
358
  msgid "Use debug mode only if you are experiencing some issues with the plugin and you are reporting them to the developer of the plugin"
359
  msgstr ""
360
 
361
+ #: jquery-pin-it-button-for-images.php:1219
362
  msgid "Advanced settings"
363
  msgstr ""
364
 
365
+ #: jquery-pin-it-button-for-images.php:1231
366
  msgid "Enable debug mode"
367
  msgstr ""
368
  #. Plugin Name of the plugin/theme
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bit.ly/Uw2mEP
4
  Tags: pinterest, pin it, button, image, images, pinit, social media, hover, click, photo, photos
5
  Requires at least: 3.3.0
6
  Tested up to: 3.6.1
7
- Stable tag: 1.14
8
  License: GPLv2 or later
9
 
10
  Highlights images on hover and adds a Pinterest "Pin It" button over them for easy pinning.
@@ -71,6 +71,10 @@ Please report them in the plugin's support forum on Wordpress.org.
71
 
72
  == Changelog ==
73
 
 
 
 
 
74
  = 1.14 =
75
  * Released 2013-10-17
76
  * Minor bug with linking images to posts fixed
@@ -163,6 +167,9 @@ Please report them in the plugin's support forum on Wordpress.org.
163
 
164
  == Upgrade Notice ==
165
 
 
 
 
166
  = 1.14 =
167
  Minor bug fix plus support for Retina displays added.
168
 
4
  Tags: pinterest, pin it, button, image, images, pinit, social media, hover, click, photo, photos
5
  Requires at least: 3.3.0
6
  Tested up to: 3.6.1
7
+ Stable tag: 1.15
8
  License: GPLv2 or later
9
 
10
  Highlights images on hover and adds a Pinterest "Pin It" button over them for easy pinning.
71
 
72
  == Changelog ==
73
 
74
+ = 1.15 =
75
+ * Released 2013-11-06
76
+ * Added 'Image description' option to 'Description source' option
77
+
78
  = 1.14 =
79
  * Released 2013-10-17
80
  * Minor bug with linking images to posts fixed
167
 
168
  == Upgrade Notice ==
169
 
170
+ = 1.15 =
171
+ Adds 'Image description' option to 'Description source' option.
172
+
173
  = 1.14 =
174
  Minor bug fix plus support for Retina displays added.
175