Pinterest Pin It Button On Image Hover And Post - Version 2.7.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.7.7
Comparing to
See all releases

Code changes from version 2.7.6 to 2.7.7

Files changed (4) hide show
  1. exclude-images.php +6 -6
  2. pinterest-pin-It-button.php +19 -26
  3. readme.txt +18 -15
  4. settings.php +26 -26
exclude-images.php CHANGED
@@ -78,18 +78,18 @@ function DeleteAllImg(){
78
  console.log(img_ids);
79
  console.log(img_ids.length);
80
  if(img_ids.length){
81
-
82
  // remove deleted row from table
83
  jQuery.each( img_ids, function( key, value ) {
84
  //alert( value );
85
  jQuery("#"+value).fadeOut(1500);
86
  });
87
-
88
  jQuery.ajax({
89
  type: "POST",
90
  url: ajaxurl,
91
  data: {
92
- action: "delete_exclude_images",
93
  img_ids: img_ids,
94
  pinit_exclude_nonce_field: jQuery("input#pinit_exclude_nonce_field").val(),
95
  },
@@ -105,7 +105,7 @@ function DeleteAllImg(){
105
  //save image url
106
  function SaveNoPinImage(){
107
  var img_url = jQuery("#no-pin-image-url").val();
108
-
109
  if(!img_url) {
110
  jQuery("#no-pin-image-url").focus();
111
  return false;
@@ -117,7 +117,7 @@ function SaveNoPinImage(){
117
  type: "POST",
118
  url: ajaxurl,
119
  data: {
120
- action: "exclude_image",
121
  img_url: img_url,
122
  pinit_exclude_nonce_field: jQuery("input#pinit_exclude_nonce_field").val(),
123
  },
@@ -131,4 +131,4 @@ function SaveNoPinImage(){
131
  }
132
  });
133
  }
134
- </script>
78
  console.log(img_ids);
79
  console.log(img_ids.length);
80
  if(img_ids.length){
81
+
82
  // remove deleted row from table
83
  jQuery.each( img_ids, function( key, value ) {
84
  //alert( value );
85
  jQuery("#"+value).fadeOut(1500);
86
  });
87
+
88
  jQuery.ajax({
89
  type: "POST",
90
  url: ajaxurl,
91
  data: {
92
+ action: "delete_exclude_images",
93
  img_ids: img_ids,
94
  pinit_exclude_nonce_field: jQuery("input#pinit_exclude_nonce_field").val(),
95
  },
105
  //save image url
106
  function SaveNoPinImage(){
107
  var img_url = jQuery("#no-pin-image-url").val();
108
+
109
  if(!img_url) {
110
  jQuery("#no-pin-image-url").focus();
111
  return false;
117
  type: "POST",
118
  url: ajaxurl,
119
  data: {
120
+ action: "exclude_image",
121
  img_url: img_url,
122
  pinit_exclude_nonce_field: jQuery("input#pinit_exclude_nonce_field").val(),
123
  },
131
  }
132
  });
133
  }
134
+ </script>
pinterest-pin-It-button.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Pin It Button On Image Hover And Post
4
- * Version: 2.7.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/
@@ -13,7 +13,6 @@
13
  * of the License, or (at your option) any later version.
14
  *
15
  */
16
-
17
  /**
18
  * Constant Values & Variables
19
  */
@@ -39,13 +38,11 @@ function PiniIt_DefaultSettings(){
39
  add_option("WL_Mobile_Status", 1);
40
  add_option("WL_Pinit_Btn_Color", "red");
41
  add_option("WL_Pinit_Btn_Design", "rectangle");
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
@@ -61,12 +58,10 @@ function wl_pinit_js() {
61
  $PinItColor = get_option("WL_Pinit_Btn_Color");
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 esc_attr($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>
@@ -78,10 +73,10 @@ function wl_pinit_js() {
78
  <script type="text/javascript" async defer data-pin-color="<?php echo esc_html($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 esc_html($PinItColor); ?>" <?php if($PinItSize == "large") { ?>data-pin-height="28"<?php }?> data-pin-hover="<?php echo esc_html($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() );
@@ -104,7 +99,7 @@ function wl_pinit_js() {
104
  ;
105
  }
106
  });
107
- });
108
  <?php } } } ?>
109
  </script>
110
  <?php
@@ -122,7 +117,7 @@ function Load_pin_it_button_after_post_content($content){
122
  } else {
123
  $content .= '<p><a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-color="red" data-pin-height="128"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_28.png" /></a></p>';
124
  }
125
- }
126
  }
127
  return $content;
128
  }
