Version Description
( 10 November 2022 ) = * Fixed: Background Ad not working after update
Download this release
Release Info
Developer | wpquads |
Plugin | AdSense Plugin WP QUADS |
Version | 2.0.64.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.64 to 2.0.64.1
- includes/render-ad-functions.php +18 -9
- includes/template-functions.php +19 -11
- quick-adsense-reloaded.php +2 -2
- readme.txt +4 -1
includes/render-ad-functions.php
CHANGED
@@ -114,9 +114,12 @@ function quads_common_head_code(){
|
|
114 |
}
|
115 |
}
|
116 |
}
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
120 |
if(isset($quads_ads['posts_data'])){
|
121 |
$revenue_sharing = quads_get_pub_id_on_revenue_percentage();
|
122 |
foreach($quads_ads['posts_data'] as $key => $value){
|
@@ -512,9 +515,12 @@ function quads_render_propeller_async( $id ) {
|
|
512 |
return apply_filters( 'quads_render_propeller_async', $html );
|
513 |
}
|
514 |
function quads_adsense_auto_ads_amp_script(){
|
515 |
-
|
516 |
-
|
517 |
-
|
|
|
|
|
|
|
518 |
if(isset($quads_ads['posts_data'])){
|
519 |
|
520 |
foreach($quads_ads['posts_data'] as $key => $value){
|
@@ -548,9 +554,12 @@ function quads_adsense_auto_ads_amp_script(){
|
|
548 |
}
|
549 |
|
550 |
function quads_adsense_auto_ads_amp_tag(){
|
551 |
-
|
552 |
-
|
553 |
-
|
|
|
|
|
|
|
554 |
$revenue_sharing = quads_get_pub_id_on_revenue_percentage();
|
555 |
if(isset($quads_ads['posts_data'])){
|
556 |
|
114 |
}
|
115 |
}
|
116 |
}
|
117 |
+
if(!isset($quads_ads)|| empty($quads_ads))
|
118 |
+
{
|
119 |
+
require_once QUADS_PLUGIN_DIR . '/admin/includes/rest-api-service.php';
|
120 |
+
$api_service = new QUADS_Ad_Setup_Api_Service();
|
121 |
+
$quads_ads = $api_service->getAdDataByParam('quads-ads');
|
122 |
+
}
|
123 |
if(isset($quads_ads['posts_data'])){
|
124 |
$revenue_sharing = quads_get_pub_id_on_revenue_percentage();
|
125 |
foreach($quads_ads['posts_data'] as $key => $value){
|
515 |
return apply_filters( 'quads_render_propeller_async', $html );
|
516 |
}
|
517 |
function quads_adsense_auto_ads_amp_script(){
|
518 |
+
if(!isset($quads_ads)|| empty($quads_ads))
|
519 |
+
{
|
520 |
+
require_once QUADS_PLUGIN_DIR . '/admin/includes/rest-api-service.php';
|
521 |
+
$api_service = new QUADS_Ad_Setup_Api_Service();
|
522 |
+
$quads_ads = $api_service->getAdDataByParam('quads-ads');
|
523 |
+
}
|
524 |
if(isset($quads_ads['posts_data'])){
|
525 |
|
526 |
foreach($quads_ads['posts_data'] as $key => $value){
|
554 |
}
|
555 |
|
556 |
function quads_adsense_auto_ads_amp_tag(){
|
557 |
+
if(!isset($quads_ads)|| empty($quads_ads))
|
558 |
+
{
|
559 |
+
require_once QUADS_PLUGIN_DIR . '/admin/includes/rest-api-service.php';
|
560 |
+
$api_service = new QUADS_Ad_Setup_Api_Service();
|
561 |
+
$quads_ads = $api_service->getAdDataByParam('quads-ads');
|
562 |
+
}
|
563 |
$revenue_sharing = quads_get_pub_id_on_revenue_percentage();
|
564 |
if(isset($quads_ads['posts_data'])){
|
565 |
|
includes/template-functions.php
CHANGED
@@ -72,9 +72,12 @@ function quads_bbp_template_before_replies_loop(){
|
|
72 |
|
73 |
|
74 |
function quads_load_ads_common($user_position,$html=''){
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
78 |
|
79 |
if(isset($quads_ads['posts_data'])){
|
80 |
foreach($quads_ads['posts_data'] as $key => $value){
|
@@ -1023,9 +1026,12 @@ function quads_filter_default_ads_new( $content ) {
|
|
1023 |
if( $off_default_ads ) { // If default ads are disabled
|
1024 |
return $content;
|
1025 |
}
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
|
|
|
|
|
|
1029 |
// Default Ads
|
1030 |
$adsArrayCus = array();
|
1031 |
if(isset($quads_ads['posts_data'])){
|
@@ -2698,9 +2704,12 @@ function quads_del_element($array, $idx) {
|
|
2698 |
|
2699 |
function quads_background_ad_last($content){
|
2700 |
|
2701 |
-
|
2702 |
-
|
2703 |
-
|
|
|
|
|
|
|
2704 |
|
2705 |
if(isset($quads_ads['posts_data'])){
|
2706 |
foreach($quads_ads['posts_data'] as $key => $value){
|
@@ -2734,8 +2743,7 @@ function quads_del_element($array, $idx) {
|
|
2734 |
if($is_on && $is_visitor_on && $post_status=='publish'){
|
2735 |
if($ads['ad_type'] == 'background_ad'){
|
2736 |
|
2737 |
-
$after_body='
|
2738 |
-
. '<div class="quads-bg-wrapper">
|
2739 |
<a style="background-image: url('.esc_attr($ads['image_src']).')" class="quads-bg-ad" target="_blank" href="'.esc_attr($ads['image_redirect_url']).'">'
|
2740 |
. '</a>'
|
2741 |
. '<div class="quads-bg-content">';
|
72 |
|
73 |
|
74 |
function quads_load_ads_common($user_position,$html=''){
|
75 |
+
if(!isset($quads_ads)|| empty($quads_ads))
|
76 |
+
{
|
77 |
+
require_once QUADS_PLUGIN_DIR . '/admin/includes/rest-api-service.php';
|
78 |
+
$api_service = new QUADS_Ad_Setup_Api_Service();
|
79 |
+
$quads_ads = $api_service->getAdDataByParam('quads-ads');
|
80 |
+
}
|
81 |
|
82 |
if(isset($quads_ads['posts_data'])){
|
83 |
foreach($quads_ads['posts_data'] as $key => $value){
|
1026 |
if( $off_default_ads ) { // If default ads are disabled
|
1027 |
return $content;
|
1028 |
}
|
1029 |
+
if(!isset($quads_ads)|| empty($quads_ads))
|
1030 |
+
{
|
1031 |
+
require_once QUADS_PLUGIN_DIR . '/admin/includes/rest-api-service.php';
|
1032 |
+
$api_service = new QUADS_Ad_Setup_Api_Service();
|
1033 |
+
$quads_ads = $api_service->getAdDataByParam('quads-ads');
|
1034 |
+
}
|
1035 |
// Default Ads
|
1036 |
$adsArrayCus = array();
|
1037 |
if(isset($quads_ads['posts_data'])){
|
2704 |
|
2705 |
function quads_background_ad_last($content){
|
2706 |
|
2707 |
+
if(!isset($quads_ads)|| empty($quads_ads))
|
2708 |
+
{
|
2709 |
+
require_once QUADS_PLUGIN_DIR . '/admin/includes/rest-api-service.php';
|
2710 |
+
$api_service = new QUADS_Ad_Setup_Api_Service();
|
2711 |
+
$quads_ads = $api_service->getAdDataByParam('quads-ads');
|
2712 |
+
}
|
2713 |
|
2714 |
if(isset($quads_ads['posts_data'])){
|
2715 |
foreach($quads_ads['posts_data'] as $key => $value){
|
2743 |
if($is_on && $is_visitor_on && $post_status=='publish'){
|
2744 |
if($ads['ad_type'] == 'background_ad'){
|
2745 |
|
2746 |
+
$after_body='<div class="quads-bg-wrapper">
|
|
|
2747 |
<a style="background-image: url('.esc_attr($ads['image_src']).')" class="quads-bg-ad" target="_blank" href="'.esc_attr($ads['image_redirect_url']).'">'
|
2748 |
. '</a>'
|
2749 |
. '<div class="quads-bg-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: 2.0.64
|
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.64' );
|
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.64.1
|
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.64.1' );
|
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.1
|
12 |
Requires PHP: 5.4
|
13 |
-
Stable tag: 2.0.64
|
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.64 ( 09 November 2022 ) =
|
211 |
* Fixed: Kebab Menu Enhancement #630
|
212 |
* Fixed: Multiple duplicate queries #631
|
10 |
Requires at least: 3.6+
|
11 |
Tested up to: 6.1
|
12 |
Requires PHP: 5.4
|
13 |
+
Stable tag: 2.0.64.1
|
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.64.1 ( 10 November 2022 ) =
|
211 |
+
* Fixed: Background Ad not working after update
|
212 |
+
|
213 |
= 2.0.64 ( 09 November 2022 ) =
|
214 |
* Fixed: Kebab Menu Enhancement #630
|
215 |
* Fixed: Multiple duplicate queries #631
|