Version Description
- Fixed a bug with shortcode buttons not enqueueing CSS & JS correctly.
- Fixed a bug with some characters (such as single quotes) rendering HTML codes in the pin description.
Download this release
Release Info
Developer | pderksen |
Plugin | Pinterest "Pin It" Button |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.4 to 2.0.5
- class-pinterest-pin-it-button.php +1 -1
- pinterest-pin-it-button.php +1 -1
- readme.txt +5 -0
- views/admin-help.php +8 -8
- views/admin-sidebar.php +5 -0
- views/public.php +4 -1
class-pinterest-pin-it-button.php
CHANGED
@@ -28,7 +28,7 @@ class Pinterest_Pin_It_Button {
|
|
28 |
* and README.txt changelog
|
29 |
**************************************/
|
30 |
|
31 |
-
protected $version = '2.0.
|
32 |
|
33 |
/**
|
34 |
* Unique identifier for your plugin.
|
28 |
* and README.txt changelog
|
29 |
**************************************/
|
30 |
|
31 |
+
protected $version = '2.0.5';
|
32 |
|
33 |
/**
|
34 |
* Unique identifier for your plugin.
|
pinterest-pin-it-button.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
* Plugin Name: Pinterest "Pin It" Button Lite
|
14 |
* Plugin URI: http://pinplugins.com/pin-it-button-pro/
|
15 |
* Description: Add a Pinterest "Pin It" Button to your site and get your visitors to start pinning your awesome content!
|
16 |
-
* Version: 2.0.
|
17 |
* Author: Phil Derksen
|
18 |
* Author URI: http://philderksen.com
|
19 |
* License: GPL-2.0+
|
13 |
* Plugin Name: Pinterest "Pin It" Button Lite
|
14 |
* Plugin URI: http://pinplugins.com/pin-it-button-pro/
|
15 |
* Description: Add a Pinterest "Pin It" Button to your site and get your visitors to start pinning your awesome content!
|
16 |
+
* Version: 2.0.5
|
17 |
* Author: Phil Derksen
|
18 |
* Author URI: http://philderksen.com
|
19 |
* License: GPL-2.0+
|
readme.txt
CHANGED
@@ -122,6 +122,11 @@ CSS styling and shortcode help available within the plugin admin.
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
|
|
125 |
= 2.0.4 =
|
126 |
|
127 |
* Various performance enhancements.
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 2.0.5 =
|
126 |
+
|
127 |
+
* Fixed a bug with shortcode buttons not enqueueing CSS & JS correctly.
|
128 |
+
* Fixed a bug with some characters (such as single quotes) rendering HTML codes in the pin description.
|
129 |
+
|
130 |
= 2.0.4 =
|
131 |
|
132 |
* Various performance enhancements.
|
views/admin-help.php
CHANGED
@@ -26,14 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
26 |
<?php _e( 'Plugin version', 'pib' ); ?>: <strong><?php echo PIB_VERSION; ?></strong>
|
27 |
</p>
|
28 |
|
29 |
-
<h3 class="title"><?php _e( '
|
30 |
-
|
31 |
-
<p>
|
32 |
-
<?php _e( 'You may individually override what website address (URL), image and description will be pinned for each post or page.', 'pib' ); ?>
|
33 |
-
<?php _e( 'These fields are located towards the bottom of the post/page edit screen.', 'pib' ); ?>
|
34 |
-
</p>
|
35 |
-
|
36 |
-
<h3 class="title"><?php _e( 'Shortcode', 'pib' ); ?></h3>
|
37 |
|
38 |
<p>
|
39 |
<?php _e( 'Use the shortcode', 'pib' ); ?> <code>[pinit]</code> <?php _e( 'to display the button within your content.', 'pib' ); ?>
|
@@ -206,6 +199,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
206 |
<li><code>div.pin-it-btn-wrapper a { border: 1px solid red; }</code> - <?php _e( 'Add red border around button', 'pib' ); ?></li>
|
207 |
<li><code>div.pin-it-btn-wrapper-widget a { border: 1px solid red; }</code> - <?php _e( 'Add red border around widget button', 'pib' ); ?></li>
|
208 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
|
210 |
<p>
|
211 |
<?php printf( __( 'Need more widgets? Check out our free <a href="%s">Pinterest Widgets</a> plugin.', 'pib' ),
|
26 |
<?php _e( 'Plugin version', 'pib' ); ?>: <strong><?php echo PIB_VERSION; ?></strong>
|
27 |
</p>
|
28 |
|
29 |
+
<h3 class="title"><?php _e( 'Shortcode Options', 'pib' ); ?></h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
<p>
|
32 |
<?php _e( 'Use the shortcode', 'pib' ); ?> <code>[pinit]</code> <?php _e( 'to display the button within your content.', 'pib' ); ?>
|
199 |
<li><code>div.pin-it-btn-wrapper a { border: 1px solid red; }</code> - <?php _e( 'Add red border around button', 'pib' ); ?></li>
|
200 |
<li><code>div.pin-it-btn-wrapper-widget a { border: 1px solid red; }</code> - <?php _e( 'Add red border around widget button', 'pib' ); ?></li>
|
201 |
</ul>
|
202 |
+
|
203 |
+
<h3 class="title"><?php _e( 'Individual Post/Page Overrides', 'pib' ); ?></h3>
|
204 |
+
|
205 |
+
<p>
|
206 |
+
<?php _e( 'You may individually override what website address (URL), image and description will be pinned for each post or page.', 'pib' ); ?>
|
207 |
+
<?php _e( 'These fields are located towards the bottom of the post/page edit screen.', 'pib' ); ?>
|
208 |
+
</p>
|
209 |
|
210 |
<p>
|
211 |
<?php printf( __( 'Need more widgets? Check out our free <a href="%s">Pinterest Widgets</a> plugin.', 'pib' ),
|
views/admin-sidebar.php
CHANGED
@@ -103,6 +103,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
103 |
<div class="sidebar-container">
|
104 |
<div class="sidebar-content">
|
105 |
<ul>
|
|
|
|
|
|
|
|
|
|
|
106 |
<li>
|
107 |
<i class="fui-arrow-right"></i>
|
108 |
<a href="http://wordpress.org/support/plugin/pinterest-pin-it-button" target="_blank">
|
103 |
<div class="sidebar-container">
|
104 |
<div class="sidebar-content">
|
105 |
<ul>
|
106 |
+
<li>
|
107 |
+
<i class="fui-arrow-right"></i>
|
108 |
+
<a href="<?php echo add_query_arg( 'page', PIB_PLUGIN_SLUG . '_help', admin_url( 'admin.php' ) ); ?>">
|
109 |
+
<?php _e( 'Shortcode & CSS Help', 'pib' ); ?></a>
|
110 |
+
</li>
|
111 |
<li>
|
112 |
<i class="fui-arrow-right"></i>
|
113 |
<a href="http://wordpress.org/support/plugin/pinterest-pin-it-button" target="_blank">
|
views/public.php
CHANGED
@@ -106,10 +106,13 @@ function pib_button_base( $button_type, $post_url, $image_url, $description, $co
|
|
106 |
|
107 |
// Link href always needs all the parameters in it for the count bubble to work.
|
108 |
// Pinterest points out to use protocol-agnostic URL for popup.
|
|
|
|
|
|
|
109 |
$link_href = '//www.pinterest.com/pin/create/button/' .
|
110 |
'?url=' . rawurlencode( $post_url ) . $utm .
|
111 |
'&media=' . rawurlencode( $image_url ) .
|
112 |
-
'&description=' .
|
113 |
|
114 |
// New options that were added to the widget builder on Pinterest
|
115 |
// the size is different depending on the shape of the button, so first we determine the shape and then set the size
|
106 |
|
107 |
// Link href always needs all the parameters in it for the count bubble to work.
|
108 |
// Pinterest points out to use protocol-agnostic URL for popup.
|
109 |
+
|
110 |
+
|
111 |
+
|
112 |
$link_href = '//www.pinterest.com/pin/create/button/' .
|
113 |
'?url=' . rawurlencode( $post_url ) . $utm .
|
114 |
'&media=' . rawurlencode( $image_url ) .
|
115 |
+
'&description=' . esc_attr( $description );
|
116 |
|
117 |
// New options that were added to the widget builder on Pinterest
|
118 |
// the size is different depending on the shape of the button, so first we determine the shape and then set the size
|