AdSense Plugin WP QUADS - Version 1.8.15

Version Description

  • Fix: Changes support Email id form in help area.
  • New: Converting adsbygoogle to amp-ads for AMP.
  • Fix: Fixed jumping issue in quads settings.
Download this release

Release Info

Developer wpquads
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 1.8.15
Comparing to
See all releases

Code changes from version 1.8.14 to 1.8.15

Gruntfile.js CHANGED
@@ -62,7 +62,7 @@ module.exports = function (grunt) {
62
  },
63
  options: {
64
  replacements: [{
65
- pattern: /1.8.14/g,
66
  replacement: '<%= pkg.version %>'
67
  }]
68
  }
62
  },
63
  options: {
64
  replacements: [{
65
+ pattern: /1.8.15/g,
66
  replacement: '<%= pkg.version %>'
67
  }]
68
  }
assets/js/quads-admin.js CHANGED
@@ -973,7 +973,7 @@ e.preventDefault();
973
  f.getTabs();
974
  b();
975
  g();
976
- w();
977
  n();
978
  c();
979
  q.attr("data-easytabs", true)
973
  f.getTabs();
974
  b();
975
  g();
976
+ // w();
977
  n();
978
  c();
979
  q.attr("data-easytabs", true)
assets/js/quads-admin.min.js CHANGED
@@ -974,7 +974,7 @@ e.preventDefault();
974
  f.getTabs();
975
  b();
976
  g();
977
- w();
978
  n();
979
  c();
980
  q.attr("data-easytabs", true)
974
  f.getTabs();
975
  b();
976
  g();
977
+ // w();
978
  n();
979
  c();
980
  q.attr("data-easytabs", true)
includes/admin/settings/display-settings.php CHANGED
@@ -115,12 +115,12 @@ function quads_do_settings_fields($page, $section) {
115
  echo '</td></tr>';
116
  }else if (!empty($field['title']) && !quads_is_excluded_title( $field['args']['id'] ) && !empty($field['args']['helper-desc'])){
117
  echo '<tr class="quads-row">';
118
- echo '<td class="quads-row th">';
119
  echo '<div class="col-title">' . $field['title'] . '<a class="quads-general-helper" href="#"></a><div class="quads-message">' . $field['args']['helper-desc']. '</div></div>';
120
  echo '</td></tr>';
121
  }else if (!empty($field['title']) && !quads_is_excluded_title( $field['args']['id'] ) ){
122
  echo '<tr class="quads-row">';
123
- echo '<td class="quads-row th">';
124
  echo '<div class="col-title" id="'.$field['args']['id'].'">' . $field['title'] . '</div>';
125
  echo '</td></tr>';
126
  }
115
  echo '</td></tr>';
116
  }else if (!empty($field['title']) && !quads_is_excluded_title( $field['args']['id'] ) && !empty($field['args']['helper-desc'])){
117
  echo '<tr class="quads-row">';
118
+ echo '<td class="quads-row th">';//xss ok
119
  echo '<div class="col-title">' . $field['title'] . '<a class="quads-general-helper" href="#"></a><div class="quads-message">' . $field['args']['helper-desc']. '</div></div>';
120
  echo '</td></tr>';
121
  }else if (!empty($field['title']) && !quads_is_excluded_title( $field['args']['id'] ) ){
122
  echo '<tr class="quads-row">';
123
+ echo '<td class="quads-row th">'; //xss ok
124
  echo '<div class="col-title" id="'.$field['args']['id'].'">' . $field['title'] . '</div>';
125
  echo '</td></tr>';
126
  }
includes/admin/settings/register-settings.php CHANGED
@@ -478,7 +478,7 @@ function wpquads_send_query_message(){
478
  $customer_type = 'Are you a premium customer ? Yes';
479
  }
480
 
481
- $message = '<p>'.$message.'</p><br><br>'. $customer_type. '<br><br> Query from plugin support tab';
482
 
