Version Description
= 0.1 = Starter version no upgrade is required.
Download this release
Release Info
Developer | weblizar |
Plugin | Pinterest Pin It Button On Image Hover And Post |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.4
- img/Thumbs.db +0 -0
- js/pinit.js +6 -1
- js/weblizar-smartech.js +1 -4
- pinterest-pin-It-button.php +19 -24
- readme.txt +3 -1
img/Thumbs.db
ADDED
Binary file
|
js/pinit.js
CHANGED
@@ -1 +1,6 @@
|
|
1 |
-
!function(a,b,c)
|
|
|
|
|
|
|
|
|
|
1 |
+
! function(a, b, c) {
|
2 |
+
var d, e, f;
|
3 |
+
f = "PIN_" + ~~((new Date).getTime() / 864e5), a[f] || (a[f] = !0, a.setTimeout(function() {
|
4 |
+
d = b.getElementsByTagName("SCRIPT")[0], e = b.createElement("SCRIPT"), e.type = "text/javascript", e.async = !0, e.src = c + "?" + f, d.parentNode.insertBefore(e, d)
|
5 |
+
}, 10))
|
6 |
+
}(window, document, "//assets.pinterest.com/js/pinit_main.js");
|
js/weblizar-smartech.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
jQuery(function() {
|
2 |
-
|
3 |
jQuery('.sidebar-toggle').on('click', function() {
|
4 |
jQuery('body').toggleClass('sidebar-collapse');
|
5 |
setTimeout(function() {
|
@@ -13,7 +12,6 @@ jQuery(function() {
|
|
13 |
jQuery('.panel-body', jQuerypanel).toggleClass('hidden')
|
14 |
})
|
15 |
|
16 |
-
|
17 |
if (jQuery().sparkline)
|
18 |
jQuery("#page-title-statistics").sparkline([10, 3, 4, -3, -2, 5, 8, 11, 6, 7, -7, -5, 8, 9, 5, 6, 7, 2, 0, -4, -2, 4], {
|
19 |
type: 'bar',
|
@@ -51,7 +49,6 @@ jQuery(window).resize(function() {
|
|
51 |
}
|
52 |
})
|
53 |
|
54 |
-
|
55 |
//Loads the correct sidebar on window load,
|
56 |
//collapses the sidebar on window resize.
|
57 |
// Sets the min-height of #page-wrapper to window size
|
@@ -74,4 +71,4 @@ jQuery(function() {
|
|
74 |
jQuery(".page-wrapper").css("min-height", (height) + "px");
|
75 |
}
|
76 |
})
|
77 |
-
})
|
1 |
jQuery(function() {
|
|
|
2 |
jQuery('.sidebar-toggle').on('click', function() {
|
3 |
jQuery('body').toggleClass('sidebar-collapse');
|
4 |
setTimeout(function() {
|
12 |
jQuery('.panel-body', jQuerypanel).toggleClass('hidden')
|
13 |
})
|
14 |
|
|
|
15 |
if (jQuery().sparkline)
|
16 |
jQuery("#page-title-statistics").sparkline([10, 3, 4, -3, -2, 5, 8, 11, 6, 7, -7, -5, 8, 9, 5, 6, 7, 2, 0, -4, -2, 4], {
|
17 |
type: 'bar',
|
49 |
}
|
50 |
})
|
51 |
|
|
|
52 |
//Loads the correct sidebar on window load,
|
53 |
//collapses the sidebar on window resize.
|
54 |
// Sets the min-height of #page-wrapper to window size
|
71 |
jQuery(".page-wrapper").css("min-height", (height) + "px");
|
72 |
}
|
73 |
})
|
74 |
+
})
|
pinterest-pin-It-button.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Pinterest Pin It Button On Image Hover And After Post & Page Content
|
4 |
-
* Version: 1.
|
5 |
* Description: Pin Your WordPress Blog Posts Pages Images With Pinterest
|
6 |
* Author: Weblizar
|
7 |
* Author URI: http://weblizar.com/plugins/
|
@@ -43,7 +43,9 @@ function PiniIt_DefaultSettings(){
|
|
43 |
|
44 |
//Load saved pin it button settings
|
45 |
$PinItOnHover = get_option("WL_Pinit_Btn_On_Hover");
|
46 |
-
|
|
|
|
|
47 |
// Add hook for frontend <head></head>
|
48 |
add_action('wp_head', 'wl_pinit_js');
|
49 |
}
|
@@ -56,7 +58,7 @@ function wl_pinit_js() {
|
|
56 |
|
57 |
//Add Pin It Button After Post Content
|
58 |
function Load_pin_it_button_after_post_content($content){
|
59 |
-
if (is_single() && get_post_type( $post ) == "post") {
|
60 |
//check for enable post pin it button
|
61 |
$PinItPost = get_option("WL_Enable_Pinit_Post");
|
62 |
if(get_option("WL_Enable_Pinit_Post")) {
|
@@ -70,7 +72,7 @@ add_filter( "the_content", "Load_pin_it_button_after_post_content" );
|
|
70 |
|
71 |
//Add Pin It Button After Page Content
|
72 |
function Load_pin_it_button_after_page_content($content){
|
73 |
-
if (!is_single() && get_post_type( $post ) == "page") {
|
74 |
//check for enable page pin it button
|
75 |
$PinItPage = get_option("WL_Enable_Pinit_Page");
|
76 |
if(get_option("WL_Enable_Pinit_Page")) {
|
@@ -79,14 +81,9 @@ function Load_pin_it_button_after_page_content($content){
|
|
79 |
}
|
80 |
return $content;
|
81 |
}
|
82 |
-
|
83 |
add_filter( "the_content", "Load_pin_it_button_after_page_content" );
|
84 |
|
85 |
-
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Plugin Settings Admin Menu
|
89 |
-
*/
|
90 |
add_action('admin_menu','WL_PinItButtonPage');
|
91 |
|
92 |
function WL_PinItButtonPage() {
|
@@ -94,27 +91,25 @@ function WL_PinItButtonPage() {
|
|
94 |
add_action( 'admin_print_styles-' . $PinItAdminMenu, 'PiniIt_Menu_Assets' );
|
95 |
}
|
96 |
|
97 |
-
|
98 |
-
* Load PinItAdminMenu Pages Assets JS/CSS/Images
|
99 |
-
*/
|
100 |
function PiniIt_Menu_Assets() {
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
wp_enqueue_script('weblizar-smartech-js',WEBLIZAR_PINIT_PLUGIN_URL.'js/weblizar-smartech.js',array('jquery'));
|
112 |
}
|
113 |
|
114 |
function pinterest_pinit_button_settings_page() {
|
115 |
require_once("template.php");
|
116 |
}
|
117 |
|
|
|
118 |
add_action( 'wp_ajax_save_pinit', 'PinItSaveSettings' );
|
119 |
function PinItSaveSettings() {
|
120 |
update_option("WL_Enable_Pinit_Post", $_POST['PinItPost']);
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Pinterest Pin It Button On Image Hover And After Post & Page Content
|
4 |
+
* Version: 1.4
|
5 |
* Description: Pin Your WordPress Blog Posts Pages Images With Pinterest
|
6 |
* Author: Weblizar
|
7 |
* Author URI: http://weblizar.com/plugins/
|
43 |
|
44 |
//Load saved pin it button settings
|
45 |
$PinItOnHover = get_option("WL_Pinit_Btn_On_Hover");
|
46 |
+
|
47 |
+
//Show Pin It Button On Image Hover
|
48 |
+
if($PinItOnHover == "true"){
|
49 |
// Add hook for frontend <head></head>
|
50 |
add_action('wp_head', 'wl_pinit_js');
|
51 |
}
|
58 |
|
59 |
//Add Pin It Button After Post Content
|
60 |
function Load_pin_it_button_after_post_content($content){
|
61 |
+
if (is_single() && get_post_type( $post = get_post() ) == "post") {
|
62 |
//check for enable post pin it button
|
63 |
$PinItPost = get_option("WL_Enable_Pinit_Post");
|
64 |
if(get_option("WL_Enable_Pinit_Post")) {
|
72 |
|
73 |
//Add Pin It Button After Page Content
|
74 |
function Load_pin_it_button_after_page_content($content){
|
75 |
+
if (!is_single() && get_post_type( $post = get_post() ) == "page") {
|
76 |
//check for enable page pin it button
|
77 |
$PinItPage = get_option("WL_Enable_Pinit_Page");
|
78 |
if(get_option("WL_Enable_Pinit_Page")) {
|
81 |
}
|
82 |
return $content;
|
83 |
}
|
|
|
84 |
add_filter( "the_content", "Load_pin_it_button_after_page_content" );
|
85 |
|
86 |
+
//Plugin Settings Admin Menu
|
|
|
|
|
|
|
|
|
87 |
add_action('admin_menu','WL_PinItButtonPage');
|
88 |
|
89 |
function WL_PinItButtonPage() {
|
91 |
add_action( 'admin_print_styles-' . $PinItAdminMenu, 'PiniIt_Menu_Assets' );
|
92 |
}
|
93 |
|
94 |
+
//Load PinItAdminMenu Pages Assets JS/CSS/Images
|
|
|
|
|
95 |
function PiniIt_Menu_Assets() {
|
96 |
+
if(is_admin()) {
|
97 |
+
wp_enqueue_style('bootstrap_css', WEBLIZAR_PINIT_PLUGIN_URL.'css/bootstrap.css');
|
98 |
+
wp_enqueue_style('weblizar-smartech-css', WEBLIZAR_PINIT_PLUGIN_URL.'css/weblizar-smartech.css');
|
99 |
+
wp_enqueue_style('font-awesome_min', WEBLIZAR_PINIT_PLUGIN_URL.'font-awesome/css/font-awesome.min.css');
|
100 |
+
wp_enqueue_style('font-animate', WEBLIZAR_PINIT_PLUGIN_URL.'css/animate.css');
|
101 |
+
|
102 |
+
wp_enqueue_script('jquery');
|
103 |
+
wp_enqueue_script('bootstrap-min-js',WEBLIZAR_PINIT_PLUGIN_URL.'js/bootstrap.min.js');
|
104 |
+
wp_enqueue_script('weblizar-smartech-js',WEBLIZAR_PINIT_PLUGIN_URL.'js/weblizar-smartech.js',array('jquery'));
|
105 |
+
}
|
|
|
106 |
}
|
107 |
|
108 |
function pinterest_pinit_button_settings_page() {
|
109 |
require_once("template.php");
|
110 |
}
|
111 |
|
112 |
+
//Save Plugin Settings
|
113 |
add_action( 'wp_ajax_save_pinit', 'PinItSaveSettings' );
|
114 |
function PinItSaveSettings() {
|
115 |
update_option("WL_Enable_Pinit_Post", $_POST['PinItPost']);
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link: http://www.weblizar.com/
|
|
6 |
Tags: advanced pinterest, board, feed, free, free pinterest widget, image, images, media, photo, photo share plugin, photos, pin it, pin it button, pinter pin display, pinterest, pinterest board, pinterest button, pinterest display, Pinterest Feed, pinterest follow, pinterest follow badge, pinterest follow button, pinterest pin, pinterest pin button, pinterest pin it button, pinterest share, pinterest widget, rss, sidebar, social, social button, social media, social share, social share plugin, widget, wordpress, wordpress widget, pinterest pin it button on hover, pin it on hover, pin it image, pin image, pin it button ob post,
|
7 |
Requires at least: 3.5
|
8 |
Tested up to: 4.2.2
|
9 |
-
Stable tag: 1.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -41,6 +41,8 @@ Pinterest pin it button on image hover plugin provides facility to pins your blo
|
|
41 |
== Changelog ==
|
42 |
|
43 |
For more information, see [Weblizar](http://wwww.weblizar.com/).
|
|
|
|
|
44 |
|
45 |
= Version 1.3 23-May-2015 =
|
46 |
* Bug Fix: In Page / Post pin it button appearing according to settings now
|
6 |
Tags: advanced pinterest, board, feed, free, free pinterest widget, image, images, media, photo, photo share plugin, photos, pin it, pin it button, pinter pin display, pinterest, pinterest board, pinterest button, pinterest display, Pinterest Feed, pinterest follow, pinterest follow badge, pinterest follow button, pinterest pin, pinterest pin button, pinterest pin it button, pinterest share, pinterest widget, rss, sidebar, social, social button, social media, social share, social share plugin, widget, wordpress, wordpress widget, pinterest pin it button on hover, pin it on hover, pin it image, pin image, pin it button ob post,
|
7 |
Requires at least: 3.5
|
8 |
Tested up to: 4.2.2
|
9 |
+
Stable tag: 1.4
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
41 |
== Changelog ==
|
42 |
|
43 |
For more information, see [Weblizar](http://wwww.weblizar.com/).
|
44 |
+
= Version 1.4 18-June-2015 =
|
45 |
+
* Bug Fix: Undefined $post variable notice error fixed
|
46 |
|
47 |
= Version 1.3 23-May-2015 =
|
48 |
* Bug Fix: In Page / Post pin it button appearing according to settings now
|