AdSense Plugin WP QUADS - Version 1.8.17

Version Description

  • Fix: Added vi banner dis-missable.
  • Fix: Debug Error in quads help tab.
Download this release

Release Info

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

Code changes from version 1.8.16 to 1.8.17

includes/admin/admin-actions.php CHANGED
@@ -51,6 +51,16 @@ function quads_close_vi_welcome_notice() {
51
 
52
  add_action('quads_close_vi_welcome_notice', 'quads_close_vi_welcome_notice');
53
 
 
 
 
 
 
 
 
 
 
 
54
  /**
55
  * Close vi update notice and show it one week later again
56
  */
51
 
52
  add_action('quads_close_vi_welcome_notice', 'quads_close_vi_welcome_notice');
53
 
54
+ /**
55
+ * Close vi ads txt notice and do not show again
56
+ */
57
+ function quads_close_quads_vi_ads_txt_notice() {
58
+
59
+ delete_transient('quads_vi_ads_txt_notice');
60
+ }
61
+
62
+ add_action('quads_close_quads_vi_ads_txt_notice', 'quads_close_quads_vi_ads_txt_notice');
63
+
64
  /**
65
  * Close vi update notice and show it one week later again
66
  */
includes/admin/admin-notices.php CHANGED
@@ -555,6 +555,7 @@ function quads_show_vi_notices() {
555
  $notice['message'] = '<strong>ADS.TXT has been added</strong><br><br><strong>WP QUADS</strong> has updated your ads.txt '
556
  . 'file with lines that declare video inteligence as a legitmate seller of your inventory and enables you to make more money through video inteligence. <a href="https://www.vi.ai/publisher-video-monetization/?utm_source=WordPress&utm_medium=Plugin%20blurb&utm_campaign=wpquads" target="blank" rel="external nofollow">FAQ</a>';
557
  $notice['type'] = 'update-nag';
 
558
  $adsUpdated = new wpquads\template( '/includes/vendor/vi/views/notices', $notice );
559
  echo $adsUpdated->render();
560
  }
555
  $notice['message'] = '<strong>ADS.TXT has been added</strong><br><br><strong>WP QUADS</strong> has updated your ads.txt '
556
  . 'file with lines that declare video inteligence as a legitmate seller of your inventory and enables you to make more money through video inteligence. <a href="https://www.vi.ai/publisher-video-monetization/?utm_source=WordPress&utm_medium=Plugin%20blurb&utm_campaign=wpquads" target="blank" rel="external nofollow">FAQ</a>';
557
  $notice['type'] = 'update-nag';
558
+ $notice['transient'] = 'quads_vi_ads_txt_notice';
559
  $adsUpdated = new wpquads\template( '/includes/vendor/vi/views/notices', $notice );
560
  echo $adsUpdated->render();
561
  }
includes/admin/settings/display-settings.php CHANGED
@@ -91,7 +91,6 @@ function quads_do_settings_fields($page, $section) {
91
  }
92
 
