Version Description
- Released 2017-03-16
- Added support for data-pin-description attribute
- Fixed pro version nag interval
Download this release
Release Info
Developer | mrsztuczkens |
Plugin | jQuery Pin It Button for Images |
Version | 2.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.4.2
includes/admin/includes/JPIBFI_Pro_Nag.php
CHANGED
@@ -3,8 +3,6 @@
|
|
3 |
require_once 'jpibfi_nag.php';
|
4 |
class JPIBFI_Pro_Nag extends JPIBFI_Nag {
|
5 |
|
6 |
-
private $cancel_notice_value;
|
7 |
-
private $stages;
|
8 |
private $plugin_name;
|
9 |
private $pro_link;
|
10 |
private $notice_key;
|
@@ -14,9 +12,7 @@ class JPIBFI_Pro_Nag extends JPIBFI_Nag {
|
|
14 |
parent::__construct( $plugin_prefix );
|
15 |
$this->pro_link = $pro_link;
|
16 |
$this->plugin_name = $plugin_name;
|
17 |
-
$this->notice_key = $plugin_prefix . '
|
18 |
-
$this->stages = array( 30, 60, 90, 135, 180, 225, 270, 315, 360, 405, 450, 495, 540, 585, 630, 675, 720 );
|
19 |
-
$this->cancel_notice_value = 'END';
|
20 |
|
21 |
$this->notice_text = sprintf(
|
22 |
__( "You've been using <b>%s</b> for quite some time now. How about checking out the Pro version? <a class='button button-primary' href='%s' target='_blank'>Yes, take me there →</a> <a class='button button-secondary' href='%s'>Thanks, but no thanks.</a>", 'jquery-pin-in-button-for-images' ),
|
@@ -40,35 +36,46 @@ class JPIBFI_Pro_Nag extends JPIBFI_Nag {
|
|
40 |
return;
|
41 |
}
|
42 |
global $current_user;
|
|
|
|
|
|
|
|
|
43 |
$datetime_install = $this->get_install_date();
|
44 |
-
$
|
45 |
-
|
46 |
-
$datetime_past = new DateTime( sprintf('-%s days', $this->stages[ $i ] ) );
|
47 |
-
if ( $datetime_past >= $datetime_install && ($i + 1 < count( $this->stages )) ) {
|
48 |
-
$users_stage = $this->stages[ $i + 1 ];
|
49 |
-
break;
|
50 |
-
}
|
51 |
-
}
|
52 |
-
update_user_meta( $current_user->ID, $this->notice_key, $users_stage );
|
53 |
wp_redirect( remove_query_arg( $this->notice_key ) );
|
54 |
exit;
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
/**
|
58 |
* Display the admin notice
|
59 |
*/
|
60 |
public function display_admin_notice() {
|
|
|
61 |
$current_user = wp_get_current_user();
|
62 |
-
$
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
}
|
67 |
-
$users_stage = '' == $users_stage ? $this->stages[0] : $users_stage;
|
68 |
-
$datetime_install = $this->get_install_date();
|
69 |
-
$datetime_past = new DateTime( sprintf('-%s days', $users_stage ) );
|
70 |
|
71 |
-
if ( $
|
72 |
return;
|
73 |
}
|
74 |
?>
|
3 |
require_once 'jpibfi_nag.php';
|
4 |
class JPIBFI_Pro_Nag extends JPIBFI_Nag {
|
5 |
|
|
|
|
|
6 |
private $plugin_name;
|
7 |
private $pro_link;
|
8 |
private $notice_key;
|
12 |
parent::__construct( $plugin_prefix );
|
13 |
$this->pro_link = $pro_link;
|
14 |
$this->plugin_name = $plugin_name;
|
15 |
+
$this->notice_key = $plugin_prefix . '_pro_notice_date';
|
|
|
|
|
16 |
|
17 |
$this->notice_text = sprintf(
|
18 |
__( "You've been using <b>%s</b> for quite some time now. How about checking out the Pro version? <a class='button button-primary' href='%s' target='_blank'>Yes, take me there →</a> <a class='button button-secondary' href='%s'>Thanks, but no thanks.</a>", 'jquery-pin-in-button-for-images' ),
|
36 |
return;
|
37 |
}
|
38 |
global $current_user;
|
39 |
+
|
40 |
+
/* remove old user meta if it still exists */
|
41 |
+
delete_user_meta($current_user->ID, $this->plugin_prefix . '_pro_notice');
|
42 |
+
|
43 |
$datetime_install = $this->get_install_date();
|
44 |
+
$next_date = $this->getNextNagDate( $datetime_install );
|
45 |
+
update_user_meta( $current_user->ID, $this->notice_key, $next_date->format( 'Y-m-d' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
wp_redirect( remove_query_arg( $this->notice_key ) );
|
47 |
exit;
|
48 |
}
|
49 |
|
50 |
+
private function getNextNagDate($install_date) {
|
51 |
+
$base_period = 45;
|
52 |
+
$stages = array(
|
53 |
+
new DateTime( '-180 days' ),
|
54 |
+
new DateTime( '-365 days' ),
|
55 |
+
new DateTime( '-730 days' ),
|
56 |
+
new DateTime( '-1100 days' )
|
57 |
+
);
|
58 |
+
|
59 |
+
for( $i = count( $stages) - 1; $i >= 0; $i--) {
|
60 |
+
if ( $install_date < $stages[ $i ] ) {
|
61 |
+
return new DateTime( sprintf( '+%s days', ($i + 1) * $base_period ) );
|
62 |
+
}
|
63 |
+
}
|
64 |
+
return new DateTime( '+30 days' );
|
65 |
+
}
|
66 |
+
|
67 |
/**
|
68 |
* Display the admin notice
|
69 |
*/
|
70 |
public function display_admin_notice() {
|
71 |
+
$now = new DateTime();
|
72 |
$current_user = wp_get_current_user();
|
73 |
+
$notice_date_string = get_user_meta( $current_user->ID, $this->notice_key, true );
|
74 |
+
$notice_date = '' == $notice_date_string
|
75 |
+
? $now
|
76 |
+
: new DateTime( $notice_date_string );
|
|
|
|
|
|
|
|
|
77 |
|
78 |
+
if ( $notice_date > $now ) {
|
79 |
return;
|
80 |
}
|
81 |
?>
|
includes/admin/settings/jpibfi-visual-settings.php
CHANGED
@@ -111,7 +111,8 @@ class JPIBFI_Visual_Settings extends JPIBFI_Settings_Base {
|
|
111 |
"site_title" => __( 'Site title (Settings->General)', 'jquery-pin-it-button-for-images' ),
|
112 |
"img_description" => __( 'Image description', 'jquery-pin-it-button-for-images' ),
|
113 |
"img_caption" => __( 'Image caption', 'jquery-pin-it-button-for-images' ),
|
114 |
-
"img_alt" => __( 'Image alt attribute', 'jquery-pin-it-button-for-images' )
|
|
|
115 |
),
|
116 |
'desc' => __( 'From where the Pinterest message should be taken. Check which sources should be considered and prioritize them by dragging and dropping. The description will come from the top source that has data. Please note that "Image description" and "Image caption" work properly only for images that were added to your Media Library.', 'jquery-pin-it-button-for-images' ),
|
117 |
'type' => 'multiselect'
|
111 |
"site_title" => __( 'Site title (Settings->General)', 'jquery-pin-it-button-for-images' ),
|
112 |
"img_description" => __( 'Image description', 'jquery-pin-it-button-for-images' ),
|
113 |
"img_caption" => __( 'Image caption', 'jquery-pin-it-button-for-images' ),
|
114 |
+
"img_alt" => __( 'Image alt attribute', 'jquery-pin-it-button-for-images' ),
|
115 |
+
"data_pin_description" => __( 'data-pin-description (Pinterest\'s custom attribute)', 'jquery-pin-it-button-for-images' )
|
116 |
),
|
117 |
'desc' => __( 'From where the Pinterest message should be taken. Check which sources should be considered and prioritize them by dragging and dropping. The description will come from the top source that has data. Please note that "Image description" and "Image caption" work properly only for images that were added to your Media Library.', 'jquery-pin-it-button-for-images' ),
|
118 |
'type' => 'multiselect'
|
includes/public/JPIBFI_Client_Helper.php
CHANGED
@@ -30,5 +30,4 @@ class JPIBFI_Client_Helper {
|
|
30 |
$property_value = $background_attr[2];
|
31 |
return self::get_url_from_css_property( $property_value );
|
32 |
}
|
33 |
-
|
34 |
}
|
30 |
$property_value = $background_attr[2];
|
31 |
return self::get_url_from_css_property( $property_value );
|
32 |
}
|
|
|
33 |
}
|
jquery-pin-it-button-for-images.php
CHANGED
@@ -6,7 +6,7 @@ Description: Highlights images on hover and adds a "Pin It" button over them for
|
|
6 |
Text Domain: jquery-pin-it-button-for-images
|
7 |
Domain Path: /languages
|
8 |
Author: Marcin Skrzypiec
|
9 |
-
Version:2.4.
|
10 |
Author URI: https://highfiveplugins.com/
|
11 |
*/
|
12 |
|
@@ -18,7 +18,7 @@ if ( !class_exists( 'jQuery_Pin_It_Button_For_Images' ) ) {
|
|
18 |
final class jQuery_Pin_It_Button_For_Images {
|
19 |
|
20 |
function __construct() {
|
21 |
-
$version = '2.4.
|
22 |
require_once plugin_dir_path(__FILE__) . 'includes/jpibfi.php';
|
23 |
new JPIBFI(__FILE__, $version);
|
24 |
}
|
6 |
Text Domain: jquery-pin-it-button-for-images
|
7 |
Domain Path: /languages
|
8 |
Author: Marcin Skrzypiec
|
9 |
+
Version:2.4.2
|
10 |
Author URI: https://highfiveplugins.com/
|
11 |
*/
|
12 |
|
18 |
final class jQuery_Pin_It_Button_For_Images {
|
19 |
|
20 |
function __construct() {
|
21 |
+
$version = '2.4.2';
|
22 |
require_once plugin_dir_path(__FILE__) . 'includes/jpibfi.php';
|
23 |
new JPIBFI(__FILE__, $version);
|
24 |
}
|
js/jpibfi.client.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function t(e,n,i){function r(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return r(n?n:t)},c,c.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.siteTitle,r=void 0===n?"":n;i(this,t),this.desc_funcs={img_title:function(t){return t.attr("title")||t.attr("data-jpibfi-title")},img_alt:function(t){return t.attr("alt")||t.attr("data-jpibfi-alt")},post_title:function(t){return t.attr("data-jpibfi-post-title")},post_excerpt:function(t){return t.attr("data-jpibfi-post-excerpt")},img_description:function(t){return t.attr("data-jpibfi-description")},img_caption:function(t){return t.attr("data-jpibfi-caption")},site_title:function(){return r}}}return r(t,[{key:"getDescription",value:function(t,e){for(var n="",i=0;i<e.length&&!n;i++)n=this.desc_funcs[e[i]](t);return n||""}}]),t}();n["default"]=o},{}],2:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(e){var n=this;i(this,t),this.flags={},this.pluginName=e;var r="undefined"!=typeof console&&"undefined"!=typeof console.log,o="undefined"!=typeof JSON&&"function"==typeof JSON.stringify;r?(this.logString=function(t){n.log(t)},this.logObject=o?function(t){n.log(JSON.stringify(t,null,4))}:function(t){return n.simplelogObject(t)}):(this.logString=function(){},this.logObject=function(){});var a=this.getQueryParams(document.location.search);Object.keys(a).forEach(function(t){var i=t.replace(e+"_","");n.setFlag(i,a[t])})}return r(t,[{key:"getFlag",value:function(t){return void 0!==this.flags[t]&&this.flags[t]}},{key:"getQueryParams",value:function(t){t=t.split("+").join(" ");for(var e={},n=void 0,i=/[?&]?([^=]+)=([^&]*)/g;n=i.exec(t);)e[decodeURIComponent(n[1])]=decodeURIComponent(n[2]);return e}},{key:"log",value:function(t){this.getFlag("print")&&console.log(this.pluginName+" debug: "+t)}},{key:"setFlag",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.flags[t]=e}},{key:"simplelogObject",value:function(t){if(this.getFlag("print")){var e=Object.keys(t).filter(function(e){return t.hasOwnPrototype(e)}).map(function(e){return e+": "+t[e]+"\n"}).join();this.log(e)}}}]),t}();n["default"]=o},{}],3:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=t("./link-generator"),u=i(a),s=function(){function t(e,n){r(this,t),this.$=e,this.settings=n,this.linkGenerator=new u["default"](n),this.$element=this.$("<a />",{target:"_blank","class":"pinit-button "+n.pin_image});var i="default"===n.pin_image?"jpibfi-icon-"+n.pin_image_icon:"";this.$element.html('<span class="'+i+'"></span>'),"default"===n.pin_image&&this.$element.addClass("jpibfi-size-"+n.pin_image_size+" jpibfi-button-"+n.pin_image_button),this.size={height:n.pinImageHeight,width:n.pinImageWidth}}return o(t,[{key:"createButton",value:function(t){var e=this.$element.clone(!1);return e.attr("href",this.linkGenerator.generate(t)).click(function(t){t.preventDefault(),t.stopPropagation(),"#"!==t.currentTarget.href.slice(-1)&&window.open(t.currentTarget.href,"mw"+t.timeStamp,"left=20,top=20,width=500,height=500,toolbar=1,resizable=0")})}},{key:"getSize",value:function(){return this.size}}]),t}();n["default"]=s},{"./link-generator":6}],4:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(e){var n=this;i(this,t),this.settings=e,this.disabledClasses=this.createClassList(e.disabled_classes),this.enabledClasses=this.createClassList(e.enabled_classes),this.updateSizeConstraints(),window.addEventListener("resize",function(){return n.updateSizeConstraints()},!1)}return r(t,[{key:"createClassList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(";").filter(function(t){return!!t})}},{key:"imageEligible",value:function(t){return(0===this.enabledClasses.length||this.enabledClasses.some(function(e){return t.hasClass(e)}))&&!this.disabledClasses.some(function(e){return t.hasClass(e)})&&this.imageSizeIsOk(t)}},{key:"imageSizeIsOk",value:function(t){var e=t[0].clientWidth,n=t[0].clientHeight;return e>=this.minWidth&&n>=this.minHeight}},{key:"updateSizeConstraints",value:function(){this.minWidth=window.outerWidth<768?this.settings.min_image_width_small:this.settings.min_image_width,this.minHeight=window.outerWidth<768?this.settings.min_image_height_small:this.settings.min_image_height}}]),t}();n["default"]=o},{}],5:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=t("./show-on-hover-strategy"),u=i(a),s=function(){function t(e,n,i){r(this,t),this.settings=n,this.$=e,this.logger=i}return o(t,[{key:"init",value:function(){this.showStrategy=this.getStrategy(),this.showStrategy.start()}},{key:"getStrategy",value:function(){var t=null;return new(t=u["default"])(this.$,this.settings,this.logger)}}]),t}();n["default"]=s},{"./show-on-hover-strategy":8}],6:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=t("./../common/description-helper"),u=i(a),s=function(){function t(e){r(this,t),this.descriptionHelper=new u["default"]({siteTitle:e.siteTitle}),this.pinLinkedImages=e.pinLinkedImages,this.description_option=e.description_option}return o(t,[{key:"getDescription",value:function(t){return this.descriptionHelper.getDescription(t,this.description_option)}},{key:"getImage",value:function(t){var e=t.attr("data-jpibfi-src")||(t.prop?t.prop("src"):t.attr("src"));if(!e||!this.pinLinkedImages)return e;var n=t.closest("a[href]");if(0===n.length)return e;var i=e.split(".").pop(),r=n.attr("href"),o=r.split(".").pop();return o.toLowerCase()===i.toLowerCase()?r:e}},{key:"getUrl",value:function(t){return t.attr("data-jpibfi-post-url")||window.location.href}},{key:"generate",value:function(t){var e=encodeURIComponent(this.getDescription(t)),n=encodeURIComponent(this.getUrl(t)),i=encodeURIComponent(this.getImage(t));return"http://pinterest.com/pin/create/bookmarklet/?is_video=false&url="+n+"&media="+i+"&description="+e}}]),t}();n["default"]=s},{"./../common/description-helper":1}],7:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(t,e,n,i){return t.top+i.top},a=function(t,e,n,i){return t.left+i.left},u=function(t,e,n,i){return e.top-n.height-i.bottom},s=function(t,e,n,i){return e.left-i.right-n.width},l=function(t,e,n){return t.top+((e.top-t.top)/2-n.height/2)},c=function(t,e,n){return t.left+((e.left-t.left)/2-n.width/2)},f=function(){function t(e,n){i(this,t),this.topF=e,this.leftF=n}return r(t,[{key:"calculate",value:function(t,e,n,i){return{top:this.topF(t,e,n,i),left:this.leftF(t,e,n,i)}}}]),t}(),h=function(){function t(e,n){i(this,t),this.margins=n,this.positionCalculator=this.getPositionCalculator(e)}return r(t,[{key:"getPositionCalculator",value:function(t){switch(t){case"top-left":return new f(o,a);case"top-right":return new f(o,s);case"bottom-left":return new f(u,a);case"bottom-right":return new f(u,s);default:return new f(l,c)}}},{key:"calculatePosition",value:function(t,e,n){return this.positionCalculator.calculate(t,e,n,this.margins)}}]),t}();n["default"]=h},{}],8:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=t("./show-strategy"),l=i(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"init",value:function(){this.addContainers()}},{key:"start",value:function(){var t=this;this.init();var e="data-jpibfi-timeout",n=0,i=function(e){return t.$("a.pinit-button["+t.indexerAttr+'="'+e+'"]')},r=this;r.$(document).delegate(this.settings.image_selector,"mouseenter",function(){var t=r.$(this);if(r.imageFilter.imageEligible(t)){t.addClass("pinit-hover");var o=t.attr(r.indexerAttr);o||(o=n++,t.attr(r.indexerAttr,o));var a=i(o);if(0===a.length){var u=r.buttonGenerator.createButton(t),s=r.buttonGenerator.getSize(),l=t.offset(),c={top:l.top+t[0].clientHeight,left:l.left+t[0].clientWidth},f=r.positioner.calculatePosition(l,c,s);t.after(u),u.attr(r.indexerAttr,o).css("visibility","hidden").show().offset(f).css("visibility","visible").hover(function(){return clearTimeout(u.attr(e))},function(){return u.attr(e,setTimeout(function(){t.removeClass("pinit-hover"),u.remove()},100))})}else clearTimeout(a.attr(e))}}),r.$(document).delegate(this.settings.image_selector,"mouseleave",function(){if(!r.logger.getFlag("prevent_hide")){var t=r.$(this),n=t.attr(r.indexerAttr);if(n){var o=i(n);o.attr(e,setTimeout(function(){t.removeClass("pinit-hover"),o.remove()},100))}}})}}]),e}(l["default"]);n["default"]=c},{"./show-strategy":9}],9:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=t("./image-filter"),u=i(a),s=t("./button-generator"),l=i(s),c=t("./positioner"),f=i(c),h=function(){function t(e,n,i){r(this,t),this.$=e,this.settings=n,this.logger=i,this.imageFilter=new u["default"](n),this.buttonGenerator=new l["default"](e,n);var o={left:n.button_margin_left,top:n.button_margin_top,right:n.button_margin_right,bottom:n.button_margin_bottom};this.positioner=new f["default"](n.button_position,o),this.indexerAttr="data-jpibfi-indexer"}return o(t,[{key:"addContainers",value:function(){var t=this.$(".jpibfi"),e=t.closest("div, article");e=e.length?e:t.parent(),e.addClass("jpibfi_container")}}]),t}();n["default"]=h},{"./button-generator":3,"./image-filter":4,"./positioner":7}],10:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}var r=t("./settings"),o=i(r),a=t("./debugger"),u=i(a),s=t("./hover"),l=i(s);!function(t){var e=function(){var e=window.jpibfi_options,n=new o["default"](t.extend({pageUrl:document.URL,pageTitle:document.title,pageDescription:t('meta[name="description"]').attr("content")||""},e.hover)),i=new u["default"]("jpibfi");window.jpibfi_debugger=i;var r=new l["default"](t,n,i);r.init()};t(document).ready(e)}(jQuery)},{"./debugger":2,"./hover":5,"./settings":11}],11:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function o(t){var e=this;i(this,o),Object.keys(t).forEach(function(n){e[n]=t[n]}),this.isTouchDevice="ontouchstart"in window||{}.hasOwnProperty.call(navigator,"maxTouchPoints")};n["default"]=r},{}]},{},[10]);
|
1 |
+
!function t(e,n,i){function r(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return r(n?n:t)},c,c.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.siteTitle,r=void 0===n?"":n;i(this,t),this.desc_funcs={img_title:function(t){return t.attr("title")||t.attr("data-jpibfi-title")},img_alt:function(t){return t.attr("alt")||t.attr("data-jpibfi-alt")},post_title:function(t){return t.attr("data-jpibfi-post-title")},post_excerpt:function(t){return t.attr("data-jpibfi-post-excerpt")},img_description:function(t){return t.attr("data-jpibfi-description")},img_caption:function(t){return t.attr("data-jpibfi-caption")},site_title:function(){return r},data_pin_description:function(t){return t.attr("data-pin-description")}}}return r(t,[{key:"getDescription",value:function(t,e){for(var n="",i=0;i<e.length&&!n;i++)n=this.desc_funcs[e[i]](t);return n||""}}]),t}();n["default"]=o},{}],2:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(e){var n=this;i(this,t),this.flags={},this.pluginName=e;var r="undefined"!=typeof console&&"undefined"!=typeof console.log,o="undefined"!=typeof JSON&&"function"==typeof JSON.stringify;r?(this.logString=function(t){n.log(t)},this.logObject=o?function(t){n.log(JSON.stringify(t,null,4))}:function(t){return n.simplelogObject(t)}):(this.logString=function(){},this.logObject=function(){});var a=this.getQueryParams(document.location.search);Object.keys(a).forEach(function(t){var i=t.replace(e+"_","");n.setFlag(i,a[t])})}return r(t,[{key:"getFlag",value:function(t){return void 0!==this.flags[t]&&this.flags[t]}},{key:"getQueryParams",value:function(t){t=t.split("+").join(" ");for(var e={},n=void 0,i=/[?&]?([^=]+)=([^&]*)/g;n=i.exec(t);)e[decodeURIComponent(n[1])]=decodeURIComponent(n[2]);return e}},{key:"log",value:function(t){this.getFlag("print")&&console.log(this.pluginName+" debug: "+t)}},{key:"setFlag",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.flags[t]=e}},{key:"simplelogObject",value:function(t){if(this.getFlag("print")){var e=Object.keys(t).filter(function(e){return t.hasOwnPrototype(e)}).map(function(e){return e+": "+t[e]+"\n"}).join();this.log(e)}}}]),t}();n["default"]=o},{}],3:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=t("./link-generator"),u=i(a),s=function(){function t(e,n){r(this,t),this.$=e,this.settings=n,this.linkGenerator=new u["default"](n),this.$element=this.$("<a />",{target:"_blank","class":"pinit-button "+n.pin_image});var i="default"===n.pin_image?"jpibfi-icon-"+n.pin_image_icon:"";this.$element.html('<span class="'+i+'"></span>'),"default"===n.pin_image&&this.$element.addClass("jpibfi-size-"+n.pin_image_size+" jpibfi-button-"+n.pin_image_button),this.size={height:n.pinImageHeight,width:n.pinImageWidth}}return o(t,[{key:"createButton",value:function(t){var e=this.$element.clone(!1);return e.attr("href",this.linkGenerator.generate(t)).click(function(t){t.preventDefault(),t.stopPropagation(),"#"!==t.currentTarget.href.slice(-1)&&window.open(t.currentTarget.href,"mw"+t.timeStamp,"left=20,top=20,width=500,height=500,toolbar=1,resizable=0")})}},{key:"getSize",value:function(){return this.size}}]),t}();n["default"]=s},{"./link-generator":6}],4:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(e){var n=this;i(this,t),this.settings=e,this.disabledClasses=this.createClassList(e.disabled_classes),this.enabledClasses=this.createClassList(e.enabled_classes),this.updateSizeConstraints(),window.addEventListener("resize",function(){return n.updateSizeConstraints()},!1)}return r(t,[{key:"createClassList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(";").filter(function(t){return!!t})}},{key:"imageEligible",value:function(t){return(0===this.enabledClasses.length||this.enabledClasses.some(function(e){return t.hasClass(e)}))&&!this.disabledClasses.some(function(e){return t.hasClass(e)})&&this.imageSizeIsOk(t)}},{key:"imageSizeIsOk",value:function(t){var e=t[0].clientWidth,n=t[0].clientHeight;return e>=this.minWidth&&n>=this.minHeight}},{key:"updateSizeConstraints",value:function(){this.minWidth=window.outerWidth<768?this.settings.min_image_width_small:this.settings.min_image_width,this.minHeight=window.outerWidth<768?this.settings.min_image_height_small:this.settings.min_image_height}}]),t}();n["default"]=o},{}],5:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=t("./show-on-hover-strategy"),u=i(a),s=function(){function t(e,n,i){r(this,t),this.settings=n,this.$=e,this.logger=i}return o(t,[{key:"init",value:function(){this.showStrategy=this.getStrategy(),this.showStrategy.start()}},{key:"getStrategy",value:function(){var t=null;return new(t=u["default"])(this.$,this.settings,this.logger)}}]),t}();n["default"]=s},{"./show-on-hover-strategy":8}],6:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=t("./../common/description-helper"),u=i(a),s=function(){function t(e){r(this,t),this.descriptionHelper=new u["default"]({siteTitle:e.siteTitle}),this.pinLinkedImages=e.pinLinkedImages,this.description_option=e.description_option}return o(t,[{key:"getDescription",value:function(t){return this.descriptionHelper.getDescription(t,this.description_option)}},{key:"getImage",value:function(t){var e=t.attr("data-jpibfi-src")||(t.prop?t.prop("src"):t.attr("src"));if(!e||!this.pinLinkedImages)return e;var n=t.closest("a[href]");if(0===n.length)return e;var i=e.split(".").pop(),r=n.attr("href"),o=r.split(".").pop();return o.toLowerCase()===i.toLowerCase()?r:e}},{key:"getUrl",value:function(t){return t.attr("data-jpibfi-post-url")||window.location.href}},{key:"generate",value:function(t){var e=encodeURIComponent(this.getDescription(t)),n=encodeURIComponent(this.getUrl(t)),i=encodeURIComponent(this.getImage(t));return"http://pinterest.com/pin/create/bookmarklet/?is_video=false&url="+n+"&media="+i+"&description="+e}}]),t}();n["default"]=s},{"./../common/description-helper":1}],7:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(t,e,n,i){return t.top+i.top},a=function(t,e,n,i){return t.left+i.left},u=function(t,e,n,i){return e.top-n.height-i.bottom},s=function(t,e,n,i){return e.left-i.right-n.width},l=function(t,e,n){return t.top+((e.top-t.top)/2-n.height/2)},c=function(t,e,n){return t.left+((e.left-t.left)/2-n.width/2)},f=function(){function t(e,n){i(this,t),this.topF=e,this.leftF=n}return r(t,[{key:"calculate",value:function(t,e,n,i){return{top:this.topF(t,e,n,i),left:this.leftF(t,e,n,i)}}}]),t}(),p=function(){function t(e,n){i(this,t),this.margins=n,this.positionCalculator=this.getPositionCalculator(e)}return r(t,[{key:"getPositionCalculator",value:function(t){switch(t){case"top-left":return new f(o,a);case"top-right":return new f(o,s);case"bottom-left":return new f(u,a);case"bottom-right":return new f(u,s);default:return new f(l,c)}}},{key:"calculatePosition",value:function(t,e,n){return this.positionCalculator.calculate(t,e,n,this.margins)}}]),t}();n["default"]=p},{}],8:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=t("./show-strategy"),l=i(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"init",value:function(){this.addContainers()}},{key:"start",value:function(){var t=this;this.init();var e="data-jpibfi-timeout",n=0,i=function(e){return t.$("a.pinit-button["+t.indexerAttr+'="'+e+'"]')},r=this;r.$(document).delegate(this.settings.image_selector,"mouseenter",function(){var t=r.$(this);if(r.imageFilter.imageEligible(t)){t.addClass("pinit-hover");var o=t.attr(r.indexerAttr);o||(o=n++,t.attr(r.indexerAttr,o));var a=i(o);if(0===a.length){var u=r.buttonGenerator.createButton(t),s=r.buttonGenerator.getSize(),l=t.offset(),c={top:l.top+t[0].clientHeight,left:l.left+t[0].clientWidth},f=r.positioner.calculatePosition(l,c,s);t.after(u),u.attr(r.indexerAttr,o).css("visibility","hidden").show().offset(f).css("visibility","visible").hover(function(){return clearTimeout(u.attr(e))},function(){return u.attr(e,setTimeout(function(){t.removeClass("pinit-hover"),u.remove()},100))})}else clearTimeout(a.attr(e))}}),r.$(document).delegate(this.settings.image_selector,"mouseleave",function(){if(!r.logger.getFlag("prevent_hide")){var t=r.$(this),n=t.attr(r.indexerAttr);if(n){var o=i(n);o.attr(e,setTimeout(function(){t.removeClass("pinit-hover"),o.remove()},100))}}})}}]),e}(l["default"]);n["default"]=c},{"./show-strategy":9}],9:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=t("./image-filter"),u=i(a),s=t("./button-generator"),l=i(s),c=t("./positioner"),f=i(c),p=function(){function t(e,n,i){r(this,t),this.$=e,this.settings=n,this.logger=i,this.imageFilter=new u["default"](n),this.buttonGenerator=new l["default"](e,n);var o={left:n.button_margin_left,top:n.button_margin_top,right:n.button_margin_right,bottom:n.button_margin_bottom};this.positioner=new f["default"](n.button_position,o),this.indexerAttr="data-jpibfi-indexer"}return o(t,[{key:"addContainers",value:function(){var t=this.$(".jpibfi"),e=t.closest("div, article");e=e.length?e:t.parent(),e.addClass("jpibfi_container")}}]),t}();n["default"]=p},{"./button-generator":3,"./image-filter":4,"./positioner":7}],10:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}var r=t("./settings"),o=i(r),a=t("./debugger"),u=i(a),s=t("./hover"),l=i(s);!function(t){var e=function(){var e=window.jpibfi_options,n=new o["default"](t.extend({pageUrl:document.URL,pageTitle:document.title,pageDescription:t('meta[name="description"]').attr("content")||""},e.hover)),i=new u["default"]("jpibfi");window.jpibfi_debugger=i;var r=new l["default"](t,n,i);r.init()};t(document).ready(e)}(jQuery)},{"./debugger":2,"./hover":5,"./settings":11}],11:[function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function o(t){var e=this;i(this,o),Object.keys(t).forEach(function(n){e[n]=t[n]}),this.isTouchDevice="ontouchstart"in window||{}.hasOwnProperty.call(navigator,"maxTouchPoints")};n["default"]=r},{}]},{},[10]);
|
languages/jquery-pin-it-button-for-images.pot
CHANGED
@@ -283,7 +283,7 @@ msgstr ""
|
|
283 |
msgid "Only images 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."
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: includes/admin/settings/jpibfi-selection-settings.php:191, includes/admin/settings/jpibfi-selection-settings.php:213, includes/admin/settings/jpibfi-visual-settings.php:
|
287 |
msgid "Height"
|
288 |
msgstr ""
|
289 |
|
@@ -291,7 +291,7 @@ msgstr ""
|
|
291 |
msgid "Minimum image height"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: includes/admin/settings/jpibfi-selection-settings.php:201, includes/admin/settings/jpibfi-selection-settings.php:223, includes/admin/settings/jpibfi-visual-settings.php:
|
295 |
msgid "Width"
|
296 |
msgstr ""
|
297 |
|
@@ -479,119 +479,123 @@ msgstr ""
|
|
479 |
msgid "Image alt attribute"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
|
|
|
|
|
|
|
|
483 |
msgid "From where the Pinterest message should be taken. Check which sources should be considered and prioritize them by dragging and dropping. The description will come from the top source that has data. Please note that \"Image description\" and \"Image caption\" work properly only for images that were added to your Media Library."
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
487 |
msgid "Pin linked images"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
491 |
msgid "Active"
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
495 |
msgid "When checked, pins full-sized images instead of thumbnails (works only if you link thumbnails to their full versions)."
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
499 |
msgid "Transparency"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
503 |
msgid "Choose transparency (between %.02f and %.02f)"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
507 |
msgid "Pin image"
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
511 |
msgid "Old default"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
515 |
msgid "Default"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
519 |
msgid "Custom"
|
520 |
msgstr ""
|
521 |
|
522 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
523 |
msgid "Button"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
527 |
msgid "Square"
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
531 |
msgid "Rounded square"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
535 |
msgid "Round"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
539 |
msgid "Rectangle"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
543 |
msgid "Rounded rectangle"
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
547 |
msgid "Icon"
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
551 |
msgid "Circle"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
555 |
msgid "Plain"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
559 |
msgid "Thumbtack"
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
563 |
msgid "Thumbtack #2"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
567 |
msgid "Classic"
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
571 |
msgid "Size"
|
572 |
msgstr ""
|
573 |
|
574 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
575 |
msgid "Small"
|
576 |
msgstr ""
|
577 |
|
578 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
579 |
msgid "Normal"
|
580 |
msgstr ""
|
581 |
|
582 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
583 |
msgid "Large"
|
584 |
msgstr ""
|
585 |
|
586 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
587 |
msgid "URL address of the image"
|
588 |
msgstr ""
|
589 |
|
590 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
591 |
msgid "Custom image height"
|
592 |
msgstr ""
|
593 |
|
594 |
-
#: includes/admin/settings/jpibfi-visual-settings.php:
|
595 |
msgid "Custom image width"
|
596 |
msgstr ""
|
597 |
|
283 |
msgid "Only images 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."
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: includes/admin/settings/jpibfi-selection-settings.php:191, includes/admin/settings/jpibfi-selection-settings.php:213, includes/admin/settings/jpibfi-visual-settings.php:391
|
287 |
msgid "Height"
|
288 |
msgstr ""
|
289 |
|
291 |
msgid "Minimum image height"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: includes/admin/settings/jpibfi-selection-settings.php:201, includes/admin/settings/jpibfi-selection-settings.php:223, includes/admin/settings/jpibfi-visual-settings.php:401
|
295 |
msgid "Width"
|
296 |
msgstr ""
|
297 |
|
479 |
msgid "Image alt attribute"
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:229
|
483 |
+
msgid "data-pin-description (Pinterest's custom attribute)"
|
484 |
+
msgstr ""
|
485 |
+
|
486 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:233
|
487 |
msgid "From where the Pinterest message should be taken. Check which sources should be considered and prioritize them by dragging and dropping. The description will come from the top source that has data. Please note that \"Image description\" and \"Image caption\" work properly only for images that were added to your Media Library."
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:245
|
491 |
msgid "Pin linked images"
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:247
|
495 |
msgid "Active"
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:249
|
499 |
msgid "When checked, pins full-sized images instead of thumbnails (works only if you link thumbnails to their full versions)."
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:261
|
503 |
msgid "Transparency"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:263
|
507 |
msgid "Choose transparency (between %.02f and %.02f)"
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:281
|
511 |
msgid "Pin image"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:285
|
515 |
msgid "Old default"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:287
|
519 |
msgid "Default"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:289
|
523 |
msgid "Custom"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:303
|
527 |
msgid "Button"
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:307
|
531 |
msgid "Square"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:309
|
535 |
msgid "Rounded square"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:311
|
539 |
msgid "Round"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:313
|
543 |
msgid "Rectangle"
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:315
|
547 |
msgid "Rounded rectangle"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:329
|
551 |
msgid "Icon"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:333
|
555 |
msgid "Circle"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:335
|
559 |
msgid "Plain"
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:337
|
563 |
msgid "Thumbtack"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:339
|
567 |
msgid "Thumbtack #2"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:341
|
571 |
msgid "Classic"
|
572 |
msgstr ""
|
573 |
|
574 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:355
|
575 |
msgid "Size"
|
576 |
msgstr ""
|
577 |
|
578 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:359
|
579 |
msgid "Small"
|
580 |
msgstr ""
|
581 |
|
582 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:361
|
583 |
msgid "Normal"
|
584 |
msgstr ""
|
585 |
|
586 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:363
|
587 |
msgid "Large"
|
588 |
msgstr ""
|
589 |
|
590 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:377
|
591 |
msgid "URL address of the image"
|
592 |
msgstr ""
|
593 |
|
594 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:393
|
595 |
msgid "Custom image height"
|
596 |
msgstr ""
|
597 |
|
598 |
+
#: includes/admin/settings/jpibfi-visual-settings.php:403
|
599 |
msgid "Custom image width"
|
600 |
msgstr ""
|
601 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: mrsztuczkens, redearthdesign, brocheafoin, robertark
|
|
3 |
Tags: pinterest, pin it, button, image, images, pinit, social media, hover, click, photo, photos
|
4 |
Requires at least: 3.3.0
|
5 |
Tested up to: 4.9.1
|
6 |
-
Stable tag: 2.4.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Highlights images on hover and adds a Pinterest "Pin It" button over them for easy pinning.
|
@@ -68,6 +68,11 @@ Please report them in the plugin's support forum on Wordpress.org.
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
|
|
|
|
71 |
= 2.4.0 =
|
72 |
* Released 2017-02-26
|
73 |
* Added support for custom showing and disabling the plugin on custom post types
|
@@ -351,6 +356,10 @@ Please report them in the plugin's support forum on Wordpress.org.
|
|
351 |
|
352 |
== Upgrade Notice ==
|
353 |
|
|
|
|
|
|
|
|
|
354 |
= 2.4.0 =
|
355 |
* Added support for custom showing and disabling the plugin on custom post types
|
356 |
|
3 |
Tags: pinterest, pin it, button, image, images, pinit, social media, hover, click, photo, photos
|
4 |
Requires at least: 3.3.0
|
5 |
Tested up to: 4.9.1
|
6 |
+
Stable tag: 2.4.2
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Highlights images on hover and adds a Pinterest "Pin It" button over them for easy pinning.
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 2.4.2 =
|
72 |
+
* Released 2017-03-16
|
73 |
+
* Added support for data-pin-description attribute
|
74 |
+
* Fixed pro version nag interval
|
75 |
+
|
76 |
= 2.4.0 =
|
77 |
* Released 2017-02-26
|
78 |
* Added support for custom showing and disabling the plugin on custom post types
|
356 |
|
357 |
== Upgrade Notice ==
|
358 |
|
359 |
+
= 2.4.2 =
|
360 |
+
* Released 2017-03-16
|
361 |
+
* Support for data-pin-description and one more minor fix
|
362 |
+
|
363 |
= 2.4.0 =
|
364 |
* Added support for custom showing and disabling the plugin on custom post types
|
365 |
|