Version Description
- Updated jQuery coding method to avoid JavaScript conflicts with other plugins and themes some were getting
Download this release
Release Info
Developer | pderksen |
Plugin | Pinterest "Pin It" Button |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- js/pinterest-pin-it-button-admin.js +11 -37
- js/pinterest-pin-it-button.js +4 -5
- pinterest-pin-it-button.php +1 -1
- readme.txt +5 -1
js/pinterest-pin-it-button-admin.js
CHANGED
@@ -1,51 +1,25 @@
|
|
1 |
-
//jQuery no-conflict mode
|
2 |
-
var $j = jQuery.noConflict();
|
3 |
|
4 |
//jQuery doc ready
|
5 |
-
|
|
|
6 |
//Submit mailchimp form with link button
|
7 |
-
$
|
8 |
event.preventDefault();
|
9 |
-
$
|
10 |
});
|
11 |
|
12 |
//Enable collapse/expand toggle of admin boxes (like WP dashboard)
|
13 |
-
$
|
14 |
|
15 |
-
$
|
16 |
-
$
|
17 |
}, function () {
|
18 |
-
$
|
19 |
});
|
20 |
|
21 |
-
$
|
22 |
-
$
|
23 |
}, function() {
|
24 |
-
$
|
25 |
});
|
26 |
});
|
27 |
-
|
28 |
-
/*$j(document).ready(function() {
|
29 |
-
$j(".inside").show();
|
30 |
-
//toggle the componenet with class msg_body
|
31 |
-
$j(".handlediv").click(function()
|
32 |
-
{
|
33 |
-
$j(this).next(".inside").slideToggle();
|
34 |
-
});
|
35 |
-
});
|
36 |
-
*/
|
37 |
-
|
38 |
-
/*
|
39 |
-
function toggle2(showHideDiv, switchTextDiv) {
|
40 |
-
var elementdiv = document.getElementById(showHideDiv);
|
41 |
-
var text = document.getElementById(switchTextDiv);
|
42 |
-
if(elementdiv.style.display == "block") {
|
43 |
-
elementdiv.style.display = "none";
|
44 |
-
elementdiv.className+= "handlediv";
|
45 |
-
}
|
46 |
-
else {
|
47 |
-
elementdiv.style.display = "block";
|
48 |
-
elementdiv.className+= "handlediv";
|
49 |
-
}
|
50 |
-
}
|
51 |
-
*/
|
|
|
|
|
1 |
|
2 |
//jQuery doc ready
|
3 |
+
//See http://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/
|
4 |
+
jQuery(document).ready(function($) {
|
5 |
//Submit mailchimp form with link button
|
6 |
+
$("#mc-embedded-subscribe-link").click(function(event) {
|
7 |
event.preventDefault();
|
8 |
+
$("#mc-embedded-subscribe-form").submit();
|
9 |
});
|
10 |
|
11 |
//Enable collapse/expand toggle of admin boxes (like WP dashboard)
|
12 |
+
$(".inside").show();
|
13 |
|
14 |
+
$(".hndle").toggle(function() {
|
15 |
+
$(this).next(".inside").slideToggle("fast");
|
16 |
}, function () {
|
17 |
+
$(this).next(".inside").slideToggle("fast");
|
18 |
});
|
19 |
|
20 |
+
$(".handlediv").toggle(function() {
|
21 |
+
$(this).next(".hndle").next(".inside").slideToggle("fast");
|
22 |
}, function() {
|
23 |
+
$(this).next(".hndle").next(".inside").slideToggle("fast");
|
24 |
});
|
25 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/pinterest-pin-it-button.js
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
-
//jQuery no-conflict mode
|
2 |
-
var $j = jQuery.noConflict();
|
3 |
|
4 |
//jQuery doc ready
|
5 |
-
|
|
|
6 |
//Set pin-it button click logic
|
7 |
-
$
|
8 |
event.preventDefault();
|
9 |
//Use jQuery function to retrieve and execute JavaScript from Pinterest
|
10 |
-
|
11 |
});
|
12 |
});
|
13 |
|
|
|
|
|
1 |
|
2 |
//jQuery doc ready
|
3 |
+
//See http://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/
|
4 |
+
jQuery(document).ready(function($) {
|
5 |
//Set pin-it button click logic
|
6 |
+
$(".pin-it-btn").click(function(event) {
|
7 |
event.preventDefault();
|
8 |
//Use jQuery function to retrieve and execute JavaScript from Pinterest
|
9 |
+
$.getScript("http://assets.pinterest.com/js/pinmarklet.js?r=" + Math.random()*99999999);
|
10 |
});
|
11 |
});
|
12 |
|
pinterest-pin-it-button.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Pinterest "Pin It" Button
|
4 |
Plugin URI: http://pinterestplugin.com/
|
5 |
Description: Add a Pinterest "Pin It" button to your posts and pages.
|
6 |
-
Version: 1.1.
|
7 |
Author: Phil Derksen
|
8 |
Author URI: http://pinterestplugin.com/
|
9 |
*/
|
3 |
Plugin Name: Pinterest "Pin It" Button
|
4 |
Plugin URI: http://pinterestplugin.com/
|
5 |
Description: Add a Pinterest "Pin It" button to your posts and pages.
|
6 |
+
Version: 1.1.1
|
7 |
Author: Phil Derksen
|
8 |
Author URI: http://pinterestplugin.com/
|
9 |
*/
|
readme.txt
CHANGED
@@ -17,7 +17,7 @@ Take advantage of the exploding traffic Pinterest is generating by encouraging y
|
|
17 |
|
18 |
**Pinterest Hits 10 Million U.S. Monthly Uniques Faster Than Any Standalone Site Ever** - TechCrunch, Feb 7, 2012 [[link]](http://techcrunch.com/2012/02/07/pinterest-monthly-uniques/)
|
19 |
|
20 |
-
Head to the official plugin site at *[
|
21 |
|
22 |
[Sample Photography Blog](http://bruisesandbandaids.com)
|
23 |
|
@@ -63,6 +63,10 @@ Alertnatively, you can download this plugin, unzip the contents, then FTP upload
|
|
63 |
|
64 |
== Changelog ==
|
65 |
|
|
|
|
|
|
|
|
|
66 |
= 1.1.0 =
|
67 |
|
68 |
* Added custom CSS area for advanced layout and styling
|
17 |
|
18 |
**Pinterest Hits 10 Million U.S. Monthly Uniques Faster Than Any Standalone Site Ever** - TechCrunch, Feb 7, 2012 [[link]](http://techcrunch.com/2012/02/07/pinterest-monthly-uniques/)
|
19 |
|
20 |
+
Head to the official plugin site at *[PinterestPlugin.com](http://pinterestplugin.com)* for additional info and updates.
|
21 |
|
22 |
[Sample Photography Blog](http://bruisesandbandaids.com)
|
23 |
|
63 |
|
64 |
== Changelog ==
|
65 |
|
66 |
+
= 1.1.1 =
|
67 |
+
|
68 |
+
* Updated jQuery coding method to avoid JavaScript conflicts with other plugins and themes some were getting
|
69 |
+
|
70 |
= 1.1.0 =
|
71 |
|
72 |
* Added custom CSS area for advanced layout and styling
|