483
  if($user){
484
  $user_data = $user->data;
@@ -487,8 +487,8 @@ function wpquads_send_query_message(){
487
  $user_email = $email;
488
  }
489
  //php mailer variables
490
- $sendto = 'team@magazine3.com';
491
- $subject = "WP QUADS";
492
  $headers[] = 'Content-Type: text/html; charset=UTF-8';
493
  $headers[] = 'From: '. esc_attr($user_email);
494
  $headers[] = 'Reply-To: ' . esc_attr($user_email);
@@ -2037,7 +2037,7 @@ function quads_adsense_code_callback( $args ) {
2037
  $g_data_ad_height = isset( $quads_options['ads'][$args['id']]['g_data_ad_height'] ) ? $quads_options['ads'][$args['id']]['g_data_ad_height'] : '';
2038
 
2039
  // Create a shorter var to make HTML cleaner
2040
- $id = $args['id'];
2041
  ?>
2042
  <div class="quads-ad-toggle-header quads-box-close" data-box-id="quads-toggle<?php echo $id; ?>">
2043
  <div class="quads-toogle-title"><?php echo $label; ?></div>
478
  $customer_type = 'Are you a premium customer ? Yes';
479
  }
480
 
481
+ $message = '<p>'.$message.'</p><br><br>'. $customer_type. '<br><br> query from WPQuads support tab';
482
 
483
  if($user){
484
  $user_data = $user->data;
487
  $user_email = $email;
488
  }
489
  //php mailer variables
490
+ $sendto = 'team@wpquads.com';
491
+ $subject = "WPQuads Support ticket";
492
  $headers[] = 'Content-Type: text/html; charset=UTF-8';
493
  $headers[] = 'From: '. esc_attr($user_email);
494
  $headers[] = 'Reply-To: ' . esc_attr($user_email);
2037
  $g_data_ad_height = isset( $quads_options['ads'][$args['id']]['g_data_ad_height'] ) ? $quads_options['ads'][$args['id']]['g_data_ad_height'] : '';
2038
 
2039
  // Create a shorter var to make HTML cleaner
2040
+ $id = $args['id']; //xss ok
2041
  ?>
2042
  <div class="quads-ad-toggle-header quads-box-close" data-box-id="quads-toggle<?php echo $id; ?>">
2043
  <div class="quads-toogle-title"><?php echo $label; ?></div>
includes/template-functions.php CHANGED
@@ -16,6 +16,8 @@ if ( ! defined( 'ABSPATH' ) ) exit;
16
  add_filter('the_content', 'quads_post_settings_to_quicktags', 5);
17
  add_filter('the_content', 'quads_process_content', quads_get_load_priority());
18
  add_filter('rest_prepare_post', 'quads_classic_to_gutenberg', 10, 1);
 
 
19
  /**
20
  * Show ads before posts
21
  * @not used at the moment
@@ -56,6 +58,41 @@ function quads_classic_to_gutenberg($data)
56
  }
57
  return $data;
58
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  /**
61
  * Adds quicktags, defined via post meta options, to content.
16
  add_filter('the_content', 'quads_post_settings_to_quicktags', 5);
17
  add_filter('the_content', 'quads_process_content', quads_get_load_priority());
18
  add_filter('rest_prepare_post', 'quads_classic_to_gutenberg', 10, 1);
19
+ add_filter('the_content', 'quads_change_adsbygoogle_to_amp',11);
20
+
21
  /**
22
  * Show ads before posts
23
  * @not used at the moment
58
  }
59
  return $data;
60
  }
61
+ function quads_change_adsbygoogle_to_amp($content){
62
+ if (quads_is_amp_endpoint()){
63
+ $dom = new DOMDocument();
64
+ $dom->loadHTML($content);
65
+ $nodes = $dom->getElementsByTagName( 'ins' );
66
+
67
+ $num_nodes = $nodes->length;
68
+ for ( $i = $num_nodes - 1; $i >= 0; $i-- ) {
69
+ $url = $width = $height = '';
70
+ $node = $nodes->item( $i );
71
+ if($node->getAttribute('class') == 'adsbygoogle'){
72
+ $adclient= $node->getAttribute('data-ad-client');
73
+ $adslot= $node->getAttribute('data-ad-slot');
74
+ $adformat= $node->getAttribute('data-ad-format');
75
+ $adfullwidth= $node->getAttribute('data-full-width-responsive');
76
+
77
+ $new_node= $dom->createElement('amp-ad');
78
+ $new_node->setAttribute('type', 'adsense');
79
+ $new_node->setAttribute('data-ad-client', $adclient);
80
+ $new_node->setAttribute('data-ad-slot', $adslot);
81
+ if($node->getAttribute('data-full-width-responsive')){
82
+ $new_node->setAttribute('data-ad-format', $adformat);
83
+ $new_node->setAttribute('data-full-width-responsive', $adfullwidth);
84
+ }
85
+ $child_element= $dom->createElement('div');
86
+ $child_element->setAttribute('overflow', '');
87
+ $new_node->appendChild( $child_element );
88
+
89
+ $node->parentNode->replaceChild($new_node, $node);
90
+ }
91
+ }
92
+ $content = $dom->saveHTML();
93
+ }
94
+ return $content;
95
+ }
96
 
97
  /**
98
  * Adds quicktags, defined via post meta options, to content.
quick-adsense-reloaded.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Insert Google AdSense and other ad formats fully automatic into your website
7
  * Author: WP Quads
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
- * Version: 1.8.14
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
@@ -36,7 +36,7 @@ if( !defined( 'ABSPATH' ) )
36
 
37
  // Plugin version
38
  if( !defined( 'QUADS_VERSION' ) ) {
39
- define( 'QUADS_VERSION', '1.8.14' );
40
  }
41
 
42
  // Plugin name
6
  * Description: Insert Google AdSense and other ad formats fully automatic into your website
7
  * Author: WP Quads
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
+ * Version: 1.8.15
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
36
 
37
  // Plugin version
38
  if( !defined( 'QUADS_VERSION' ) ) {
39
+ define( 'QUADS_VERSION', '1.8.15' );
40
  }
41
 
42
  // Plugin name
readme.txt CHANGED
@@ -10,7 +10,7 @@ Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inser
10
  Requires at least: 3.6+
11
  Tested up to: 5.3.2
12
  Requires PHP: 5.3
13
- Stable tag: 1.8.14
14
 
15
  Ads & AdSense Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
16
 
@@ -129,7 +129,12 @@ Alternative Installation:
129
 
130
 
131
  == Changelog ==
132
- = 1.8.4 =
 
 
 
 
 
133
  * New: Added support form in help area.
134
  * New: Added Email optin box with auto message
135
  * New: Added Margin & Padding options for AD Widget
10
  Requires at least: 3.6+
11
  Tested up to: 5.3.2
12
  Requires PHP: 5.3
13
+ Stable tag: 1.8.15
14
 
15
  Ads & AdSense Plugin is the quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support.
16
 
129
 
130
 
131
  == Changelog ==
132
+ = 1.8.15 =
133
+ * Fix: Changes support Email id form in help area.
134
+ * New: Converting adsbygoogle to amp-ads for AMP.
135
+ * Fix: Fixed jumping issue in quads settings.
136
+
137
+ = 1.8.14 =
138
  * New: Added support form in help area.
139
  * New: Added Email optin box with auto message
140
  * New: Added Margin & Padding options for AD Widget