AdSense Plugin WP QUADS - Version 2.0.54

Version Description

( 13 June 2022 ) = * Fixed: Loading... appears before Ad. #563

Download this release

Release Info

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

Code changes from version 2.0.53 to 2.0.54

includes/render-ad-functions.php CHANGED
@@ -313,6 +313,29 @@ function quads_render_ad_image_async( $id ) {
313
  return apply_filters( 'quads_render_ad_image_async', $html );
314
  }
315
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  /**
317
  * Render Taboola
318
  *
@@ -596,7 +619,7 @@ function quads_render_google_async_new( $id ) {
596
 
597
  if ( isset($quads_options['lazy_load_global']) && $quads_options['lazy_load_global']== true) {
598
  $html = str_replace( 'class="adsbygoogle"', '', $html );
599
- $html = str_replace( '></ins>', '><span>Loading...</span></ins></div>', $html );
600
  $code = 'instant= new adsenseLoader( \'#quads-' . esc_attr($id) . '-place\', {
601
  onLoad: function( ad ){
602
  if (ad.classList.contains("quads-ll")) {
@@ -1063,6 +1086,14 @@ function quads_is_ad_image( $id, $string ) {
1063
  }
1064
  return false;
1065
  }
 
 
 
 
 
 
 
 
1066
  /**
1067
  * Check if ad code is Taboola
1068
  *
313
  return apply_filters( 'quads_render_ad_image_async', $html );
314
  }
315
 
316
+ function quads_render_ad_video_async( $id ) {
317
+ global $quads_options;
318
+
319
+ $html = "\n <!-- " . QUADS_NAME . " v." . QUADS_VERSION . " Content Yandex async --> \n\n";
320
+ $vid_width = isset($quads_options['ads'][$id]['image_width']) ? $quads_options['ads'][$id]['image_width'] : '' ;
321
+ $vid_height = isset($quads_options['ads'][$id]['image_height']) ? $quads_options['ads'][$id]['image_height'] : '' ;
322
+ if(isset($quads_options['ads'][$id]['image_src']) && !empty($quads_options['ads'][$id]['image_src'])){
323
+ $html .= '
324
+ <iframe width="'.$vid_width.'" height="'.$vid_height.'" src="'.$quads_options['ads'][$id]['image_src'].'"
325
+ frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
326
+ allowfullscreen></iframe>
327
+ ';
328
+ }
329
+ else{
330
+ $html .= '<iframe width="560" height="315" src="'.$quads_options['ads'][$id]['image_src'].'"
331
+ frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
332
+ allowfullscreen></iframe>';
333
+ }
334
+
335
+ $html .= "\n <!-- end WP QUADS --> \n\n";
336
+ return apply_filters( 'quads_render_ad_image_async', $html );
337
+ }
338
+
339
  /**
340
  * Render Taboola
341
  *
619
 
620
  if ( isset($quads_options['lazy_load_global']) && $quads_options['lazy_load_global']== true) {
621
  $html = str_replace( 'class="adsbygoogle"', '', $html );
622
+ $html = str_replace( '></ins>', '><span></span></ins></div>', $html );
623
  $code = 'instant= new adsenseLoader( \'#quads-' . esc_attr($id) . '-place\', {
624
  onLoad: function( ad ){
625
  if (ad.classList.contains("quads-ll")) {
1086
  }
1087
  return false;
1088
  }
1089
+ function quads_is_ad_video( $id, $string ) {
1090
+ global $quads_options;
1091
+
1092
+ if( isset($quads_options['ads'][$id]['ad_type']) && $quads_options['ads'][$id]['ad_type'] === 'video_ads') {
1093
+ return true;
1094
+ }
1095
+ return false;
1096
+ }
1097
  /**
1098
  * Check if ad code is Taboola
1099
  *
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: 2.0.53
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
@@ -38,7 +38,7 @@ if( !defined( 'ABSPATH' ) )
38
 
39
  // Plugin version
40
  if( !defined( 'QUADS_VERSION' ) ) {
41
- define( 'QUADS_VERSION', '2.0.53' );
42
  }
43
 
44
  // 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: 2.0.54
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
38
 
39
  // Plugin version
40
  if( !defined( 'QUADS_VERSION' ) ) {
41
+ define( 'QUADS_VERSION', '2.0.54' );
42
  }
43
 
44
  // Plugin name
readme.txt CHANGED
@@ -10,7 +10,7 @@ Tags: ad manager, ads, adsense, amp, banner
10
  Requires at least: 3.6+
11
  Tested up to: 6.0
12
  Requires PHP: 5.4
13
- Stable tag: 2.0.53
14
 
15
  Ads & AdSense Ad Plugin is the quickest way to insert Google AdSense & Banner ads on your site. Innovative features, Active Development & Fast Support.
16
 
@@ -207,6 +207,9 @@ Alternative Installation:
207
 
208
  == Changelog ==
209
 
 
 
 
210
  = 2.0.53 ( 04 June 2022 ) =
211
  * Added: An Option to add Ad Before HTML Tag #531
212
  * Added: An Option to set margin as left and right #539
@@ -215,6 +218,7 @@ Alternative Installation:
215
  * Added: Video Ads Support. #543
216
  * Fixed: Updated mail id. #554
217
  * Fixed: Custom position ads not working #553
 
218
 
219
  = 2.0.52 ( 20 May 2022 ) =
220
  * Fixed: Tooltip improved. #534
10
  Requires at least: 3.6+
11
  Tested up to: 6.0
12
  Requires PHP: 5.4
13
+ Stable tag: 2.0.54
14
 
15
  Ads & AdSense Ad Plugin is the quickest way to insert Google AdSense & Banner ads on your site. Innovative features, Active Development & Fast Support.
16
 
207
 
208
  == Changelog ==
209
 
210
+ = 2.0.54 ( 13 June 2022 ) =
211
+ * Fixed: Loading... appears before Ad. #563
212
+
213
  = 2.0.53 ( 04 June 2022 ) =
214
  * Added: An Option to add Ad Before HTML Tag #531
215
  * Added: An Option to set margin as left and right #539
218
  * Added: Video Ads Support. #543
219
  * Fixed: Updated mail id. #554
220
  * Fixed: Custom position ads not working #553
221
+ * Fixed: Sitka theme customiser breaking issue #529
222
 
223
  = 2.0.52 ( 20 May 2022 ) =
224
  * Fixed: Tooltip improved. #534