AdSense Plugin WP QUADS - Version 1.5.6

Version Description

  • Fix: License tab not shown after update of WP QUADS to version 1.5.5 and WP QUADS PRO is lower than version 1.3.3
  • Fix: Quicktags button in editor not shown
  • Fix: Margin option not working when ad layout floating option is default
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.5 to 1.5.6

includes/admin/settings/register-settings.php CHANGED
@@ -576,7 +576,7 @@ function quads_get_settings_tabs() {
576
  }
577
 
578
 
579
- if( !empty( $settings['licenses'] ) && quads_is_extra() ) {
580
  $tabs['licenses'] = __( 'Licenses', 'quick-adsense-reloaded' );
581
  }
582
 
576
  }
577
 
578
 
579
+ if( !empty( $settings['licenses'] ) && quads_is_extra() || quads_is_advanced() ) {
580
  $tabs['licenses'] = __( 'Licenses', 'quick-adsense-reloaded' );
581
  }
582
 
includes/scripts.php CHANGED
@@ -213,7 +213,7 @@ function quads_ads_head_script() {
213
  if(typeof(edButtons)!='undefined') {
214
  edadd = edButtons.length;
215
  var dynads={"all":[
216
- <?php for ($i=1;$i<=count( quads_get_ads() )-1;$i++) { if( isset($quads_options['ad'.$i]['code']) && $quads_options['ad'.$i]['code'] !='' ){echo('"1",');}else{echo('"0",');}; } ?>
217
  "0"]};
218
  for(i=1;i<=<?php echo count( quads_get_ads() ) -1; ?>;i++) {
219
  if(dynads.all[i-1]=="1") {
213
  if(typeof(edButtons)!='undefined') {
214
  edadd = edButtons.length;
215
  var dynads={"all":[
216
+ <?php for ($i=1;$i<=count( quads_get_ads() )-1;$i++) { if( isset($quads_options['ads']['ad'.$i]['code']) && $quads_options['ads']['ad'.$i]['code'] !='' ){echo('"1",');}else{echo('"0",');}; } ?>
217
  "0"]};
218
  for(i=1;i<=<?php echo count( quads_get_ads() ) -1; ?>;i++) {
219
  if(dynads.all[i-1]=="1") {
includes/shortcodes.php CHANGED
@@ -44,7 +44,7 @@ function quads_shortcode_display_ad( $atts ) {
44
  'float:left;margin:%1$dpx %1$dpx %1$dpx 0;',
45
  'float:none;margin:%1$dpx 0 %1$dpx 0;text-align:center;',
46
  'float:right;margin:%1$dpx 0 %1$dpx %1$dpx;',
47
- 'float:none;margin:0px;');
48
 
49
  $adsalign = isset($quads_options['ads']['ad' . $id]['align']) ? $quads_options['ads']['ad' . $id]['align'] : 3; // default
50
  $adsmargin = isset( $quads_options['ads']['ad' . $id]['margin'] ) ? $quads_options['ads']['ad' . $id]['margin'] : '3'; // default
44
  'float:left;margin:%1$dpx %1$dpx %1$dpx 0;',
45
  'float:none;margin:%1$dpx 0 %1$dpx 0;text-align:center;',
46
  'float:right;margin:%1$dpx 0 %1$dpx %1$dpx;',
47
+ 'float:none;margin:%1$dpx;');
48
 
49
  $adsalign = isset($quads_options['ads']['ad' . $id]['align']) ? $quads_options['ads']['ad' . $id]['align'] : 3; // default
50
  $adsmargin = isset( $quads_options['ads']['ad' . $id]['margin'] ) ? $quads_options['ads']['ad' . $id]['margin'] : '3'; // default
includes/template-functions.php CHANGED
@@ -721,14 +721,17 @@ function quads_get_inline_ad_style( $id ) {
721
  'float:left;margin:%1$dpx %1$dpx %1$dpx 0;',
722
  'float:none;margin:%1$dpx 0 %1$dpx 0;text-align:center;',
723
  'float:right;margin:%1$dpx 0 %1$dpx %1$dpx;',
724
- 'float:none;margin:0px;');
725
 
726
  // Alignment
727
- $adsalign = $quads_options['ads']['ad' . $id]['align'];
728
 
729
  // Margin
730
- $adsmargin = isset( $quads_options['ads']['ad' . $id]['margin'] ) ? $quads_options['ads']['ad' . $id]['margin'] : '3'; // default optin = 3
731
- $margin = sprintf( $styleArray[( int ) $adsalign], $adsmargin );
 
 
 
732
 
733
  // Do not create any inline style on AMP site
734
  $style = !quads_is_amp_endpoint() ? apply_filters( 'quads_filter_margins', $margin, 'ad' . $id ) : '';
721
  'float:left;margin:%1$dpx %1$dpx %1$dpx 0;',
722
  'float:none;margin:%1$dpx 0 %1$dpx 0;text-align:center;',
723
  'float:right;margin:%1$dpx 0 %1$dpx %1$dpx;',
724
+ 'float:none;margin:%1$dpx;');
725
 
726
  // Alignment
727
+ $adsalign = ( int )$quads_options['ads']['ad' . $id]['align'];
728
 
729
  // Margin
730
+ $adsmargin = isset( $quads_options['ads']['ad' . $id]['margin'] ) ? $quads_options['ads']['ad' . $id]['margin'] : '3'; // default option = 3
731
+ $margin = sprintf( $styleArray[$adsalign], $adsmargin );
732
+
733
+ //wp_die($quads_options['ads']['ad' . $id]['margin']);
734
+ //wp_die('ad'.$id);
735
 
736
  // Do not create any inline style on AMP site
737
  $style = !quads_is_amp_endpoint() ? apply_filters( 'quads_filter_margins', $margin, 'ad' . $id ) : '';
quick-adsense-reloaded.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: Insert Google AdSense or any Ads code into your website. A fork of Quick AdSense
7
  * Author: Rene Hermenau, WP-Staging
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
- * Version: 1.5.5
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
@@ -35,7 +35,7 @@ if( !defined( 'ABSPATH' ) )
35
 
36
  // Plugin version
37
  if( !defined( 'QUADS_VERSION' ) ) {
38
- define( 'QUADS_VERSION', '1.5.5' );
39
  }
40
 
41
  // Plugin name
@@ -61,9 +61,6 @@ $ad_count_custom = 0; // Number of active custom ads which are shown on the site
61
  $ad_count_widget = 0; // Number of active ads in widgets
62
  $AdsId = array(); // Array of active ad id's
63
  $maxWidgets = 10; // number of widgets
64
- //$maxAds = 10; // number of regular ads
65
- //$AdsWidName = 'AdsWidget%d (WP QUADS)';
66
- //$AdsWidName = 'AdsWidget%d (Quick Adsense Reloaded)';
67
 
68
 
69
  if( !class_exists( 'QuickAdsenseReloaded' ) ) :
6
  * Description: Insert Google AdSense or any Ads code into your website. A fork of Quick AdSense
7
  * Author: Rene Hermenau, WP-Staging
8
  * Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
9
+ * Version: 1.5.6
10
  * Text Domain: quick-adsense-reloaded
11
  * Domain Path: languages
12
  * Credits: WP QUADS - Quick AdSense Reloaded is a fork of Quick AdSense
35
 
36
  // Plugin version
37
  if( !defined( 'QUADS_VERSION' ) ) {
38
+ define( 'QUADS_VERSION', '1.5.6' );
39
  }
40
 
41
  // Plugin name
61
  $ad_count_widget = 0; // Number of active ads in widgets
62
  $AdsId = array(); // Array of active ad id's
63
  $maxWidgets = 10; // number of widgets
 
 
 
64
 
65
 
66
  if( !class_exists( 'QuickAdsenseReloaded' ) ) :
readme.txt CHANGED
@@ -9,7 +9,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inserter, ad manager
10
  Requires at least: 3.6+
11
  Tested up to: 4.8
12
- Stable tag: 1.5.5
13
 
14
  Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
15
 
@@ -129,6 +129,11 @@ Alternative Installation:
129
 
130
  == Changelog ==
131
 
 
 
 
 
 
132
  = 1.5.5 =
133
  * Fix: No ad position visible after new installation
134
  * Fix: Show Add new Ad button only when wp quads pro is installed
9
  Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inserter, ad manager
10
  Requires at least: 3.6+
11
  Tested up to: 4.8
12
+ Stable tag: 1.5.6
13
 
14
  Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
15
 
129
 
130
  == Changelog ==
131
 
132
+ = 1.5.6 =
133
+ * Fix: License tab not shown after update of WP QUADS to version 1.5.5 and WP QUADS PRO is lower than version 1.3.3
134
+ * Fix: Quicktags button in editor not shown
135
+ * Fix: Margin option not working when ad layout floating option is default
136
+
137
  = 1.5.5 =
138
  * Fix: No ad position visible after new installation
139
  * Fix: Show Add new Ad button only when wp quads pro is installed