Pinterest Pin It Button On Image Hover And Post - Version 2.6.7

Version Description

= 0.1 = Starter version no upgrade is required.

Download this release

Release Info

Developer weblizar
Plugin Icon 128x128 Pinterest Pin It Button On Image Hover And Post
Version 2.6.7
Comparing to
See all releases

Code changes from version 2.6.6 to 2.6.7

css/weblizar-smartech.css CHANGED
@@ -1554,6 +1554,9 @@ margin-bottom: 12px;
1554
  padding-bottom: 10px;
1555
  display: block;
1556
  font-size:15px;
 
 
 
1557
  }
1558
 
1559
  .img-wrapper{
@@ -1854,3 +1857,37 @@ a.pint-btn{
1854
  max-width: 250px;
1855
  margin: 0 auto;
1856
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1554
  padding-bottom: 10px;
1555
  display: block;
1556
  font-size:15px;
1557
+ margin-top: 10px;
1558
+ font-size: 20px;
1559
+ color: #fff;
1560
  }
1561
 
1562
  .img-wrapper{
1857
  max-width: 250px;
1858
  margin: 0 auto;
1859
  }
1860
+
1861
+ /*add-custom-css in new update*/
1862
+
1863
+ .text-muted {
1864
+ color: #e4e4e4!important;
1865
+ }
1866
+
1867
+ .panel-default > .panel-heading {
1868
+ color: #fff;
1869
+ background-color: #ef4238!important;
1870
+ }
1871
+ .text-center button {
1872
+ background-color: #e02121;
1873
+ border: none;
1874
+ color: #fff;
1875
+ font-size: 15px;
1876
+ padding: 5px 10px;
1877
+ border-radius: 7px;
1878
+ box-shadow: 2px 2px 1px #ccc;
1879
+ }
1880
+ #poststuff .stuffbox>h3, #poststuff h2, #poststuff h3.hndle {
1881
+ font-size: 14px;
1882
+ padding: 8px 12px;
1883
+ margin: 0;
1884
+ line-height: 1.4;
1885
+ background-color: #ef4238!important;
1886
+ }
1887
+
1888
+ .col-sm-12 h2, .h2 {
1889
+ font-size: 30px;
1890
+ background-color: #ef4238;
1891
+ padding: 10px;
1892
+ color: #fff;
1893
+ }
exclude-images.php CHANGED
@@ -57,7 +57,7 @@ $all_exclude_images = get_option('exclude_pin_it_images');
57
  <tr>
58
  <th>&nbsp;</th>
59
  <th>&nbsp;</th>
60
- <th class="text-center"><button type="button" id="delete-all" name="delete-all" title="Delte All" onclick="return DeleteAll();"><i class="fa fa-trash"></i></button></th>
61
  </tr>
62
 
63
  </table>
@@ -70,7 +70,7 @@ jQuery("#select-all").click(function(){
70
  });
71
 
72
  // delete checked urls