@@ -175,7 +170,7 @@ function pinterest_pinit_button_settings_page() {
175
  add_action( 'wp_ajax_save_pinit', 'PinItSaveSettings' );
176
  function PinItSaveSettings() {
177
  if ( isset( $_POST['PinItSettingNonce'] ) || wp_verify_nonce( $_POST['PinItSettingNonce'], 'pinitsetting_nonce_action' ) ) {
178
- // process form data
179
  $PinItPost = sanitize_text_field($_POST['PinItPost']);
180
  $PinItPage = sanitize_text_field($_POST['PinItPage']);
181
  $PinItOnHover = sanitize_text_field($_POST['PinItOnHover']);
@@ -185,10 +180,10 @@ function PinItSaveSettings() {
185
  }
186
  if(isset($_POST['PinItColor'])){
187
  $PinItColor = sanitize_text_field($_POST['PinItColor']);
188
- }
189
  // $PinItColor = sanitize_text_field($_POST['PinItColor']);
190
  $PinItSize = sanitize_text_field($_POST['PinItSize']);
191
-
192
  update_option('WL_Enable_Pinit_Post', $PinItPost);
193
  update_option('WL_Enable_Pinit_Page', $PinItPage);
194
  update_option('WL_Pinit_Btn_On_Hover', $PinItOnHover);
@@ -197,16 +192,14 @@ function PinItSaveSettings() {
197
  update_option('WL_Pinit_Btn_Design', $PinItDesign);
198
  }
199
  if(isset($PinItColor)){
200
- update_option('WL_Pinit_Btn_Color', $PinItColor);
201
- }
202
  update_option('WL_Pinit_Btn_Size', $PinItSize);
203
  } else {
204
  print 'Sorry, your nonce did not verify.';
205
  exit;
206
  }
207
  }
208
-
209
-
210
  /*Save Exclude Images*/
211
  add_action( 'wp_ajax_exclude_image', 'exclude_image_save' );
212
  function exclude_image_save() {
@@ -229,7 +222,7 @@ function exclude_save_page(){
229
  //$all_exclude_pages = [];
230
  if ( isset( $_POST['pinit_exclude_page_nonce_field'] ) || wp_verify_nonce( $_POST['pinit_exclude_page_nonce_field'], 'pinit_exclude_page_nonce_action' ) ) {
231
  $all_exclude_pages = get_option('excluded_pint_it_pages');
232
- $page_name = sanitize_text_field( $_POST['page_name'] );
233
  if ( $page_name ) {
234
  $all_exclude_pages[] = $page_name;
235
  update_option('excluded_pint_it_pages', $all_exclude_pages);
@@ -250,7 +243,7 @@ function exclude_image_delete() {
250
  foreach($img_ids as $id){
251
  unset($all_exclude_images[$id]);
252
  }
253
- update_option('exclude_pin_it_images', $all_exclude_images);
254
  } else {
255
  print 'Sorry, your nonce did not verify.';
256
  exit;
@@ -266,14 +259,14 @@ function exclude_image_page() {
266
  foreach($page_ids as $id){
267
  unset($all_exclude_pages[$id]);
268
  }
269
- update_option('excluded_pint_it_pages', $all_exclude_pages);
270
  } else {
271
  print 'Sorry, your nonce did not verify.';
272
  exit;
273
  }
274
  }
275
  /*Plugin Setting Link*/
276
- function weblizar_pinitbutt_add_settings_link( $links ) {
277
  $pinitbutt_add_pro_link = '<a href="https://weblizar.com/plugins/pinterest-feed-pro/" target="_blank">'. esc_html__( 'Get Premium', WEBLIZAR_PINIT_TD ) .'</a>';
278
  array_unshift($links,$pinitbutt_add_pro_link);
279
  $settings_link_pinitbutt = '<a href="admin.php?page=pinterest-pinit-button-on-hover">' . esc_html__( 'Settings', WEBLIZAR_PINIT_TD ) . '</a>';
@@ -282,4 +275,4 @@ function weblizar_pinitbutt_add_settings_link( $links ) {
282
  }
283
  $plugin_pinitbutt = plugin_basename( __FILE__ );
284
  add_filter( "plugin_action_links_$plugin_pinitbutt", 'weblizar_pinitbutt_add_settings_link' );
285
- ?>
1
  <?php
2
  /**
3
  * Plugin Name: Pin It Button On Image Hover And Post
4
+ * Version: 2.7.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/
13
  * of the License, or (at your option) any later version.
14
  *
15
  */
 
16
  /**
17
  * Constant Values & Variables
18
  */
38
  add_option("WL_Mobile_Status", 1);
39
  add_option("WL_Pinit_Btn_Color", "red");
40
  add_option("WL_Pinit_Btn_Design", "rectangle");
41
+ add_option("WL_Pinit_Btn_Size", "small");
42
  }
 
 
43
  function front_jquery() {
44
  wp_enqueue_script( 'jquery' );
45
+ }
46
  add_action( 'wp_enqueue_scripts', 'front_jquery' );
47
 
48
  //Load saved pin it button settings
58
  $PinItColor = get_option("WL_Pinit_Btn_Color");
59
  $PinItSize = get_option("WL_Pinit_Btn_Size");
60
  $PinItStatus = get_option("WL_Mobile_Status");
61
+ $all_exclude_pages = get_option('excluded_pint_it_pages', array());
 
 
62
 
63
  //don't show on mobile
64
+ if(wp_is_mobile() && $PinItStatus == 0) {
65
  // do nothing - hide pinit button
66
  ?>
67
  <script type="text/javascript" async defer data-pin-color="<?php echo esc_attr($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
  <script type="text/javascript" async defer data-pin-color="<?php echo esc_html($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>
74
  <?php
75
  }
76
+ else {
77
  ?><script type="text/javascript" async defer data-pin-color="<?php echo esc_html($PinItColor); ?>" <?php if($PinItSize == "large") { ?>data-pin-height="28"<?php }?> data-pin-hover="<?php echo esc_html($PinItOnHover); ?>" src="<?php echo WEBLIZAR_PINIT_PLUGIN_URL."js/pinit.js"; ?>"></script><?php
78
  }
79
+
80
  // exclude images pin it hover
81
  $imags_urls = array();
82
  $imags_urls = get_option( 'exclude_pin_it_images', array() );
99
  ;
100
  }
101
  });
102
+ });
103
  <?php } } } ?>
