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

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 3.5
Comparing to
See all releases

Code changes from version 3.4 to 3.5

exclude-images.php CHANGED
@@ -30,7 +30,7 @@
30
  <th scope="col">#</th>
31
  <th scope="col"><?php esc_html_e( 'URL', WEBLIZAR_PINIT_TD ); ?>
32
  </th>
33
- <th scope="col" class="text-center"><input type="checkbox" id="select-all" name="select-all[]" value="-1" /></th>
34
  </tr>
35
  </thead>
36
  <tbody>
@@ -64,7 +64,7 @@
64
  <tr>
65
  <th scope="col">#</th>
66
  <th scope="col"></th>
67
- <th scope="col" class="text-center"><input type="checkbox" id="select-all" name="select-all[]" value="-1" /></th>
68
  </tr>
69
  </thead>
70
  <tr>
30
  <th scope="col">#</th>
31
  <th scope="col"><?php esc_html_e( 'URL', WEBLIZAR_PINIT_TD ); ?>
32
  </th>
33
+ <th scope="col" class="text-center"><input type="checkbox" id="select-all" name="select-all[]" value="<?php echo esc_attr('-1');?>" /></th>
34
  </tr>
35
  </thead>
36
  <tbody>
64
  <tr>
65
  <th scope="col">#</th>
66
  <th scope="col"></th>
67
+ <th scope="col" class="text-center"><input type="checkbox" id="select-all" name="select-all[]" value="<?php echo esc_attr('-1');?>" /></th>
68
  </tr>
69
  </thead>
70
  <tr>
exclude-pages.php CHANGED
@@ -34,7 +34,7 @@ $all_excluded_pages = get_option( 'excluded_pint_it_pages' );
34
  <th scope="col"><?php esc_html_e( 'Page', WEBLIZAR_PINIT_TD ); ?>
35
  </th>
36
  <th scope="col" class="text-center"><input type="checkbox" id="select-page-all" name="select-page-all[]"
37
- value="1" /></th>
38
  </tr>
39
  </thead>
40
  <tbody>
@@ -69,7 +69,7 @@ $all_excluded_pages = get_option( 'excluded_pint_it_pages' );
69
  <th scope="col"><?php esc_html_e( 'Page', WEBLIZAR_PINIT_TD ); ?>
70
  </th>
71
  <th scope="col" class="text-center"><input type="checkbox" id="select-page-all" name="select-page-all[]"
72
- value="-1" /></th>
73
  </tr>
74
  </thead>
75
  <tr>
34
  <th scope="col"><?php esc_html_e( 'Page', WEBLIZAR_PINIT_TD ); ?>
35
  </th>
36
  <th scope="col" class="text-center"><input type="checkbox" id="select-page-all" name="select-page-all[]"
37
+ value="<?php echo esc_attr('1');?>" /></th>
38
  </tr>
39
  </thead>
40
  <tbody>
69
  <th scope="col"><?php esc_html_e( 'Page', WEBLIZAR_PINIT_TD ); ?>
70
  </th>
71
  <th scope="col" class="text-center"><input type="checkbox" id="select-page-all" name="select-page-all[]"
72
+ value="<?php echo esc_attr('-1');?>" /></th>
73
  </tr>
74
  </thead>
75
  <tr>
pinterest-pin-It-button.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Weblizar Pin It Button On Image Hover And Post
4
- * Version: 3.4
5
  * Description: Weblizar 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/
