Version Description
- Fixed bug where Create Pin popup wasn't working in some cases.
Download this release
Release Info
Developer | pderksen |
Plugin | Pinterest "Pin It" Button |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- css/pinterest-pin-it-button-admin.css +18 -12
- css/pinterest-pin-it-button.css +5 -7
- inc/admin-display-functions-lite.php +7 -7
- inc/admin-display-functions-shared.php +14 -13
- inc/admin-general-functions-shared.php +4 -1
- inc/public-display-functions.php +12 -5
- pinterest-pin-it-button.php +1 -1
- readme.txt +4 -1
css/pinterest-pin-it-button-admin.css
CHANGED
@@ -12,10 +12,18 @@
|
|
12 |
margin-bottom: 10px !important;
|
13 |
}
|
14 |
|
|
|
15 |
.form-table td {
|
16 |
padding: 1px 10px;
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
.form-table label {
|
20 |
padding-left: 3px;
|
21 |
}
|
@@ -29,6 +37,15 @@
|
|
29 |
width: 350px;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
.pib-admin-upgrade-banner-top {
|
33 |
margin-top: 5px;
|
34 |
}
|
@@ -37,7 +54,7 @@
|
|
37 |
border: 1px solid #ccc;
|
38 |
}
|
39 |
|
40 |
-
|
41 |
padding-right: 10px;
|
42 |
vertical-align: top;
|
43 |
}
|
@@ -50,17 +67,6 @@ table#share_plugin_buttons td {
|
|
50 |
width: 100%;
|
51 |
}
|
52 |
|
53 |
-
td.pib-pad-cell-top {
|
54 |
-
padding-top: 7px;
|
55 |
-
}
|
56 |
-
|
57 |
-
table.
|
58 |
-
|
59 |
-
label.pib-plain-label {
|
60 |
-
margin: 0;
|
61 |
-
padding: 0;
|
62 |
-
}
|
63 |
-
|
64 |
.inside li .label {
|
65 |
vertical-align: top;
|
66 |
}
|
12 |
margin-bottom: 10px !important;
|
13 |
}
|
14 |
|
15 |
+
/* Shrink WP admin cell height defaults */
|
16 |
.form-table td {
|
17 |
padding: 1px 10px;
|
18 |
}
|
19 |
|
20 |
+
/* Now back to WP admin cell height defaults */
|
21 |
+
.form-table .pib-input-cell {
|
22 |
+
padding: 8px 10px;
|
23 |
+
}
|
24 |
+
|
25 |
+
/* TODO: Flip flop above 2 classes - use native CSS where possible */
|
26 |
+
|
27 |
.form-table label {
|
28 |
padding-left: 3px;
|
29 |
}
|
37 |
width: 350px;
|
38 |
}
|
39 |
|
40 |
+
.form-table .pib-pad-cell-top {
|
41 |
+
padding-top: 7px;
|
42 |
+
}
|
43 |
+
|
44 |
+
.form-table .pib-plain-label {
|
45 |
+
margin: 0;
|
46 |
+
padding: 0;
|
47 |
+
}
|
48 |
+
|
49 |
.pib-admin-upgrade-banner-top {
|
50 |
margin-top: 5px;
|
51 |
}
|
54 |
border: 1px solid #ccc;
|
55 |
}
|
56 |
|
57 |
+
#share_plugin_buttons td {
|
58 |
padding-right: 10px;
|
59 |
vertical-align: top;
|
60 |
}
|
67 |
width: 100%;
|
68 |
}
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
.inside li .label {
|
71 |
vertical-align: top;
|
72 |
}
|
css/pinterest-pin-it-button.css
CHANGED
@@ -32,6 +32,8 @@
|
|
32 |
}
|
33 |
|
34 |
/* DIV surrounding Share Bar */
|
|
|
|
|
35 |
.pib-sharebar {
|
36 |
padding: 10px 0 5px;
|
37 |
margin: 0;
|
@@ -55,19 +57,15 @@
|
|
55 |
}
|
56 |
|
57 |
.pib-sharebar li:before {
|
58 |
-
|
59 |
-
}
|
60 |
-
|
61 |
-
.pib-sharebar li.pib-share-pinterest {
|
62 |
-
margin-right: 50px !important;
|
63 |
}
|
64 |
|
65 |
-
.pib-sharebar li.pib-
|
66 |
vertical-align: top !important;
|
67 |
}
|
68 |
|
69 |
/*** BEGIN Count Bubble CSS ***/
|
70 |
-
/* Need to override theme styles as much as possible */
|
71 |
|
72 |
table.pib-count-table {
|
73 |
border: 0 !important;
|
32 |
}
|
33 |
|
34 |
/* DIV surrounding Share Bar */
|
35 |
+
/* Need to override WP styles with !important tags */
|
36 |
+
|
37 |
.pib-sharebar {
|
38 |
padding: 10px 0 5px;
|
39 |
margin: 0;
|
57 |
}
|
58 |
|
59 |
.pib-sharebar li:before {
|
60 |
+
content: none !important;
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
|
63 |
+
.pib-sharebar li.pib-sharebar-pinterest a {
|
64 |
vertical-align: top !important;
|
65 |
}
|
66 |
|
67 |
/*** BEGIN Count Bubble CSS ***/
|
68 |
+
/* Need to override theme styles as much as possible with !important tags */
|
69 |
|
70 |
table.pib-count-table {
|
71 |
border: 0 !important;
|
inc/admin-display-functions-lite.php
CHANGED
@@ -13,7 +13,7 @@ function pib_custom_btn_img_examples_popup() {
|
|
13 |
|
14 |
<div class="upgrade-text">
|
15 |
<?php _e( 'These button designs available in "Pin It" Button Pro.', 'pib' ); ?><br/>
|
16 |
-
<a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( '
|
17 |
<a href="#" class="close"><?php _e( 'Close', 'pib' ); ?></a>
|
18 |
</div>
|
19 |
</div>
|
@@ -28,7 +28,7 @@ function pib_upgrade_banner_top() {
|
|
28 |
?>
|
29 |
|
30 |
<div class="pib-admin-upgrade-banner-top">
|
31 |
-
<a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( '
|
32 |
<img src="//d2ghr62k8k1ljk.cloudfront.net/img/pin-it-button-pro-upgrade-banner.png" alt="<?php _e( 'Upgrade to the Pin It Button Pro Plugin', 'pib' ); ?>" />
|
33 |
</a>
|
34 |
</div>
|
@@ -72,7 +72,7 @@ function pib_settings_sidebar_lite() {
|
|
72 |
|
73 |
<div class="inside">
|
74 |
<p>
|
75 |
-
» <a href="http://pinterestplugin.com/support<?php echo pib_campaign_url( '
|
76 |
<?php _e( 'Support & Knowledge Base', 'pib' ); ?></a>
|
77 |
</p>
|
78 |
<p>
|
@@ -87,10 +87,10 @@ function pib_settings_sidebar_lite() {
|
|
87 |
|
88 |
<div class="inside">
|
89 |
<ul>
|
90 |
-
<li>» <a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( '
|
91 |
-
<li>» <a href="http://pinterestplugin.com/top-pinned-posts/<?php echo pib_campaign_url( '
|
92 |
-
<li>» <a href="http://pinterestplugin.com/follow-button<?php echo pib_campaign_url( '
|
93 |
-
<li>» <a href="http://pinterestplugin.com/pinterest-block<?php echo pib_campaign_url( '
|
94 |
</ul>
|
95 |
</div>
|
96 |
</div>
|
13 |
|
14 |
<div class="upgrade-text">
|
15 |
<?php _e( 'These button designs available in "Pin It" Button Pro.', 'pib' ); ?><br/>
|
16 |
+
<a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( 'custom_button_popup', 'pro_upgrade' ); ?>" target="_blank" class="button-primary close"><?php _e( 'Upgrade Now', 'pib' ); ?></a>
|
17 |
<a href="#" class="close"><?php _e( 'Close', 'pib' ); ?></a>
|
18 |
</div>
|
19 |
</div>
|
28 |
?>
|
29 |
|
30 |
<div class="pib-admin-upgrade-banner-top">
|
31 |
+
<a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( 'banner_top', 'pro_upgrade' ); ?>" target="_blank">
|
32 |
<img src="//d2ghr62k8k1ljk.cloudfront.net/img/pin-it-button-pro-upgrade-banner.png" alt="<?php _e( 'Upgrade to the Pin It Button Pro Plugin', 'pib' ); ?>" />
|
33 |
</a>
|
34 |
</div>
|
72 |
|
73 |
<div class="inside">
|
74 |
<p>
|
75 |
+
» <a href="http://pinterestplugin.com/support<?php echo pib_campaign_url( 'sidebar_link', 'support_pib_lite' ); ?>" target="_blank" class="external">
|
76 |
<?php _e( 'Support & Knowledge Base', 'pib' ); ?></a>
|
77 |
</p>
|
78 |
<p>
|
87 |
|
88 |
<div class="inside">
|
89 |
<ul>
|
90 |
+
<li>» <a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( 'sidebar_link', 'pro_upgrade' ); ?>" target="_blank" class="external">"Pin It" Button Pro</a></li>
|
91 |
+
<li>» <a href="http://pinterestplugin.com/top-pinned-posts/<?php echo pib_campaign_url( 'sidebar_link', 'top_pinned_posts' ); ?>" target="_blank" class="external">Top Pinned Posts</a></li>
|
92 |
+
<li>» <a href="http://pinterestplugin.com/follow-button<?php echo pib_campaign_url( 'sidebar_link', 'follow_button' ); ?>" target="_blank" class="external">"Follow" Button</a></li>
|
93 |
+
<li>» <a href="http://pinterestplugin.com/pinterest-block<?php echo pib_campaign_url( 'sidebar_link', 'pinterest_block' ); ?>" target="_blank" class="external">Pinterest Block</a></li>
|
94 |
</ul>
|
95 |
</div>
|
96 |
</div>
|
inc/admin-display-functions-shared.php
CHANGED
@@ -69,7 +69,6 @@ function pib_settings_page() {
|
|
69 |
<td>
|
70 |
<input type="checkbox" id="use_featured_image" name="pib_options[use_featured_image]" value="1"
|
71 |
<?php checked( (bool)$pib_options['use_featured_image'] ); ?>
|
72 |
-
<?php //TODO checked( '1', $pib_options['use_featured_image'] ); ?>
|
73 |
<?php pib_lite_disabled_attr(); ?> />
|
74 |
<label for="use_featured_image" class="<?php pib_lite_disabled_class(); ?>">
|
75 |
<?php _e( 'For pre-selected image, use <strong>featured image</strong> if available', 'pib' ); ?></label>
|
@@ -154,7 +153,7 @@ function pib_settings_page() {
|
|
154 |
<td>
|
155 |
<div class="pib-upgrade-to-pro">
|
156 |
<?php _e( 'Available in "Pin It" Button Pro. ', 'pib' ); ?>
|
157 |
-
<a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( '
|
158 |
</div>
|
159 |
</td>
|
160 |
</tr>
|
@@ -166,7 +165,7 @@ function pib_settings_page() {
|
|
166 |
<div class="postbox pib-postbox">
|
167 |
<?php pib_handlediv(); ?>
|
168 |
<h3 class="hndle pib-hndle">
|
169 |
-
<?php _e( 'Facebook, Twitter & Google +1 Buttons', 'pib' ); ?>
|
170 |
<?php pib_pro_label(); ?>
|
171 |
</h3>
|
172 |
|
@@ -175,7 +174,7 @@ function pib_settings_page() {
|
|
175 |
<?php if ( PIB_IS_PRO ): ?>
|
176 |
|
177 |
<tr valign="top">
|
178 |
-
<td>
|
179 |
<input type="checkbox" id="use_other_sharing_buttons" name="pib_options[use_other_sharing_buttons]" value="1"
|
180 |
<?php checked( (bool)$pib_options['use_other_sharing_buttons'] ); ?> />
|
181 |
<label for="use_other_sharing_buttons">
|
@@ -187,9 +186,10 @@ function pib_settings_page() {
|
|
187 |
<?php endif; ?>
|
188 |
|
189 |
<tr valign="top">
|
190 |
-
|
191 |
-
<label id="share_btn_label" class="pib-plain-label"><?php _e( 'Button order (left to right):', 'pib' ); ?></label>
|
192 |
-
|
|
|
193 |
<select id="share_btn_1" name="pib_options[share_btn_1]">
|
194 |
<option value="none" <?php selected( ( $pib_options['share_btn_1'] == 'none' ) || empty( $pib_options['share_btn_1'] ) ); ?>>-- <?php _e( 'None', 'pib' ); ?> --</option>
|
195 |
<option value="pinterest" <?php selected( $pib_options['share_btn_1'], 'pinterest' ); ?>>Pinterest</option>
|
@@ -221,17 +221,18 @@ function pib_settings_page() {
|
|
221 |
<option value="twitter" <?php selected( $pib_options['share_btn_4'], 'twitter' ); ?>>Twitter</option>
|
222 |
<option value="gplus" <?php selected( $pib_options['share_btn_4'], 'gplus' ); ?>>Google +1</option>
|
223 |
</select>
|
224 |
-
|
225 |
</td>
|
226 |
</tr>
|
227 |
|
|
|
|
|
228 |
<?php if ( !PIB_IS_PRO ): ?>
|
229 |
|
230 |
<tr valign="top">
|
231 |
-
<td class="pib-pad-cell-top">
|
232 |
<div class="pib-upgrade-to-pro">
|
233 |
<?php _e( 'Available in "Pin It" Button Pro.', 'pib' ); ?>
|
234 |
-
<a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( '
|
235 |
</div>
|
236 |
</td>
|
237 |
</tr>
|
@@ -354,7 +355,7 @@ function pib_settings_page() {
|
|
354 |
<input id="uninstall_save_settings" name="pib_options[uninstall_save_settings]" type="checkbox" value="1"
|
355 |
<?php checked( (bool)$pib_options['uninstall_save_settings'] ); ?> />
|
356 |
<label for="uninstall_save_settings">
|
357 |
-
<?php _e( 'Save settings when uninstalling plugin? Useful when upgrading to Pro or
|
358 |
</label>
|
359 |
</td>
|
360 |
</tr>
|
@@ -459,7 +460,7 @@ function pib_newsletter_subscribe() {
|
|
459 |
|
460 |
<div class="inside">
|
461 |
<p><?php _e( 'Subscribe to get notified of important updates and news for our Pinterest plugins.', 'pib' ); ?></p>
|
462 |
-
» <a href="http://pinterestplugin.com/newsletter<?php echo pib_campaign_url( '
|
463 |
<?php _e( 'Get Updates', 'pib' ); ?></a>
|
464 |
</div>
|
465 |
</div>
|
@@ -513,7 +514,7 @@ function pib_rss_news() {
|
|
513 |
// Loop through each feed item and display each item as a hyperlink.
|
514 |
foreach ( $rss_items as $item ): ?>
|
515 |
<li>
|
516 |
-
» <a href="<?php echo esc_url( $item->get_permalink() ) . pib_campaign_url( '
|
517 |
<?php echo esc_html( $item->get_title() ); ?></a>
|
518 |
</li>
|
519 |
<?php endforeach; ?>
|
69 |
<td>
|
70 |
<input type="checkbox" id="use_featured_image" name="pib_options[use_featured_image]" value="1"
|
71 |
<?php checked( (bool)$pib_options['use_featured_image'] ); ?>
|
|
|
72 |
<?php pib_lite_disabled_attr(); ?> />
|
73 |
<label for="use_featured_image" class="<?php pib_lite_disabled_class(); ?>">
|
74 |
<?php _e( 'For pre-selected image, use <strong>featured image</strong> if available', 'pib' ); ?></label>
|
153 |
<td>
|
154 |
<div class="pib-upgrade-to-pro">
|
155 |
<?php _e( 'Available in "Pin It" Button Pro. ', 'pib' ); ?>
|
156 |
+
<a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( 'upgrade_link_custom_button', 'pro_upgrade' ); ?>" target="_blank" class="external"><?php _e( 'Upgrade Now', 'pib' ); ?></a>
|
157 |
</div>
|
158 |
</td>
|
159 |
</tr>
|
165 |
<div class="postbox pib-postbox">
|
166 |
<?php pib_handlediv(); ?>
|
167 |
<h3 class="hndle pib-hndle">
|
168 |
+
<?php _e( 'Share Bar (Facebook, Twitter & Google +1 Buttons)', 'pib' ); ?>
|
169 |
<?php pib_pro_label(); ?>
|
170 |
</h3>
|
171 |
|
174 |
<?php if ( PIB_IS_PRO ): ?>
|
175 |
|
176 |
<tr valign="top">
|
177 |
+
<td colspan="2">
|
178 |
<input type="checkbox" id="use_other_sharing_buttons" name="pib_options[use_other_sharing_buttons]" value="1"
|
179 |
<?php checked( (bool)$pib_options['use_other_sharing_buttons'] ); ?> />
|
180 |
<label for="use_other_sharing_buttons">
|
186 |
<?php endif; ?>
|
187 |
|
188 |
<tr valign="top">
|
189 |
+
<th scope="row">
|
190 |
+
<label id="share_btn_label" class="pib-plain-label"><?php _e( 'Button order (left to right):', 'pib' ); ?></label>
|
191 |
+
</th>
|
192 |
+
<td class="pib-pad-cell-top">
|
193 |
<select id="share_btn_1" name="pib_options[share_btn_1]">
|
194 |
<option value="none" <?php selected( ( $pib_options['share_btn_1'] == 'none' ) || empty( $pib_options['share_btn_1'] ) ); ?>>-- <?php _e( 'None', 'pib' ); ?> --</option>
|
195 |
<option value="pinterest" <?php selected( $pib_options['share_btn_1'], 'pinterest' ); ?>>Pinterest</option>
|
221 |
<option value="twitter" <?php selected( $pib_options['share_btn_4'], 'twitter' ); ?>>Twitter</option>
|
222 |
<option value="gplus" <?php selected( $pib_options['share_btn_4'], 'gplus' ); ?>>Google +1</option>
|
223 |
</select>
|
|
|
224 |
</td>
|
225 |
</tr>
|
226 |
|
227 |
+
<?php if ( PIB_IS_PRO ) { pib_sharebar_more_options(); } ?>
|
228 |
+
|
229 |
<?php if ( !PIB_IS_PRO ): ?>
|
230 |
|
231 |
<tr valign="top">
|
232 |
+
<td class="pib-pad-cell-top" colspan="2">
|
233 |
<div class="pib-upgrade-to-pro">
|
234 |
<?php _e( 'Available in "Pin It" Button Pro.', 'pib' ); ?>
|
235 |
+
<a href="<?php echo PIB_UPGRADE_URL_BASE . pib_campaign_url( 'upgrade_link_social_buttons', 'pro_upgrade' ); ?>" target="_blank" class="external"><?php _e( 'Upgrade Now', 'pib' ); ?></a>
|
236 |
</div>
|
237 |
</td>
|
238 |
</tr>
|
355 |
<input id="uninstall_save_settings" name="pib_options[uninstall_save_settings]" type="checkbox" value="1"
|
356 |
<?php checked( (bool)$pib_options['uninstall_save_settings'] ); ?> />
|
357 |
<label for="uninstall_save_settings">
|
358 |
+
<?php _e( '<strong>Save settings</strong> when uninstalling this plugin? Useful when upgrading to Pro or re-installing later.', 'pib' ); ?>
|
359 |
</label>
|
360 |
</td>
|
361 |
</tr>
|
460 |
|
461 |
<div class="inside">
|
462 |
<p><?php _e( 'Subscribe to get notified of important updates and news for our Pinterest plugins.', 'pib' ); ?></p>
|
463 |
+
» <a href="http://pinterestplugin.com/newsletter<?php echo pib_campaign_url( 'sidebar_link', 'newsletter' ); ?>" target="_blank" class="external">
|
464 |
<?php _e( 'Get Updates', 'pib' ); ?></a>
|
465 |
</div>
|
466 |
</div>
|
514 |
// Loop through each feed item and display each item as a hyperlink.
|
515 |
foreach ( $rss_items as $item ): ?>
|
516 |
<li>
|
517 |
+
» <a href="<?php echo esc_url( $item->get_permalink() ) . pib_campaign_url( 'sidebar_link', 'blog_post_link' ); ?>" target="_blank" class="external">
|
518 |
<?php echo esc_html( $item->get_title() ); ?></a>
|
519 |
</li>
|
520 |
<?php endforeach; ?>
|
inc/admin-general-functions-shared.php
CHANGED
@@ -41,11 +41,14 @@ function pib_install() {
|
|
41 |
|
42 |
'use_custom_img_btn' => 0,
|
43 |
'custom_btn_img_url' => PIB_DEFAULT_CUSTOM_BUTTON_IMAGE_URL,
|
|
|
44 |
'use_other_sharing_buttons' => 0,
|
45 |
'share_btn_1' => 'pinterest',
|
46 |
'share_btn_2' => 'facebook',
|
47 |
'share_btn_3' => 'twitter',
|
48 |
'share_btn_4' => 'gplus',
|
|
|
|
|
49 |
);
|
50 |
|
51 |
//Loop through global options and set them to defaults
|
@@ -114,5 +117,5 @@ add_filter( 'plugin_action_links_' . PIB_BASE_NAME, 'pib_plugin_settings_link' )
|
|
114 |
//Google campaign tracking URL (querystring part)
|
115 |
|
116 |
function pib_campaign_url( $medium, $campaign ) {
|
117 |
-
return '?utm_source=
|
118 |
}
|
41 |
|
42 |
'use_custom_img_btn' => 0,
|
43 |
'custom_btn_img_url' => PIB_DEFAULT_CUSTOM_BUTTON_IMAGE_URL,
|
44 |
+
|
45 |
'use_other_sharing_buttons' => 0,
|
46 |
'share_btn_1' => 'pinterest',
|
47 |
'share_btn_2' => 'facebook',
|
48 |
'share_btn_3' => 'twitter',
|
49 |
'share_btn_4' => 'gplus',
|
50 |
+
'sharebar_btn_width' => '100',
|
51 |
+
'sharebar_hide_count' => 0
|
52 |
);
|
53 |
|
54 |
//Loop through global options and set them to defaults
|
117 |
//Google campaign tracking URL (querystring part)
|
118 |
|
119 |
function pib_campaign_url( $medium, $campaign ) {
|
120 |
+
return '?utm_source=pib_' . ( PIB_IS_PRO ? 'pro' : 'lite' ) . '&utm_medium=' . $medium . '&utm_campaign=' . $campaign;
|
121 |
}
|
inc/public-display-functions.php
CHANGED
@@ -65,9 +65,16 @@ function pib_add_custom_css() {
|
|
65 |
|
66 |
$custom_css = trim( $pib_options['custom_css'] );
|
67 |
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
add_action( 'wp_head', 'pib_add_custom_css' );
|
@@ -126,8 +133,8 @@ function pib_button_base( $post_url, $image_url, $description, $count_layout ) {
|
|
126 |
$full_btn_html = '';
|
127 |
|
128 |
//Link href always needs all the parameters in it for the count bubble to work
|
129 |
-
//
|
130 |
-
$link_href = '
|
131 |
'&description='. rawurlencode( $description );
|
132 |
|
133 |
//Full link html with attributes
|
65 |
|
66 |
$custom_css = trim( $pib_options['custom_css'] );
|
67 |
|
68 |
+
//Add custom sharebar button width
|
69 |
+
$sharebar_btn_width = ( !empty( $pib_options['sharebar_btn_width'] ) ? $pib_options['sharebar_btn_width'] : '100' );
|
70 |
+
//Mark as !important
|
71 |
+
$sharebar_btn_width_css = '.pib-sharebar li { width: ' . $sharebar_btn_width . 'px; }';
|
72 |
+
|
73 |
+
echo "\n" .
|
74 |
+
'<style type="text/css">' . "\n" .
|
75 |
+
$sharebar_btn_width_css . "\n" .
|
76 |
+
$custom_css . "\n" . //Put custom css last
|
77 |
+
'</style>' . "\n";
|
78 |
}
|
79 |
|
80 |
add_action( 'wp_head', 'pib_add_custom_css' );
|
133 |
$full_btn_html = '';
|
134 |
|
135 |
//Link href always needs all the parameters in it for the count bubble to work
|
136 |
+
//Note: leave "http:" here - will break some setups otherwise
|
137 |
+
$link_href = 'http://pinterest.com/pin/create/button/?url=' . rawurlencode( $post_url ) . '&media=' . rawurlencode( $image_url ) .
|
138 |
'&description='. rawurlencode( $description );
|
139 |
|
140 |
//Full link html with attributes
|
pinterest-pin-it-button.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Description: Add a Pinterest "Pin It" Button to your posts and pages allowing your readers easily pin your images. Includes shortcode and widget.
|
6 |
Author: Phil Derksen
|
7 |
Author URI: http://pinterestplugin.com
|
8 |
-
Version: 1.4.
|
9 |
License: GPLv2
|
10 |
Copyright 2012 Phil Derksen (phil@pinterestplugin.com)
|
11 |
*/
|
5 |
Description: Add a Pinterest "Pin It" Button to your posts and pages allowing your readers easily pin your images. Includes shortcode and widget.
|
6 |
Author: Phil Derksen
|
7 |
Author URI: http://pinterestplugin.com
|
8 |
+
Version: 1.4.3
|
9 |
License: GPLv2
|
10 |
Copyright 2012 Phil Derksen (phil@pinterestplugin.com)
|
11 |
*/
|
readme.txt
CHANGED
@@ -64,7 +64,7 @@ Note: If you overwrite the plugin using an FTP upload, you may lose some saved s
|
|
64 |
|
65 |
== Frequently Asked Questions ==
|
66 |
|
67 |
-
[FAQ maintained here »](http://pinterestplugin.com/pin-it-button-
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
@@ -76,6 +76,9 @@ Note: If you overwrite the plugin using an FTP upload, you may lose some saved s
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
79 |
= 1.4.2 =
|
80 |
* Tested with WordPress 3.5.
|
81 |
* Added: Option to save settings upon plugin uninstall.
|
64 |
|
65 |
== Frequently Asked Questions ==
|
66 |
|
67 |
+
[FAQ maintained here »](http://pinterestplugin.com/pin-it-button-faq)
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 1.4.3 =
|
80 |
+
* Fixed bug where Create Pin popup wasn't working in some cases.
|
81 |
+
|
82 |
= 1.4.2 =
|
83 |
* Tested with WordPress 3.5.
|
84 |
* Added: Option to save settings upon plugin uninstall.
|