104
  </script>
105
  <?php
117
  } else {
118
  $content .= '<p><a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-color="red" data-pin-height="128"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_28.png" /></a></p>';
119
  }
120
+ }
121
  }
122
  return $content;
123
  }
170
  add_action( 'wp_ajax_save_pinit', 'PinItSaveSettings' );
171
  function PinItSaveSettings() {
172
  if ( isset( $_POST['PinItSettingNonce'] ) || wp_verify_nonce( $_POST['PinItSettingNonce'], 'pinitsetting_nonce_action' ) ) {
173
+ // process form data
174
  $PinItPost = sanitize_text_field($_POST['PinItPost']);
175
  $PinItPage = sanitize_text_field($_POST['PinItPage']);
176
  $PinItOnHover = sanitize_text_field($_POST['PinItOnHover']);
180
  }
181
  if(isset($_POST['PinItColor'])){
182
  $PinItColor = sanitize_text_field($_POST['PinItColor']);
183
+ }
184
  // $PinItColor = sanitize_text_field($_POST['PinItColor']);
185
  $PinItSize = sanitize_text_field($_POST['PinItSize']);
186
+
187
  update_option('WL_Enable_Pinit_Post', $PinItPost);
188
  update_option('WL_Enable_Pinit_Page', $PinItPage);
189
  update_option('WL_Pinit_Btn_On_Hover', $PinItOnHover);
192
  update_option('WL_Pinit_Btn_Design', $PinItDesign);
193
  }
194
  if(isset($PinItColor)){
195
+ update_option('WL_Pinit_Btn_Color', $PinItColor);
196
+ }
197
  update_option('WL_Pinit_Btn_Size', $PinItSize);
198
  } else {
199
  print 'Sorry, your nonce did not verify.';
200
  exit;
201
  }
202
  }
 
 
203
  /*Save Exclude Images*/
204
  add_action( 'wp_ajax_exclude_image', 'exclude_image_save' );