@@ -268,10 +268,12 @@ function exclude_image_delete() {
268
  if ( current_user_can( 'manage_options' ) ) {
269
  $all_exclude_images = get_option( 'exclude_pin_it_images' );
270
  $img_ids = isset( $_POST['img_ids'] ) ? sanitize_text_field( $_POST['img_ids'] ) : '';
 
271
  foreach ( $img_ids as $id ) {
272
  unset( $all_exclude_images[ $id ] );
273
  }
274
- update_option( 'exclude_pin_it_images', $all_exclude_images );
 
275
  }
276
  } else {
277
  print 'Sorry, your nonce did not verify.';
@@ -287,10 +289,12 @@ function exclude_image_page() {
287
  if ( current_user_can( 'manage_options' ) ) {
288
  $all_exclude_pages = get_option( 'excluded_pint_it_pages' );
289
  $page_ids = isset( $_POST['page_ids'] ) ? sanitize_text_field( $_POST['page_ids'] ) : '';
 
290
  foreach ( $page_ids as $id ) {
291
  unset( $all_exclude_pages[ $id ] );
292
  }
293
- update_option( 'excluded_pint_it_pages', $all_exclude_pages );
 
294
  }
295
  } else {
296
  print 'Sorry, your nonce did not verify.';
@@ -308,4 +312,4 @@ function weblizar_pinitbutt_add_settings_link( $links ) {
308
  }
309
 
310
  $plugin_pinitbutt = plugin_basename( __FILE__ );
311
- add_filter( "plugin_action_links_$plugin_pinitbutt", 'weblizar_pinitbutt_add_settings_link' );
1
  <?php
2
  /**
3
  * Plugin Name: Weblizar Pin It Button On Image Hover And Post
4
+ * Version: 3.5
5
  * Description: Weblizar 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/
268
  if ( current_user_can( 'manage_options' ) ) {
269
  $all_exclude_images = get_option( 'exclude_pin_it_images' );
270
  $img_ids = isset( $_POST['img_ids'] ) ? sanitize_text_field( $_POST['img_ids'] ) : '';
271
+ if (is_array($img_ids)) {
272
  foreach ( $img_ids as $id ) {
273
  unset( $all_exclude_images[ $id ] );
274
  }
275
+ }
276
+ update_option( 'exclude_pin_it_images', $all_exclude_images[ $id ] );
277
  }
278
  } else {
279
  print 'Sorry, your nonce did not verify.';
289
  if ( current_user_can( 'manage_options' ) ) {
290
  $all_exclude_pages = get_option( 'excluded_pint_it_pages' );
291
  $page_ids = isset( $_POST['page_ids'] ) ? sanitize_text_field( $_POST['page_ids'] ) : '';
292
+ if (is_array($page_ids)) {
293
  foreach ( $page_ids as $id ) {
294
  unset( $all_exclude_pages[ $id ] );
295
  }
296
+ }
297
+ update_option( 'excluded_pint_it_pages', $all_exclude_pages[ $id ] );
298
  }
299
  } else {
300
  print 'Sorry, your nonce did not verify.';
312
  }
313
 
314
  $plugin_pinitbutt = plugin_basename( __FILE__ );
315
+ add_filter( "plugin_action_links_$plugin_pinitbutt", 'weblizar_pinitbutt_add_settings_link' );
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
7
  Requires at least: 5.5
8
- Tested up to: 5.9.2
9
- Stable tag: 3.4
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -110,6 +110,12 @@ Please use WordPress [support forum](http://wordpress.org/support/plugin/pintere
110
 
111
  For more information, see [Weblizar](https://wwww.weblizar.com/).
112
 
 
 
 
 
 
 
113
  = Version 3.4 =[01-04-2022]
114
  - Tested up to WordPress 5.9.2
115
  - Minor changes.
5
  Donate link: https://www.weblizar.com/
6
  Tags: pinterest, pin images, pin photo, pin it button
7
  Requires at least: 5.5
8
+ Tested up to: 6.0
9
+ Stable tag: 3.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
110
 
111
  For more information, see [Weblizar](https://wwww.weblizar.com/).
112
 
113
+ = Version 3.5 =[16-06-2022]
114
+ - Tested up to WordPress 6.0
115
+ - Tested up to PHP 8.0.19
116
+ - Minor bug fixed.
117
+
118
+
119
  = Version 3.4 =[01-04-2022]
120
  - Tested up to WordPress 5.9.2
121
  - Minor changes.
settings.php CHANGED
@@ -46,20 +46,20 @@
46
  $PinItPost = 1;
47
  }
48
  ?>
49
- <input id="pinitpost" name="pinitpost" type="radio" value="1"
50
  <?php
51
  if ( $PinItPost == 1 ) {
52
  echo esc_attr( 'checked=checked' );
53
  }
54
  ?>
55
- > <?php esc_html_e( 'Yes', WEBLIZAR_PINIT_TD ); ?>
56
- <input id="pinitpost" name="pinitpost" type="radio" value="0"
57
  <?php
58
  if ( $PinItPost == 0 ) {
59
  echo esc_attr( 'checked=checked' );
60
  }
61
  ?>
62
- > <?php esc_html_e( 'No', WEBLIZAR_PINIT_TD ); ?>
63
  </div>
64
  <hr>
65
 
@@ -73,20 +73,20 @@
73
  $PinItPage = 1;
74
  }
75
  ?>
76
- <input id="pinitpage" name="pinitpage" type="radio" value="1"
77
  <?php
78
  if ( $PinItPage == 1 ) {
79
  echo esc_attr( 'checked=checked' );
80
  }
81
  ?>
82
- > <?php esc_html_e( 'Yes', WEBLIZAR_PINIT_TD ); ?>
83
- <input id="pinitpage" name="pinitpage" type="radio" value="0"
84
  <?php
85
  if ( $PinItPage == 0 ) {
86
  echo esc_attr( 'checked=checked' );
87
  }
88
  ?>
89
- > <?php esc_html_e( 'No', WEBLIZAR_PINIT_TD ); ?>
90
  </div>
91
  <hr>
92
 
@@ -100,20 +100,20 @@
100
  $PinItOnHover = 'true';
101
  }
102
  ?>
103
- <input id="pinitonhover" name="pinitonhover" type="radio" value="true"
104
  <?php
105
  if ( $PinItOnHover == 'true' ) {
106
  echo esc_attr( 'checked=checked' );
107
  }
108
  ?>
109
- > <?php esc_html_e( 'Yes', WEBLIZAR_PINIT_TD ); ?>
110
- <input id="pinitonhover" name="pinitonhover" type="radio" value="false"
111
  <?php
112
  if ( $PinItOnHover == 'false' ) {
113
  echo esc_attr( 'checked=checked' );
114
  }
115
  ?>
116
- > <?php esc_html_e( 'No', WEBLIZAR_PINIT_TD ); ?>
117
  </div>
118
  <hr>
119
 
@@ -127,20 +127,20 @@
127
  $PinItStatus = 1;
128
  }
129
  ?>
130
- <input id="pinitstatus" name="pinitstatus" type="radio" value="1"
131
  <?php
132
  if ( $PinItStatus == 1 ) {
133
  echo esc_attr( 'checked=checked' );
134
  }
135
  ?>
136
- > <?php esc_html_e( 'Yes', WEBLIZAR_PINIT_TD ); ?>
137
- <input id="pinitstatus" name="pinitstatus" type="radio" value="0"
138
  <?php
139
  if ( $PinItStatus == 0 ) {
140
  echo esc_attr( 'checked=checked' );
141
  }
142
  ?>
143
- > <?php esc_html_e( 'No', WEBLIZAR_PINIT_TD ); ?>
144
  </div>
145
  <hr>
146
 
@@ -154,21 +154,21 @@
154
  }
155
  ?>
156
  <select id="pinitsize" name="pinitsize" class="form-control">
157
- <option value="small"
158
  <?php
159
  if ( $PinItSize == 'small' ) {
160
  echo esc_attr( 'selected=selected' );
161
  }
162
  ?>
163
- ><?php esc_html_e( 'Small', WEBLIZAR_PINIT_TD ); ?> ( For small Pinit button )
164
  </option>
165
- <option value="large"
166
  <?php
167
  if ( $PinItSize == 'large' ) {
168
  echo esc_attr( 'selected=selected' );
169
  }
170
  ?>
171
- ><?php esc_html_e( 'Large', WEBLIZAR_PINIT_TD ); ?> ( For large Pinit button )
172
  </option>
173
  }
174
  </select>
46
  $PinItPost = 1;
47
  }
48
  ?>
49
+ <input id="pinitpost" name="pinitpost" type="radio" value="<?php echo esc_attr('1');?>"
50
  <?php
51
  if ( $PinItPost == 1 ) {
52
  echo esc_attr( 'checked=checked' );
53
  }
54
  ?>
55
+ > <?php esc_html_e( 'Yes', WEBLIZAR_PINIT_TD ); ?>
56
+ <input id="pinitpost" name="pinitpost" type="radio" value="<?php echo esc_attr('0');?>"
57
  <?php
58
  if ( $PinItPost == 0 ) {
59
  echo esc_attr( 'checked=checked' );
60
  }
61
  ?>
62
+ > <?php esc_html_e( 'No', WEBLIZAR_PINIT_TD ); ?>
63
  </div>
64
  <hr>
65
 
73
  $PinItPage = 1;
74
  }
75
  ?>
76
+ <input id="pinitpage" name="pinitpage" type="radio" value="<?php echo esc_attr('1');?>"
77
  <?php
78
  if ( $PinItPage == 1 ) {
79
  echo esc_attr( 'checked=checked' );
80
  }
81
  ?>
82
+ > <?php esc_html_e( 'Yes', WEBLIZAR_PINIT_TD ); ?>
83
+ <input id="pinitpage" name="pinitpage" type="radio" value="<?php echo esc_attr('0');?>"
84
  <?php
85
  if ( $PinItPage == 0 ) {
86
  echo esc_attr( 'checked=checked' );
87
  }
88
  ?>
89
+ > <?php esc_html_e( 'No', WEBLIZAR_PINIT_TD ); ?>
90
  </div>
91
  <hr>
92
 
100
  $PinItOnHover = 'true';
101
  }
102
  ?>
103
+ <input id="pinitonhover" name="pinitonhover" type="radio" value="<?php echo esc_attr('true');?>"
104
  <?php
105
  if ( $PinItOnHover == 'true' ) {
106
  echo esc_attr( 'checked=checked' );
107
  }
108
  ?>
109
+ > <?php esc_html_e( 'Yes', WEBLIZAR_PINIT_TD ); ?>
110
+ <input id="pinitonhover" name="pinitonhover" type="radio" value="<?php echo esc_attr('false');?>"
111
  <?php
112
  if ( $PinItOnHover == 'false' ) {
113
  echo esc_attr( 'checked=checked' );
114
  }
115
  ?>
116
+ > <?php esc_html_e( 'No', WEBLIZAR_PINIT_TD ); ?>
117
  </div>
118
  <hr>
119
 
127
  $PinItStatus = 1;
128
  }
129
  ?>
130
+ <input id="pinitstatus" name="pinitstatus" type="radio" value="<?php echo esc_attr('1');?>"
131
  <?php
132
  if ( $PinItStatus == 1 ) {
133
  echo esc_attr( 'checked=checked' );
134
  }
135
  ?>
136
+ > <?php esc_html_e( 'Yes', WEBLIZAR_PINIT_TD ); ?>
137
+ <input id="pinitstatus" name="pinitstatus" type="radio" value="<?php echo esc_attr('0');?>"
138
  <?php
139
  if ( $PinItStatus == 0 ) {
140
  echo esc_attr( 'checked=checked' );
141
  }
142
  ?>
143
+ > <?php esc_html_e( 'No', WEBLIZAR_PINIT_TD ); ?>
144
  </div>
145
  <hr>
146
 
154
  }
155
  ?>
156
  <select id="pinitsize" name="pinitsize" class="form-control">
157
+ <option value="<?php echo esc_attr('small');?>"
158
  <?php
159
  if ( $PinItSize == 'small' ) {
160
  echo esc_attr( 'selected=selected' );
161
  }
162
  ?>
163
+ ><?php esc_html_e( 'Small', WEBLIZAR_PINIT_TD ); ?> ( For small Pinit button )
164
  </option>
165
+ <option value="<?php echo esc_attr('large');?>"
166
  <?php
167
  if ( $PinItSize == 'large' ) {
168
  echo esc_attr( 'selected=selected' );
169
  }
170
  ?>
171
+ ><?php esc_html_e( 'Large', WEBLIZAR_PINIT_TD ); ?> ( For large Pinit button )
172
  </option>
173
  }
174
  </select>