93
  foreach ((array) $wp_settings_fields[$page][$section] as $field) {
94
-
95
  $sanitizedID = str_replace('[', '', $field['id'] );
96
  $sanitizedID = str_replace(']', '', $sanitizedID );
97
 
@@ -113,12 +112,12 @@ function quads_do_settings_fields($page, $section) {
113
  echo '<td class="quads-row th">';
114
  echo '<label for="' . esc_attr($field['args']['label_for']) . '">' . $field['title'] . '</label>';
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>';
@@ -175,13 +174,13 @@ function quads_is_excluded_title($string){
175
  * @return void
176
  */
177
  function quads_options_page() {
178
- global $quads_options;
179
 
180
- $active_tab = isset( $_GET[ 'tab' ] ) && array_key_exists( $_GET['tab'], quads_get_settings_tabs() ) ? $_GET[ 'tab' ] : 'general';
181
 
182
- ob_start();
183
- ?>
184
- <div class="wrap quads_admin">
185
  <h1 style="text-align:center;"> <?php echo QUADS_NAME . ' ' . QUADS_VERSION; ?></h1>
186
  <div class="about-text" style="font-weight: 400;line-height: 1.6em;text-align:center;">
187
  <div class='quads-share-button-container'>
@@ -201,34 +200,34 @@ function quads_options_page() {
201
  </div>
202
  </div>
203
  </div>
204
- <h2 class="nav-tab-wrapper">
205
- <?php
206
- foreach( quads_get_settings_tabs() as $tab_id => $tab_name ) {
207
 
208
- $tab_url = esc_url(add_query_arg( array(
209
- 'settings-updated' => false,
210
- 'tab' => $tab_id
211
- ) ));
212
 
213
- $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
214
 
215
- echo '<a href="' . esc_url( $tab_url ) . '" title="' . esc_attr( $tab_name ) . '" class="nav-tab' . $active . '">';
216
- echo esc_html( $tab_name );
217
- echo '</a>';
218
- }
219
- ?>
220
- </h2>
221
- <div id="quads_tab_container" class="quads_tab_container">
222
  <?php quads_get_tab_header( 'quads_settings_' . $active_tab, 'quads_settings_' . $active_tab ); ?>
223
  <div class="quads-panel-container"> <!-- new //-->
224
- <form method="post" action="options.php" id="quads_settings">
225
 
226
- <?php
227
- settings_fields( 'quads_settings' );
228
- quads_do_settings_fields( 'quads_settings_' . $active_tab, 'quads_settings_' . $active_tab );
229
- ?>
230
  <?php settings_errors(); ?>
231
- <?php
232
  // do not show save button on add-on page
233
  if ($active_tab !== 'addons' && $active_tab !== 'imexport' && $active_tab !== 'help'){
234
  $other_attributes = array( 'id' => 'quads-submit-button' );
@@ -241,7 +240,7 @@ function quads_options_page() {
241
 
242
  }
243
  ?>
244
- </form>
245
  <div id="quads-footer">
246
  <?php
247
 
@@ -251,7 +250,7 @@ function quads_options_page() {
251
  'http://wpquads.com/support/'
252
  );
253
  echo '<br/><br/>' . sprintf( __( '<strong>Ads are not showing? Read the <a href="%s" target="_blank">troubleshooting guide</a> to find out how to resolve it.<p> Looking for a quick way to clone your WordPress? Try the free plugin <a href="%s" target="_blank">WP Staging</a>.', 'quick-adsense-reloaded' ),
254
- 'http://wpquads.com/docs/adsense-ads-are-not-showing/?utm_source=plugin&utm_campaign=wpquads-settings&utm_medium=website&utm_term=bottomlink',
255
  'https://wp-staging.com/?utm_source=wpquads_plugin&utm_campaign=footer&utm_medium=website&utm_term=bottomlink'
256
  );
257
  }
@@ -259,13 +258,13 @@ function quads_options_page() {
259
  </div>
260
  </div> <!-- new //-->
261
  <?php quads_get_advertising(); ?>
262
- </div><!-- #tab_container-->
263
  <div id="quads-save-result"></div>
264
  <div class="quads-admin-debug"><?php echo quads_get_debug_messages(); ?></div>
265
  <?php echo quads_render_adsense_form(); ?>
266
- </div><!-- .wrap -->
267
- <?php
268
- echo ob_get_clean();
269
  }
270
 
271
  function quads_get_debug_messages(){
91
  }
92
 
93
  foreach ((array) $wp_settings_fields[$page][$section] as $field) {
 
94
  $sanitizedID = str_replace('[', '', $field['id'] );
95
  $sanitizedID = str_replace(']', '', $sanitizedID );
96
 
112
  echo '<td class="quads-row th">';
113
  echo '<label for="' . esc_attr($field['args']['label_for']) . '">' . $field['title'] . '</label>';
114
  echo '</td></tr>';
115
+ }else if (!empty($field['title']) && !empty($field['args']['helper-desc']) && !quads_is_excluded_title( $field['args']['id'] ) ){
116
  echo '<tr class="quads-row">';
117
  echo '<td class="quads-row th">';//xss ok
118
  echo '<div class="col-title">' . $field['title'] . '<a class="quads-general-helper" href="#"></a><div class="quads-message">' . $field['args']['helper-desc']. '</div></div>';
119
  echo '</td></tr>';
120
+ }else if (!empty($field['title']) && !empty($field['args']['id']) && !quads_is_excluded_title( $field['args']['id'] ) ){
121
  echo '<tr class="quads-row">';
122
  echo '<td class="quads-row th">'; //xss ok
123
  echo '<div class="col-title" id="'.$field['args']['id'].'">' . $field['title'] . '</div>';
174
  * @return void
175
  */
176
  function quads_options_page() {
177
+ global $quads_options;
178
 
179
+ $active_tab = isset( $_GET[ 'tab' ] ) && array_key_exists( $_GET['tab'], quads_get_settings_tabs() ) ? $_GET[ 'tab' ] : 'general';
180
 
181
+ ob_start();
182
+ ?>
183
+ <div class="wrap quads_admin">
184
  <h1 style="text-align:center;"> <?php echo QUADS_NAME . ' ' . QUADS_VERSION; ?></h1>
185
  <div class="about-text" style="font-weight: 400;line-height: 1.6em;text-align:center;">
186
  <div class='quads-share-button-container'>
200
  </div>
201
  </div>
202
  </div>
203
+ <h2 class="nav-tab-wrapper">
204
+ <?php
205
+ foreach( quads_get_settings_tabs() as $tab_id => $tab_name ) {
206
 
207
+ $tab_url = esc_url(add_query_arg( array(
208
+ 'settings-updated' => false,
209
+ 'tab' => $tab_id
210
+ ) ));
211
 
212
+ $active = $active_tab == $tab_id ? ' nav-tab-active' : '';
213
 
214
+ echo '<a href="' . esc_url( $tab_url ) . '" title="' . esc_attr( $tab_name ) . '" class="nav-tab' . $active . '">';
215
+ echo esc_html( $tab_name );
216
+ echo '</a>';
217
+ }
218
+ ?>
219
+ </h2>
220
+ <div id="quads_tab_container" class="quads_tab_container">
221
  <?php quads_get_tab_header( 'quads_settings_' . $active_tab, 'quads_settings_' . $active_tab ); ?>
222
  <div class="quads-panel-container"> <!-- new //-->
223
+ <form method="post" action="options.php" id="quads_settings">
224
 
225
+ <?php
226
+ settings_fields( 'quads_settings' );
227
+ quads_do_settings_fields( 'quads_settings_' . $active_tab, 'quads_settings_' . $active_tab );
228
+ ?>
229
  <?php settings_errors(); ?>
230
+ <?php
231
  // do not show save button on add-on page
232
  if ($active_tab !== 'addons' && $active_tab !== 'imexport' && $active_tab !== 'help'){
233
  $other_attributes = array( 'id' => 'quads-submit-button' );
240
 
241
  }
242
  ?>
243
+ </form>
244
  <div id="quads-footer">
245
  <?php
246
 
250
  'http://wpquads.com/support/'
251
  );
252
  echo '<br/><br/>' . sprintf( __( '<strong>Ads are not showing? Read the <a href="%s" target="_blank">troubleshooting guide</a> to find out how to resolve it.<p> Looking for a quick way to clone your WordPress? Try the free plugin <a href="%s" target="_blank">WP Staging</a>.', 'quick-adsense-reloaded' ),
253
+ 'http://wpquads.com/docs/adsense-ads-are-not-showing/?utm_source=plugin&utm_campaign=wpquads-settings&utm_medium=website&utm_term=bottomlink',
254
  'https://wp-staging.com/?utm_source=wpquads_plugin&utm_campaign=footer&utm_medium=website&utm_term=bottomlink'
255
  );
256
  }
258
  </div>
259
  </div> <!-- new //-->
260
  <?php quads_get_advertising(); ?>
261
+ </div><!-- #tab_container-->
262
  <div id="quads-save-result"></div>
263
  <div class="quads-admin-debug"><?php echo quads_get_debug_messages(); ?></div>
264
  <?php echo quads_render_adsense_form(); ?>
265
+ </div><!-- .wrap -->
266
+ <?php
267
+ echo ob_get_clean();
268
  }
269
 
270
  function quads_get_debug_messages(){
includes/gutenberg/package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "quick-adsense-reloaded",
3
- "version": "1.8.16",
4
  "scripts": {
5
  "start": "cgb-scripts start",
6
  "build": "cgb-scripts build",
1
  {
2
  "name": "quick-adsense-reloaded",
3
+ "version": "1.8.17",
4
  "scripts": {
5
  "start": "cgb-scripts start",
6
  "build": "cgb-scripts build",
includes/vendor/vi/views/notices.php CHANGED
@@ -12,7 +12,9 @@
12
  <main class="quads-banner-main"><?php echo $message; ?></main>
13
  <aside class="quads-banner-sidebar-second" style="margin-right:30px;"><p style="text-align:center;"><img src="<?php echo QUADS_PLUGIN_URL; ?>assets/images/vi_quads_logo.png" width="152" height="70"></p></aside>
14
  </div>
15
- <!--<aside class="quads-banner-close"><div style="margin-top:5px;"><a href="'.admin_url().'admin.php?page=quads-settings&quads-action=close_vi_notice" class="quads-notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a></div></aside>//-->
 
 
16
  </section>
17
  </div>
18
 
12
  <main class="quads-banner-main"><?php echo $message; ?></main>
13
  <aside class="quads-banner-sidebar-second" style="margin-right:30px;"><p style="text-align:center;"><img src="<?php echo QUADS_PLUGIN_URL; ?>assets/images/vi_quads_logo.png" width="152" height="70"></p></aside>
14
  </div>
15
+ <?php if(isset($transient)){ ?>
16
+ <aside class="quads-banner-close"><div style="margin-top:5px;"><a href="<?php echo admin_url(); ?>admin.php?page=quads-settings&quads-action=close_<?php echo $transient; ?>" class="quads-notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a></div></aside>
17
+ <?php } ?>
18
  </section>
19
  </div>
20
 
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "quick-adsense-reloaded",
3
- "version": "1.8.16",
4
  "devDependencies": {
5
  "grunt": "~0.4.5",
6
  "grunt-contrib-clean": "~0.6.0",
1
  {
2
  "name": "quick-adsense-reloaded",
3
+ "version": "1.8.17",
4
  "devDependencies": {
5
  "grunt": "~0.4.5",
6
  "grunt-contrib-clean": "~0.6.0",
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.16
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.16' );
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.17
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.17' );
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.16
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,6 +129,10 @@ Alternative Installation:
129
 
130
 
131
  == Changelog ==
 
 
 
 
132
  = 1.8.16 =
133
  * Fix: HTML encoding issue
134
 
10
  Requires at least: 3.6+
11
  Tested up to: 5.3.2
12
  Requires PHP: 5.3
13
+ Stable tag: 1.8.17
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.17 =
133
+ * Fix: Added vi banner dis-missable.
134
+ * Fix: Debug Error in quads help tab.
135
+
136
  = 1.8.16 =
137
  * Fix: HTML encoding issue
138