73
- function DeleteAll(){
74
  var img_ids = [];
75
  jQuery(':checkbox:checked').each(function(i){
76
  img_ids[i] = jQuery(this).val();
57
  <tr>
58
  <th>&nbsp;</th>
59
  <th>&nbsp;</th>
60
+ <th class="text-center"><button type="button" id="delete-all" name="delete-all" title="Delte All" onclick="return DeleteAllImg();"><i class="fa fa-trash"></i></button></th>
61
  </tr>
62
 
63
  </table>
70
  });
71
 
72
  // delete checked urls
73
+ function DeleteAllImg(){
74
  var img_ids = [];
75
  jQuery(':checkbox:checked').each(function(i){
76
  img_ids[i] = jQuery(this).val();
exclude-pages.php CHANGED
@@ -19,13 +19,13 @@ $all_excluded_pages = get_option('excluded_pint_it_pages');
19
  <tr>
20
  <th scope="col">#</th>
21
  <th scope="col">Page</th>
22
- <th scope="col" class="text-center"><input type="checkbox" id="select-page-all" name="select-page-all[]" value="-1" /></th>
23
  </tr>
24
  </thead>
25
  <tbody>
26
  <?php
27
  if ( is_array( $all_excluded_pages ) && count( $all_excluded_pages ) ) {
28
- $count = 1;
29
  foreach ($all_excluded_pages as $exclude_key => $exclude_page) {
30
  if( $exclude_page ) {
31
  ?>
@@ -47,7 +47,7 @@ $all_excluded_pages = get_option('excluded_pint_it_pages');
47
  <thead class="thead-dark">
48
  <tr>
49
  <th scope="col">#</th>
50
- <th scope="col">URL</th>
51
  <th scope="col" class="text-center"><input type="checkbox" id="select-page-all" name="select-page-all[]" value="-1" /></th>
52
  </tr>
53
  </thead>
19
  <tr>
20
  <th scope="col">#</th>
21
  <th scope="col">Page</th>
22
+ <th scope="col" class="text-center"><input type="checkbox" id="select-page-all" name="select-page-all[]" value="1" /></th>
23
  </tr>
24
  </thead>
25
  <tbody>
26
  <?php
27
  if ( is_array( $all_excluded_pages ) && count( $all_excluded_pages ) ) {
28
+ $count = 0;
29
  foreach ($all_excluded_pages as $exclude_key => $exclude_page) {
30
  if( $exclude_page ) {
31
  ?>
47
  <thead class="thead-dark">
48
  <tr>
49
  <th scope="col">#</th>
50
+ <th scope="col">Page</th>
51
  <th scope="col" class="text-center"><input type="checkbox" id="select-page-all" name="select-page-all[]" value="-1" /></th>
52
  </tr>
53
  </thead>
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: 2.6.6
5
  * Description: Pinterest pin it button on image hover plugin provides facility to pins your blog posts, pages and images into your Pinterest account boards.
6
  * Author: Weblizar
7
  * Author URI: https://weblizar.com/plugins/
@@ -42,6 +42,12 @@ function PiniIt_DefaultSettings(){
42
  add_option("WL_Pinit_Btn_Size", "small");
43
  }
44
 
 
 
 
 
 
 
45
  //Load saved pin it button settings
46
  $PinItOnHover = get_option("WL_Pinit_Btn_On_Hover");
47
 
@@ -56,37 +62,40 @@ function wl_pinit_js() {
56
  $PinItSize = get_option("WL_Pinit_Btn_Size");
57
  $PinItStatus = get_option("WL_Mobile_Status");
58
  $all_exclude_pages = get_option('excluded_pint_it_pages', array());
 
 
 
59
  //don't show on mobile
60
- if(wp_is_mobile() && $PinItStatus == 0) {
61
  // do nothing - hide pinit button
62
  ?>
63
  <script type="text/javascript" async defer data-pin-color="<?php echo $PinItColor; ?>" <?php if($PinItSize == "large") { ?>data-pin-height="28"<?php }?> data-pin-hover="false" src="<?php echo WEBLIZAR_PINIT_PLUGIN_URL."js/pinit.js"; ?>"></script>
64
  <?php
65
  }
66
- if( is_page($all_exclude_pages) ) {
 
67
  ?>
68
  <script type="text/javascript" async defer data-pin-color="<?php echo $PinItColor; ?>" <?php if($PinItSize == "large") { ?>data-pin-height="28"<?php }?> data-pin-hover="false" src="<?php echo WEBLIZAR_PINIT_PLUGIN_URL."js/pinit.js"; ?>"></script>
69
  <?php
70
  }
71
- else {
72
  ?><script type="text/javascript" async defer data-pin-color="<?php echo $PinItColor; ?>" <?php if($PinItSize == "large") { ?>data-pin-height="28"<?php }?> data-pin-hover="<?php echo $PinItOnHover; ?>" src="<?php echo WEBLIZAR_PINIT_PLUGIN_URL."js/pinit.js"; ?>"></script><?php
73
  }
74
 
75
  // exclude images pin it hover
76
  $imags_urls = array();
77
- $imags_urls = get_option( 'exclude_pin_it_images', array() ); ?>
 
78
  <script>
79
- <?php if((is_array($imags_urls)) && count($imags_urls)) {
80
- foreach($imags_urls as $imags_url) {
81
- if($imags_url) { ?>
82
- jQuery(document).ready(function(){
83
- var nopin_img_src = "<?php echo $imags_url; ?>";
84
- jQuery("img").each(function(){
85
- if(jQuery(this).attr("src") == nopin_img_src){
86
- jQuery(this).attr("nopin", "nopin");
87
- }
88
- });
89
- });
90
  <?php } } } ?>
91
  </script>
92
  <?php
@@ -117,7 +126,7 @@ function Load_pin_it_button_after_page_content($content){
117
  $PinItPage = get_option("WL_Enable_Pinit_Page");
118
  $PinItStatus = get_option("WL_Mobile_Status");
119
  $all_exclude_pages = get_option('excluded_pint_it_pages', array());
120
- if(get_option("WL_Enable_Pinit_Page") && ! is_page($all_exclude_pages) ) {
121
  if(wp_is_mobile() && $PinItStatus == 0) {
122
  // do nothing //don't show on mobile
123
  } else {
@@ -179,6 +188,7 @@ function PinItSaveSettings() {
179
  }
180
  }
181
 
 
182
  /*Save Exclude Images*/
183
  add_action( 'wp_ajax_exclude_image', 'exclude_image_save' );
184
  function exclude_image_save() {
@@ -198,7 +208,7 @@ function exclude_image_save() {
198
  /* Save exclude pages */
199
  add_action( 'wp_ajax_exclude_page', 'exclude_save_page' );
200
  function exclude_save_page(){
201
- $all_exclude_pages = [];
202
  if ( isset( $_POST['pinit_exclude_page_nonce_field'] ) || wp_verify_nonce( $_POST['pinit_exclude_page_nonce_field'], 'pinit_exclude_page_nonce_action' ) ) {
203
  $all_exclude_pages = get_option('excluded_pint_it_pages');
204
  $page_name = sanitize_text_field( $_POST['page_name'] );
1
  <?php
2
  /**
3
  * Plugin Name: Pinterest Pin It Button On Image Hover And After Post & Page Content
4
+ * Version: 2.6.7
5
  * Description: Pinterest pin it button on image hover plugin provides facility to pins your blog posts, pages and images into your Pinterest account boards.
6
  * Author: Weblizar
7
  * Author URI: https://weblizar.com/plugins/
42
  add_option("WL_Pinit_Btn_Size", "small");
43
  }
44
 
45
+
46
+ function front_jquery() {
47
+ wp_enqueue_script( 'jquery' );
48
+ }
49
+ add_action( 'wp_enqueue_scripts', 'front_jquery' );
50
+
51
  //Load saved pin it button settings
52
  $PinItOnHover = get_option("WL_Pinit_Btn_On_Hover");
53
 
62
  $PinItSize = get_option("WL_Pinit_Btn_Size");
63
  $PinItStatus = get_option("WL_Mobile_Status");
64
  $all_exclude_pages = get_option('excluded_pint_it_pages', array());
65
+
66
+
67
+
68
  //don't show on mobile
69
+ if(wp_is_mobile() && $PinItStatus == 0) {
70
  // do nothing - hide pinit button
71
  ?>
72
  <script type="text/javascript" async defer data-pin-color="<?php echo $PinItColor; ?>" <?php if($PinItSize == "large") { ?>data-pin-height="28"<?php }?> data-pin-hover="false" src="<?php echo WEBLIZAR_PINIT_PLUGIN_URL."js/pinit.js"; ?>"></script>
73
  <?php
74
  }
75
+ if( ! empty ( $all_exclude_pages ) && is_page($all_exclude_pages) ) {
76
+
77
  ?>
78
  <script type="text/javascript" async defer data-pin-color="<?php echo $PinItColor; ?>" <?php if($PinItSize == "large") { ?>data-pin-height="28"<?php }?> data-pin-hover="false" src="<?php echo WEBLIZAR_PINIT_PLUGIN_URL."js/pinit.js"; ?>"></script>
79
  <?php
80
  }
81
+ else {
82
  ?><script type="text/javascript" async defer data-pin-color="<?php echo $PinItColor; ?>" <?php if($PinItSize == "large") { ?>data-pin-height="28"<?php }?> data-pin-hover="<?php echo $PinItOnHover; ?>" src="<?php echo WEBLIZAR_PINIT_PLUGIN_URL."js/pinit.js"; ?>"></script><?php
83
  }
84
 
85
  // exclude images pin it hover
86
  $imags_urls = array();
87
+ $imags_urls = get_option( 'exclude_pin_it_images', array() );
88
+ ?>
89
  <script>
90
+ <?php if((is_array($imags_urls)) && count($imags_urls)) { foreach($imags_urls as $imags_url) { if($imags_url) { ?>
91
+ jQuery(document).ready(function(){
92
+ var nopin_img_src = "<?php echo $imags_url; ?>";
93
+ jQuery("img").each(function(){
94
+ if(jQuery(this).attr("src") == nopin_img_src){
95
+ jQuery(this).attr("nopin", "nopin");
96
+ }
97
+ });
98
+ });
 
 
99
  <?php } } } ?>
100
  </script>
101
  <?php
126
  $PinItPage = get_option("WL_Enable_Pinit_Page");
127
  $PinItStatus = get_option("WL_Mobile_Status");
128
  $all_exclude_pages = get_option('excluded_pint_it_pages', array());
129
+ if(get_option("WL_Enable_Pinit_Page")) {
130
  if(wp_is_mobile() && $PinItStatus == 0) {
131
  // do nothing //don't show on mobile
132
  } else {
188
  }
189
  }
190
 
191
+
192
  /*Save Exclude Images*/
193
  add_action( 'wp_ajax_exclude_image', 'exclude_image_save' );
194
  function exclude_image_save() {
208
  /* Save exclude pages */
209
  add_action( 'wp_ajax_exclude_page', 'exclude_save_page' );
210
  function exclude_save_page(){
211
+ //$all_exclude_pages = [];
212
  if ( isset( $_POST['pinit_exclude_page_nonce_field'] ) || wp_verify_nonce( $_POST['pinit_exclude_page_nonce_field'], 'pinit_exclude_page_nonce_action' ) ) {
213
  $all_exclude_pages = get_option('excluded_pint_it_pages');
214
  $page_name = sanitize_text_field( $_POST['page_name'] );
readme.txt CHANGED
@@ -5,8 +5,8 @@ Contributors: weblizar
5
  Donate link: https://www.weblizar.com/
6
  Tags: pinterest, pin images, pin photo, pin it button, pin plugin
7
  Requires at least: 3.8
8
- Tested up to: 5.0.1
9
- Stable tag: 2.6.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -30,9 +30,9 @@ Pinterest pin it button on image hover plugin provides facility to pins your blo
30
 
31
  ### Pinterest Feed Pro Features
32
 
33
- * **Pinterest Profile** - Show your Pinterest profile as it looks on Pinterest platform.
34
 
35
- * **Pinterest Pins** - Share all your Pinterest pins on your website.
36
 
37
  * **Get All relevant outputs of your Pinterest profile, Pins** - Showcase your Pinterest gallery in the most efficient way to gather more traffic.
38
 
@@ -42,13 +42,13 @@ Pinterest pin it button on image hover plugin provides facility to pins your blo
42
 
43
  * **Get All Pinterest Pins of single and multiple boards** - Choose how you want to display your pins and boards.
44
 
45
- * **Responsive dashboard design with Live preview** - Tested with multiple devices and screen sizes by our team of dedicated web developers.
46
 
47
- * **Easy to use user friendly interface** - Easy options to configure Pinterest feed
48
 
49
- * **User friendly descriptive section designing with helpful tool tips** - Stuck somewhere? Our special tool tips will help you along the way.
50
 
51
- * **Multi Site Support** - Plugin support on WordPress multi sites functionality.
52
 
53
  * **Bootstrap Based Responsive Plugin Settings Panel** - It is compatible with all the latest and top most WordPress websites available.
54
 
@@ -111,10 +111,10 @@ Please use WordPress [support forum](http://wordpress.org/support/plugin/pintere
111
 
112
  For more information, see [Weblizar](https://wwww.weblizar.com/).
113
 
114
- = Version 2.6.6 =
115
- - Tested with wordpress 5.0.1
116
- - Readme text update.
117
-
118
  = Version 2.6.5 =
119
  - Update setting of pinit button for mobile device
120
  - Update product page
5
  Donate link: https://www.weblizar.com/
6
  Tags: pinterest, pin images, pin photo, pin it button, pin plugin
7
  Requires at least: 3.8
8
+ Tested up to: 5.0.2
9
+ Stable tag: 2.6.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
30
 
31
  ### Pinterest Feed Pro Features
32
 
33
+ * **Pinterest Profile** - Show your Pinterest profile as it looks on Pinterest platform
34
 
35
+ * **Pinterest Pins** - Share all your Pinterest pins on your website
36
 
37
  * **Get All relevant outputs of your Pinterest profile, Pins** - Showcase your Pinterest gallery in the most efficient way to gather more traffic.
38
 
42
 
43
  * **Get All Pinterest Pins of single and multiple boards** - Choose how you want to display your pins and boards.
44
 
45
+ * **Responsive dashboard design with Live preview** -Tested with multiple devices and screen sizes by our team of dedicated web developers
46
 
47
+ * **Easy to use user friendly interface** Easy options to configure Pinterest feed
48
 
49
+ * **User friendly descriptive section designing with helpful tool tips** - Stuck somewhere? Our special tool tips will help you along the way
50
 
51
+ * **Multi Site Support** - Plugin support on WordPress multi sites functionality
52
 
53
  * **Bootstrap Based Responsive Plugin Settings Panel** - It is compatible with all the latest and top most WordPress websites available.
54
 
111
 
112
  For more information, see [Weblizar](https://wwww.weblizar.com/).
113
 
114
+ = Version 2.6.7 =
115
+ - Bug Fix Option Panel ( Excluding function )
116
+ - Update back-end panel css issue fixed.
117
+
118
  = Version 2.6.5 =
119
  - Update setting of pinit button for mobile device
120
  - Update product page