Version Description
May 4, 2015 =
Fixed plugin CSS not getting enqueued in some cases.
Download this release
Release Info
Developer | pderksen |
Plugin | Pinterest "Pin It" Button |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.9 to 2.1.0
- assets/pinterest-icon-64.png +0 -0
- class-pinterest-pin-it-button.php +3 -3
- includes/misc-functions.php +13 -0
- pinterest-pin-it-button.php +1 -1
- readme.txt +6 -2
- views/post-meta-display.php +1 -1
assets/pinterest-icon-64.png
DELETED
Binary file
|
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.
|
@@ -92,7 +92,7 @@ class Pinterest_Pin_It_Button {
|
|
92 |
}
|
93 |
|
94 |
// Include required files.
|
95 |
-
|
96 |
|
97 |
// Add the options page and menu item.
|
98 |
add_action( 'admin_menu', array( $this, 'add_plugin_admin_menu' ), 2 );
|
@@ -463,7 +463,7 @@ class Pinterest_Pin_It_Button {
|
|
463 |
}
|
464 |
|
465 |
public function purchase_pro_link( $links ) {
|
466 |
-
$pro_link = sprintf( '<a href="%s">%s</a>', pib_ga_campaign_url( PINPLUGIN_BASE_URL . 'pin-it-button-pro/', 'pib_lite_2', 'plugin_listing', 'pro_upgrade' ), __( 'Purchase Pro', '
|
467 |
array_push( $links, $pro_link );
|
468 |
|
469 |
return $links;
|
28 |
* and README.txt changelog
|
29 |
**************************************/
|
30 |
|
31 |
+
protected $version = '2.1.0';
|
32 |
|
33 |
/**
|
34 |
* Unique identifier for your plugin.
|
92 |
}
|
93 |
|
94 |
// Include required files.
|
95 |
+
$this->includes();
|
96 |
|
97 |
// Add the options page and menu item.
|
98 |
add_action( 'admin_menu', array( $this, 'add_plugin_admin_menu' ), 2 );
|
463 |
}
|
464 |
|
465 |
public function purchase_pro_link( $links ) {
|
466 |
+
$pro_link = sprintf( '<a href="%s">%s</a>', pib_ga_campaign_url( PINPLUGIN_BASE_URL . 'pin-it-button-pro/', 'pib_lite_2', 'plugin_listing', 'pro_upgrade' ), __( 'Purchase Pro', 'pib' ) );
|
467 |
array_push( $links, $pro_link );
|
468 |
|
469 |
return $links;
|
includes/misc-functions.php
CHANGED
@@ -160,6 +160,19 @@ function pib_render_button( $post = null ) {
|
|
160 |
|
161 |
$return = array();
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
//Determine if button displayed on current page from main admin settings
|
164 |
if (
|
165 |
( is_home() && ( ! empty( $pib_options['post_page_types']['display_home_page'] ) ) ) ||
|
160 |
|
161 |
$return = array();
|
162 |
|
163 |
+
// Check individual post meta option
|
164 |
+
$disable = get_post_meta( $post->ID, 'pib_sharing_disabled', true );
|
165 |
+
|
166 |
+
if( $disable && ! isset( $pib_options['always_enqueue'] ) ) {
|
167 |
+
$return[] = 'no_buttons';
|
168 |
+
|
169 |
+
return $return;
|
170 |
+
}
|
171 |
+
|
172 |
+
if ( isset( $pib_options['always_enqueue'] ) ) {
|
173 |
+
$return[] = 'always_enqueue';
|
174 |
+
}
|
175 |
+
|
176 |
//Determine if button displayed on current page from main admin settings
|
177 |
if (
|
178 |
( is_home() && ( ! empty( $pib_options['post_page_types']['display_home_page'] ) ) ) ||
|
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.1.0
|
17 |
* Author: Phil Derksen
|
18 |
* Author URI: http://philderksen.com
|
19 |
* License: GPL-2.0+
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Pinterest "Pin It" Button ===
|
2 |
Contributors: pderksen, nickyoung87
|
3 |
Tags: pinterest, pin it button, social, social media, image, images, photo, photos, pinterest pin it button, pin it, social button
|
4 |
-
Requires at least: 3.9
|
5 |
Tested up to: 4.2
|
6 |
-
Stable tag: 2.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -122,6 +122,10 @@ CSS styling and shortcode help available within the plugin admin.
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
125 |
= 2.0.9 - April 22, 2015 =
|
126 |
|
127 |
* Updated calls to add_query_arg to prevent any possible XSS attacks.
|
1 |
=== Pinterest "Pin It" Button ===
|
2 |
Contributors: pderksen, nickyoung87
|
3 |
Tags: pinterest, pin it button, social, social media, image, images, photo, photos, pinterest pin it button, pin it, social button
|
4 |
+
Requires at least: 3.9
|
5 |
Tested up to: 4.2
|
6 |
+
Stable tag: 2.1.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 2.1.0 - May 4, 2015 =
|
126 |
+
|
127 |
+
* Fixed plugin CSS not getting enqueued in some cases.
|
128 |
+
|
129 |
= 2.0.9 - April 22, 2015 =
|
130 |
|
131 |
* Updated calls to add_query_arg to prevent any possible XSS attacks.
|
views/post-meta-display.php
CHANGED
@@ -32,7 +32,7 @@ $pib_description = get_post_meta( $post->ID, 'pib_description', true);
|
|
32 |
<?php if ( $pib_options['button_type'] == 'user_selects_image' ): ?>
|
33 |
<p>
|
34 |
<strong style="color: red;"><?php _e( 'The below settings will not take affects unless the button type is changed. ', 'pib' ); ?></strong>
|
35 |
-
<?php echo sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( 'page', PIB_PLUGIN_SLUG, admin_url( 'admin.php' ) ), __( 'Go to "Pin It" Button Settings', 'pib' ) )
|
36 |
</p>
|
37 |
<?php endif; ?>
|
38 |
<p>
|
32 |
<?php if ( $pib_options['button_type'] == 'user_selects_image' ): ?>
|
33 |
<p>
|
34 |
<strong style="color: red;"><?php _e( 'The below settings will not take affects unless the button type is changed. ', 'pib' ); ?></strong>
|
35 |
+
<?php echo sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( 'page', PIB_PLUGIN_SLUG, admin_url( 'admin.php' ) ) ), __( 'Go to "Pin It" Button Settings', 'pib' ) ); ?>
|
36 |
</p>
|
37 |
<?php endif; ?>
|
38 |
<p>
|