205
  function exclude_image_save() {
222
  //$all_exclude_pages = [];
223
  if ( isset( $_POST['pinit_exclude_page_nonce_field'] ) || wp_verify_nonce( $_POST['pinit_exclude_page_nonce_field'], 'pinit_exclude_page_nonce_action' ) ) {
224
  $all_exclude_pages = get_option('excluded_pint_it_pages');
225
+ $page_name = sanitize_text_field( $_POST['page_name'] );
226
  if ( $page_name ) {
227
  $all_exclude_pages[] = $page_name;
228
  update_option('excluded_pint_it_pages', $all_exclude_pages);
243
  foreach($img_ids as $id){
244
  unset($all_exclude_images[$id]);
245
  }
246
+ update_option('exclude_pin_it_images', $all_exclude_images);
247
  } else {
248
  print 'Sorry, your nonce did not verify.';
249
  exit;
259
  foreach($page_ids as $id){
260
  unset($all_exclude_pages[$id]);
261
  }
262
+ update_option('excluded_pint_it_pages', $all_exclude_pages);
263
  } else {
264
  print 'Sorry, your nonce did not verify.';
265
  exit;
266
  }
267
  }
268
  /*Plugin Setting Link*/
269
+ function weblizar_pinitbutt_add_settings_link( $links ) {
270
  $pinitbutt_add_pro_link = '<a href="https://weblizar.com/plugins/pinterest-feed-pro/" target="_blank">'. esc_html__( 'Get Premium', WEBLIZAR_PINIT_TD ) .'</a>';
271
  array_unshift($links,$pinitbutt_add_pro_link);
272
  $settings_link_pinitbutt = '<a href="admin.php?page=pinterest-pinit-button-on-hover">' . esc_html__( 'Settings', WEBLIZAR_PINIT_TD ) . '</a>';
275
  }
276
  $plugin_pinitbutt = plugin_basename( __FILE__ );
277
  add_filter( "plugin_action_links_$plugin_pinitbutt", 'weblizar_pinitbutt_add_settings_link' );
278
+ ?>
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.3
9
- Stable tag: 2.7.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -110,20 +110,23 @@ 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 2.7.6 =[29-02-2020]
114
  - Bootstrap library update.
115
  - Small layout change.
116
 
117
  = Version 2.7.5 =[14-11-2019]
118
- - Tested with Wp 5.3
119
  - Bootstrap and font awesome library update.
120
 
121
  = Version 2.7.4 =
122
  - recommendations page update
123
- - minor changes
124
 
125
  = Version 2.7.3 =
126
- - Plugin name changes
127
  - Banner and icons changes
128
 
129
  = Version 2.7.2 =
@@ -134,11 +137,11 @@ For more information, see [Weblizar](https://wwww.weblizar.com/).
134
  = Version 2.7.1 =
135
  - Version Update & Compatible with WordPress 5.2.2
136
  - backend lauoyt updated
137
- - Some minor changes in Recommendation panel
138
 
139
  = Version 2.7.0 =
140
  - Version Update & Compatible with WordPress 5.2
141
- - bugs fixed
142
  - Recommendation panel updated
143
 
144
  = Version 2.6.9 =
@@ -147,11 +150,11 @@ For more information, see [Weblizar](https://wwww.weblizar.com/).
147
  = Version 2.6.8 =
148
  - Version Update & WordPress 5.1 Compatible
149
  - Minor issue fixed
150
-
151
- = Version 2.6.7
152
  - Version Update & WordPress 5.0.2 Compatible
153
- - Bug Fix Option Panel ( Excluding function )
154
- - Update back-end panel css issue fixed.
155
 
156
  = Version 2.6.5 =
157
  - Update setting of pinit button for mobile device
@@ -182,11 +185,11 @@ For more information, see [Weblizar](https://wwww.weblizar.com/).
182
  * small update
183
 
184
  = Version 2.3.6.1 08-Feb-2016 =
185
- * Bug: setting was not saving
186
 
187
  = Version 2.3.6 06-Feb-2016 =
188
  * Sanitized method used appropriately
189
- * Bug: setting was not saving
190
 
191
  = Version 2.3.5 01-Feb-2016 =
192
  * Tag updated
@@ -234,7 +237,7 @@ For more information, see [Weblizar](https://wwww.weblizar.com/).
234
  = Version 1.6 24-June-2015 =
235
  * New: Pinterest official Js code modified
236
  * Bug: browser_extension_tracking_id fixed
237
- * Bug: Invalid url fixed
238
 
239
  = Version 1.5 25-June-2015 =
240
  * New: Reverting Autoptimize plugin compatibilities
@@ -259,4 +262,4 @@ For more information, see [Weblizar](https://wwww.weblizar.com/).
259
  * New: Show Pinterest Pin It Button In Post
260
  * New: Show Pinterest Pin It Button In Page
261
  * New: Pinterest Pin It Button Settings
262
- * New: Customizable Button Size
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.4
9
+ Stable tag: 2.7.7
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 2.7.7 =[18-03-2020]
114
+ - Minor Fix.
115
+
116
  = Version 2.7.6 =[29-02-2020]
117
  - Bootstrap library update.
118
  - Small layout change.
119
 
120
  = Version 2.7.5 =[14-11-2019]
121
+ - Tested with Wp 5.3
122
  - Bootstrap and font awesome library update.
123
 
124
  = Version 2.7.4 =
125
  - recommendations page update
126
+ - minor changes
127
 
128
  = Version 2.7.3 =
129
+ - Plugin name changes
130
  - Banner and icons changes
131
 
132
  = Version 2.7.2 =
137
  = Version 2.7.1 =
138
  - Version Update & Compatible with WordPress 5.2.2
139
  - backend lauoyt updated
140
+ - Some minor changes in Recommendation panel
141
 
142
  = Version 2.7.0 =
143
  - Version Update & Compatible with WordPress 5.2
144
+ - bugs fixed
145
  - Recommendation panel updated
146
 
147
  = Version 2.6.9 =
150
  = Version 2.6.8 =
151
  - Version Update & WordPress 5.1 Compatible
152
  - Minor issue fixed
153
+
154
+ = Version 2.6.7
155
  - Version Update & WordPress 5.0.2 Compatible
156
+ - Bug Fix Option Panel ( Excluding function )
157
+ - Update back-end panel css issue fixed.
158
 
159
  = Version 2.6.5 =
160
  - Update setting of pinit button for mobile device
185
  * small update
186
 
187
  = Version 2.3.6.1 08-Feb-2016 =
188
+ * Bug: setting was not saving
189
 
190
  = Version 2.3.6 06-Feb-2016 =
191
  * Sanitized method used appropriately
192
+ * Bug: setting was not saving
193
 
194
  = Version 2.3.5 01-Feb-2016 =
195
  * Tag updated
237
  = Version 1.6 24-June-2015 =
238
  * New: Pinterest official Js code modified
239
  * Bug: browser_extension_tracking_id fixed
240
+ * Bug: Invalid url fixed
241
 
242
  = Version 1.5 25-June-2015 =
243
  * New: Reverting Autoptimize plugin compatibilities
262
  * New: Show Pinterest Pin It Button In Post
263
  * New: Show Pinterest Pin It Button In Page
264
  * New: Pinterest Pin It Button Settings
265
+ * New: Customizable Button Size
settings.php CHANGED
@@ -12,7 +12,7 @@
12
  background-image: url('<?php echo WEBLIZAR_PINIT_PLUGIN_URL.'img/image-3.jpg'; ?>');
13
  }
14
  #post-social-5{
15
-
16
  background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('<?php echo WEBLIZAR_PINIT_PLUGIN_URL.'img/pattern-1.png'; ?>') left top repeat, url('<?php echo WEBLIZAR_PINIT_PLUGIN_URL.'img/bg1.jpg'; ?>') center center fixed;
17
  }
18
  }
@@ -29,14 +29,14 @@
29
  ::-webkit-scrollbar {
30
  width: 12px;
31
  }
32
-
33
  ::-webkit-scrollbar-track {
34
  outline: 0px solid slategrey;
35
  background: transparent;
36
  border-radius: 0px;
37
  border:0px
38
  }
39
-
40
  ::-webkit-scrollbar-thumb {
41
  border-radius: 0px;
42
  background: rgba(71,204,232,0.9);
@@ -53,7 +53,7 @@ a:focus {
53
  .wp-color-result:hover {
54
  text-underline:none;
55
  }
56
-
57
  .page-wrapper {
58
  border-left: 1px solid #19191d;
59
  margin: 0 0 0 315px;
@@ -108,7 +108,7 @@ background: #ed5c5c;
108
  </div>
109
  <!-- <ul class="nav navbar-top-links navbar-right coming-soon-top">
110
  <li class="dropdown">
111
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
112
  </a>
113
  </li>
114
  </ul> -->
@@ -144,8 +144,8 @@ background: #ed5c5c;
144
  </div>
145
  </div>
146
  </nav>
147
-
148
- <div class="page-wrapper ui-tabs-panel active " id="option-ui-id-1">
149
  <div class="panel panel-default ml-4">
150
  <div class="panel-heading">
151
  <h4 class="margin-none" style="font-size: 28px;">
@@ -163,25 +163,25 @@ background: #ed5c5c;
163
  <li class=""><a data-toggle="tab" href="#our-product-tab"><strong><?php esc_html_e('Our Products', WEBLIZAR_PINIT_TD); ?></strong> <span class="pull-right close-conversation margin-left "><i class="fas fa-boxes"></i></span></a></li>
164
  <li class=""><a data-toggle="tab" href="#need-help-tab"><strong><?php esc_html_e('Need Help', WEBLIZAR_PINIT_TD); ?></strong> <span class="pull-right close-conversation margin-left "><i class="fas fa-question-circle"></i></span></a></li>
165
  </ul>
166
-
167
  <!-- Tab panes -->
168
- <div class="tab-content">
169
  <!-- Plugin Settings Tab -->
170
  <div id="pinit-settings-tab" class="tab-pane fade active in">
171
  <hr>
172
  <div>
173
  <p><?php esc_html_e('Show Pin It Button', WEBLIZAR_PINIT_TD); ?> <strong><?php esc_html_e('In Post', WEBLIZAR_PINIT_TD); ?></strong></p>
174
  <?php
175
- $PinItPost = get_option("WL_Enable_Pinit_Post");
176
  if(!isset($PinItPost)) {
177
  $PinItPost = 1;
178
  }
179
  ?>
180
- <input id="pinitpost" name="pinitpost" type="radio" value="1" <?php if($PinItPost == 1) echo "checked=checked"; ?>> <?php esc_html_e('Yes', WEBLIZAR_PINIT_TD); ?>
181
  <input id="pinitpost" name="pinitpost" type="radio" value="0" <?php if($PinItPost == 0) echo "checked=checked"; ?>> <?php esc_html_e('No', WEBLIZAR_PINIT_TD); ?>
182
  </div>
183
  <hr>
184
-
185
  <div>
186
  <p><?php esc_html_e('Show Pin It Button', WEBLIZAR_PINIT_TD); ?> <strong><?php esc_html_e('In Page', WEBLIZAR_PINIT_TD); ?></strong></p>
187
  <?php
@@ -190,11 +190,11 @@ background: #ed5c5c;
190
  $PinItPage = 1;
191
  }
192
  ?>
193
- <input id="pinitpage" name="pinitpage" type="radio" value="1" <?php if($PinItPage == 1) echo "checked=checked"; ?>> <?php esc_html_e('Yes', WEBLIZAR_PINIT_TD); ?>
194
  <input id="pinitpage" name="pinitpage" type="radio" value="0" <?php if($PinItPage == 0) echo "checked=checked"; ?>> <?php esc_html_e('No', WEBLIZAR_PINIT_TD); ?>
195
  </div>
196
  <hr>
197
-
198
  <div>
199
  <p><?php esc_html_e('Show Pin It Button', WEBLIZAR_PINIT_TD); ?> <strong><?php esc_html_e('On Image Hover', WEBLIZAR_PINIT_TD); ?></strong></p>
200
  <?php
@@ -203,11 +203,11 @@ background: #ed5c5c;
203
  $PinItOnHover = "true";
204
  }
205
  ?>
206
- <input id="pinitonhover" name="pinitonhover" type="radio" value="true" <?php if($PinItOnHover == "true") echo "checked=checked"; ?>> <?php esc_html_e('Yes', WEBLIZAR_PINIT_TD); ?>
207
  <input id="pinitonhover" name="pinitonhover" type="radio" value="false" <?php if($PinItOnHover == "false") echo "checked=checked"; ?>> <?php esc_html_e('No', WEBLIZAR_PINIT_TD); ?>
208
  </div>
209
  <hr>
210
-
211
  <div>
212
  <p><?php esc_html_e('Show Pin It Button', WEBLIZAR_PINIT_TD); ?> <strong><?php esc_html_e('On Mobile / Portable Devices', WEBLIZAR_PINIT_TD); ?></strong></p>
213
  <?php
@@ -216,11 +216,11 @@ background: #ed5c5c;
216
  $PinItStatus = 1;
217
  }
218
  ?>
219
- <input id="pinitstatus" name="pinitstatus" type="radio" value="1" <?php if($PinItStatus == 1) echo "checked=checked"; ?>> <?php esc_html_e('Yes', WEBLIZAR_PINIT_TD); ?>
220
  <input id="pinitstatus" name="pinitstatus" type="radio" value="0" <?php if($PinItStatus == 0) echo "checked=checked"; ?>> <?php esc_html_e('No', WEBLIZAR_PINIT_TD); ?>
221
  </div>
222
  <hr>
223
-
224
  <div>
225
  <p><?php esc_html_e('Pin It Button Size (On Image Hover)', WEBLIZAR_PINIT_TD); ?></p>
226
  <?php
@@ -239,7 +239,7 @@ background: #ed5c5c;
239
  <button id="pinitsave" name="pinitsave" class="button button-primary" type="button" onclick="return SaveSettings();"><strong><i class="fas fa-save"></i>&nbsp;&nbsp;<?php esc_html_e('Save', WEBLIZAR_PINIT_TD); ?></strong></button>
240
  <i id="loading" name="loading" style="display: none;" class="fas fa-cog fa-spin fa-3x"></i>
241
  </div>
242
-
243
  <!-- Exclude Images Tab -->
244
  <div id="exclude-images" class="tab-pane fade">
245
  <?php require_once("exclude-images.php"); ?>
@@ -249,7 +249,7 @@ background: #ed5c5c;
249
  <div id="exclude-pages" class="tab-pane fade">
250
  <?php require_once("exclude-pages.php"); ?>
251
  </div>
252
-
253
  <!-- Plugin Recommendation Tab -->
254
  <div id="plug-recom" class="tab-pane fade">
255
  <?php require_once("recommendations.php"); ?>
@@ -262,7 +262,7 @@ background: #ed5c5c;
262
 
263
  <!-- Need Help Tab -->
264
  <div id="need-help-tab" class="tab-pane fade">
265
- <h4><?php esc_html_e('Need Help Tab', WEBLIZAR_PINIT_TD); ?></h4>
266
  <hr>
267
  <p><?php esc_html_e('Simply after install and activate plugin go on plugins Pinterest PinIt Button" admin menu page.', WEBLIZAR_PINIT_TD); ?></p>
268
  <p><?php esc_html_e('Select the Settings tab and configure Pin It Button settings according to you.', WEBLIZAR_PINIT_TD); ?></p>
@@ -285,7 +285,7 @@ background: #ed5c5c;
285
  </div>
286
  </div>
287
  </div>
288
-
289
  <script>
290
  function SaveSettings(){
291
  jQuery('#pinitsave').hide();
@@ -293,15 +293,15 @@ function SaveSettings(){
293
  jQuery.ajax({
294
  type: "POST",
295
  url: ajaxurl,
296
- data: { action: "save_pinit",
297
  PinItPost: jQuery("input[name=pinitpost]:radio:checked").val(),
298
  PinItPage: jQuery("input[name=pinitpage]:radio:checked").val(),
299
  PinItOnHover: jQuery("input[name=pinitonhover]:radio:checked").val(),
300
  PinItStatus: jQuery("input[name=pinitstatus]:radio:checked").val(),
301
  //PinItColor: jQuery("select#pinitcolor").val(),
302
  //PinItDesign: jQuery("select#pinitdesign").val(),
303
- PinItSize: jQuery("select#pinitsize").val(),
304
- PinItSettingNonce: jQuery("input#pinitsetting_nonce_field").val(),
305
  },
306
  dataType: 'html',
307
  complete : function() { },
@@ -311,4 +311,4 @@ function SaveSettings(){
311
  }
312
  });
313
  }
314
- </script>
12
  background-image: url('<?php echo WEBLIZAR_PINIT_PLUGIN_URL.'img/image-3.jpg'; ?>');
13
  }
14
  #post-social-5{
15
+
16
  background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('<?php echo WEBLIZAR_PINIT_PLUGIN_URL.'img/pattern-1.png'; ?>') left top repeat, url('<?php echo WEBLIZAR_PINIT_PLUGIN_URL.'img/bg1.jpg'; ?>') center center fixed;
17
  }
18
  }
29
  ::-webkit-scrollbar {
30
  width: 12px;
31
  }
32
+
33
  ::-webkit-scrollbar-track {
34
  outline: 0px solid slategrey;
35
  background: transparent;
36
  border-radius: 0px;
37
  border:0px
38
  }
39
+
40
  ::-webkit-scrollbar-thumb {
41
  border-radius: 0px;
42
  background: rgba(71,204,232,0.9);
53
  .wp-color-result:hover {
54
  text-underline:none;
55
  }
56
+
57
  .page-wrapper {
58
  border-left: 1px solid #19191d;
59
  margin: 0 0 0 315px;
108
  </div>
109
  <!-- <ul class="nav navbar-top-links navbar-right coming-soon-top">
110
  <li class="dropdown">
111
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">
112
  </a>
113
  </li>
114
  </ul> -->
144
  </div>
145
  </div>
146
  </nav>
147
+
148
+ <div class="page-wrapper ui-tabs-panel active " id="option-ui-id-1">
149
  <div class="panel panel-default ml-4">
150
  <div class="panel-heading">
151
  <h4 class="margin-none" style="font-size: 28px;">
163
  <li class=""><a data-toggle="tab" href="#our-product-tab"><strong><?php esc_html_e('Our Products', WEBLIZAR_PINIT_TD); ?></strong> <span class="pull-right close-conversation margin-left "><i class="fas fa-boxes"></i></span></a></li>
164
  <li class=""><a data-toggle="tab" href="#need-help-tab"><strong><?php esc_html_e('Need Help', WEBLIZAR_PINIT_TD); ?></strong> <span class="pull-right close-conversation margin-left "><i class="fas fa-question-circle"></i></span></a></li>
165
  </ul>
166
+
167
  <!-- Tab panes -->
168
+ <div class="tab-content">
169
  <!-- Plugin Settings Tab -->
170
  <div id="pinit-settings-tab" class="tab-pane fade active in">
171
  <hr>
172
  <div>
173
  <p><?php esc_html_e('Show Pin It Button', WEBLIZAR_PINIT_TD); ?> <strong><?php esc_html_e('In Post', WEBLIZAR_PINIT_TD); ?></strong></p>
174
  <?php
175
+ $PinItPost = get_option("WL_Enable_Pinit_Post");
176
  if(!isset($PinItPost)) {
177
  $PinItPost = 1;
178
  }
179
  ?>
180
+ <input id="pinitpost" name="pinitpost" type="radio" value="1" <?php if($PinItPost == 1) echo "checked=checked"; ?>> <?php esc_html_e('Yes', WEBLIZAR_PINIT_TD); ?>
181
  <input id="pinitpost" name="pinitpost" type="radio" value="0" <?php if($PinItPost == 0) echo "checked=checked"; ?>> <?php esc_html_e('No', WEBLIZAR_PINIT_TD); ?>
182
  </div>
183
  <hr>
184
+
185
  <div>
186
  <p><?php esc_html_e('Show Pin It Button', WEBLIZAR_PINIT_TD); ?> <strong><?php esc_html_e('In Page', WEBLIZAR_PINIT_TD); ?></strong></p>
187
  <?php
190
  $PinItPage = 1;
191
  }
192
  ?>
193
+ <input id="pinitpage" name="pinitpage" type="radio" value="1" <?php if($PinItPage == 1) echo "checked=checked"; ?>> <?php esc_html_e('Yes', WEBLIZAR_PINIT_TD); ?>
194
  <input id="pinitpage" name="pinitpage" type="radio" value="0" <?php if($PinItPage == 0) echo "checked=checked"; ?>> <?php esc_html_e('No', WEBLIZAR_PINIT_TD); ?>
195
  </div>
196
  <hr>
197
+
198
  <div>
199
  <p><?php esc_html_e('Show Pin It Button', WEBLIZAR_PINIT_TD); ?> <strong><?php esc_html_e('On Image Hover', WEBLIZAR_PINIT_TD); ?></strong></p>
200
  <?php
203
  $PinItOnHover = "true";
204
  }
205
  ?>
206
+ <input id="pinitonhover" name="pinitonhover" type="radio" value="true" <?php if($PinItOnHover == "true") echo "checked=checked"; ?>> <?php esc_html_e('Yes', WEBLIZAR_PINIT_TD); ?>
207
  <input id="pinitonhover" name="pinitonhover" type="radio" value="false" <?php if($PinItOnHover == "false") echo "checked=checked"; ?>> <?php esc_html_e('No', WEBLIZAR_PINIT_TD); ?>
208
  </div>
209
  <hr>
210
+
211
  <div>
212
  <p><?php esc_html_e('Show Pin It Button', WEBLIZAR_PINIT_TD); ?> <strong><?php esc_html_e('On Mobile / Portable Devices', WEBLIZAR_PINIT_TD); ?></strong></p>
213
  <?php
216
  $PinItStatus = 1;
217
  }
218
  ?>
219
+ <input id="pinitstatus" name="pinitstatus" type="radio" value="1" <?php if($PinItStatus == 1) echo "checked=checked"; ?>> <?php esc_html_e('Yes', WEBLIZAR_PINIT_TD); ?>
220
  <input id="pinitstatus" name="pinitstatus" type="radio" value="0" <?php if($PinItStatus == 0) echo "checked=checked"; ?>> <?php esc_html_e('No', WEBLIZAR_PINIT_TD); ?>
221
  </div>
222
  <hr>
223
+
224
  <div>
225
  <p><?php esc_html_e('Pin It Button Size (On Image Hover)', WEBLIZAR_PINIT_TD); ?></p>
226
  <?php
239
  <button id="pinitsave" name="pinitsave" class="button button-primary" type="button" onclick="return SaveSettings();"><strong><i class="fas fa-save"></i>&nbsp;&nbsp;<?php esc_html_e('Save', WEBLIZAR_PINIT_TD); ?></strong></button>
240
  <i id="loading" name="loading" style="display: none;" class="fas fa-cog fa-spin fa-3x"></i>
241
  </div>
242
+
243
  <!-- Exclude Images Tab -->
244
  <div id="exclude-images" class="tab-pane fade">
245
  <?php require_once("exclude-images.php"); ?>
249
  <div id="exclude-pages" class="tab-pane fade">
250
  <?php require_once("exclude-pages.php"); ?>
251
  </div>
252
+
253
  <!-- Plugin Recommendation Tab -->
254
  <div id="plug-recom" class="tab-pane fade">
255
  <?php require_once("recommendations.php"); ?>
262
 
263
  <!-- Need Help Tab -->
264
  <div id="need-help-tab" class="tab-pane fade">
265
+ <h2><?php esc_html_e('Need Help Tab', WEBLIZAR_PINIT_TD); ?></h2>
266
  <hr>
267
  <p><?php esc_html_e('Simply after install and activate plugin go on plugins Pinterest PinIt Button" admin menu page.', WEBLIZAR_PINIT_TD); ?></p>
268
  <p><?php esc_html_e('Select the Settings tab and configure Pin It Button settings according to you.', WEBLIZAR_PINIT_TD); ?></p>
285
  </div>
286
  </div>
287
  </div>
288
+
289
  <script>
290
  function SaveSettings(){
291
  jQuery('#pinitsave').hide();
293
  jQuery.ajax({
294
  type: "POST",
295
  url: ajaxurl,
296
+ data: { action: "save_pinit",
297
  PinItPost: jQuery("input[name=pinitpost]:radio:checked").val(),
298
  PinItPage: jQuery("input[name=pinitpage]:radio:checked").val(),
299
  PinItOnHover: jQuery("input[name=pinitonhover]:radio:checked").val(),
300
  PinItStatus: jQuery("input[name=pinitstatus]:radio:checked").val(),
301
  //PinItColor: jQuery("select#pinitcolor").val(),
302
  //PinItDesign: jQuery("select#pinitdesign").val(),
303
+ PinItSize: jQuery("select#pinitsize").val(),
304
+ PinItSettingNonce: jQuery("input#pinitsetting_nonce_field").val(),
305
  },
306
  dataType: 'html',
307
  complete : function() { },
311
  }
312
  });
313
  }
314
+ </script>