Version Description
- New: Add up to 11 paragraph ads with WP QUADS PRO
- New: Fix tag condition in wp quads pro
- New: Support for Google Auto Ads with WP QUADS PRO
- Tweak: Rename ad tabs
Download this release
Release Info
Developer | ReneHermi |
Plugin | AdSense Plugin WP QUADS |
Version | 1.7.9 |
Comparing to | |
See all releases |
Code changes from version 1.7.8 to 1.7.9
- includes/admin/admin-notices.php +41 -0
- includes/admin/settings/register-settings.php +33 -2
- includes/template-functions.php +1 -1
- quick-adsense-reloaded.php +2 -2
- readme.txt +8 -2
includes/admin/admin-notices.php
CHANGED
@@ -25,6 +25,8 @@ function quads_admin_messages() {
|
|
25 |
if (!current_user_can('update_plugins') || quads_is_addon_page()) {
|
26 |
return;
|
27 |
}
|
|
|
|
|
28 |
|
29 |
quads_theme_notice();
|
30 |
|
@@ -687,3 +689,42 @@ function quads_hide_license_expired_notice(){
|
|
687 |
|
688 |
|
689 |
add_action('quads_hide_license_expired_notice', 'quads_hide_license_expired_notice');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
if (!current_user_can('update_plugins') || quads_is_addon_page()) {
|
26 |
return;
|
27 |
}
|
28 |
+
|
29 |
+
quads_show_update_auto_ads();
|
30 |
|
31 |
quads_theme_notice();
|
32 |
|
689 |
|
690 |
|
691 |
add_action('quads_hide_license_expired_notice', 'quads_hide_license_expired_notice');
|
692 |
+
|
693 |
+
|
694 |
+
|
695 |
+
/**
|
696 |
+
* Return update notice for Google Auto Ads
|
697 |
+
* @since 3.5.3.0
|
698 |
+
*/
|
699 |
+
function quads_show_update_auto_ads() {
|
700 |
+
|
701 |
+
|
702 |
+
$message = sprintf(__( '<h2 style="color:white;">WP QUADS & Google Auto Ads</h2>'
|
703 |
+
. 'WP QUADS Pro adds support for Google Auto Ads<br><br> Get the Pro plugin from <a href="https://wpquads.com/?utm_source=wp-admin&utm_medium=autoads-notice&utm_campaign=autoads-notice" target="_blank" style="color:#87c131;font-weight:500;">wpquads.com</a>'
|
704 |
+
, 'mashsb' ),
|
705 |
+
admin_url() . 'admin.php?page=quads-settings'
|
706 |
+
);
|
707 |
+
|
708 |
+
if( get_option( 'quads_show_notice_auto_ads' ) === 'no' ) {
|
709 |
+
return false;
|
710 |
+
}
|
711 |
+
|
712 |
+
// admin notice after updating wp quads
|
713 |
+
echo '<div class="quads-notice-gdpr update-nag" style="background-color: black;color: #87c131;padding: 20px;margin-top: 20px;border: 3px solid #87c131;">' . $message .
|
714 |
+
'<p><a href="'.admin_url().'admin.php?page=quads-settings&quads-action=hide_auto_ads_notice" class="quads_hide_gdpr" title="I got it" style="text-decoration:none;color:white;">- I Understand! Do Not Show This Hint Again -</a></a>'.
|
715 |
+
'</div>';
|
716 |
+
|
717 |
+
|
718 |
+
}
|
719 |
+
|
720 |
+
/**
|
721 |
+
* Hide GDPR notice
|
722 |
+
*
|
723 |
+
* @global array $mashsb_options
|
724 |
+
*/
|
725 |
+
function mashsb_hide_auto_ads_notice(){
|
726 |
+
global $quads_options;
|
727 |
+
// Get all settings
|
728 |
+
update_option( 'quads_show_notice_auto_ads', 'no' );
|
729 |
+
}
|
730 |
+
add_action ('quads_hide_auto_ads_notice', 'mashsb_hide_auto_ads_notice');
|
includes/admin/settings/register-settings.php
CHANGED
@@ -228,7 +228,7 @@ function quads_get_registered_settings() {
|
|
228 |
), */
|
229 |
'adsense_header' => array(
|
230 |
'id' => 'adsense_header',
|
231 |
-
'name' => '<strong>' . __( '
|
232 |
'desc' => '<div class="adsense_admin_header">' . __( 'Enter your ads below:</div>'
|
233 |
. '<ul style="margin-top:10px;">'
|
234 |
. '<li style="font-weight:600;">- <i>AdSense</i> for using <span style="font-weight:600;">AdSense Text & display Ads</span>!</li>'
|
@@ -251,7 +251,7 @@ function quads_get_registered_settings() {
|
|
251 |
),
|
252 |
'widget_header' => array(
|
253 |
'id' => 'widget_header',
|
254 |
-
'name' => '<strong>' . __( '
|
255 |
'desc' => sprintf( __( 'After creating your ads here go to <a href="%s" target="_self">Appearance->Widgets</a> and drag the WP QUADS widget into place.', 'quick-adsense-reloaded' ), admin_url() . 'widgets.php' ),
|
256 |
'type' => 'header'
|
257 |
),
|
@@ -2217,6 +2217,37 @@ function quads_adsense_code_callback( $args ) {
|
|
2217 |
$html .= '</select>';
|
2218 |
echo $html;
|
2219 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2220 |
|
2221 |
/**
|
2222 |
* VI Integration
|
228 |
), */
|
229 |
'adsense_header' => array(
|
230 |
'id' => 'adsense_header',
|
231 |
+
'name' => '<strong>' . __( 'Ads', 'quick-adsense-reloaded' ) . '</strong>',
|
232 |
'desc' => '<div class="adsense_admin_header">' . __( 'Enter your ads below:</div>'
|
233 |
. '<ul style="margin-top:10px;">'
|
234 |
. '<li style="font-weight:600;">- <i>AdSense</i> for using <span style="font-weight:600;">AdSense Text & display Ads</span>!</li>'
|
251 |
),
|
252 |
'widget_header' => array(
|
253 |
'id' => 'widget_header',
|
254 |
+
'name' => '<strong>' . __( 'Widget Ads', 'quick-adsense-reloaded' ) . '</strong>',
|
255 |
'desc' => sprintf( __( 'After creating your ads here go to <a href="%s" target="_self">Appearance->Widgets</a> and drag the WP QUADS widget into place.', 'quick-adsense-reloaded' ), admin_url() . 'widgets.php' ),
|
256 |
'type' => 'header'
|
257 |
),
|
2217 |
$html .= '</select>';
|
2218 |
echo $html;
|
2219 |
}
|
2220 |
+
/**
|
2221 |
+
* Multi Select Ajax Callback
|
2222 |
+
* This adds only active elements to the array. Useful if there are a lot of elements like tags to increase performance
|
2223 |
+
*
|
2224 |
+
* @since 1.3.8
|
2225 |
+
* @param array $args Arguments passed by the settings
|
2226 |
+
* @global $quads_options Array of all the QUADS Options
|
2227 |
+
* @return string $output dropdown
|
2228 |
+
*/
|
2229 |
+
function quads_multiselect_ajax_callback( $args = array() ) {
|
2230 |
+
global $quads_options;
|
2231 |
+
|
2232 |
+
$placeholder = !empty( $args['placeholder'] ) ? $args['placeholder'] : '';
|
2233 |
+
$selected = isset( $quads_options[$args['id']] ) ? $quads_options[$args['id']] : '';
|
2234 |
+
$checked = '';
|
2235 |
+
|
2236 |
+
$html = '<select id="quads_select_'. $args['id'] .'" name="quads_settings[' . $args['id'] . '][]" data-placeholder="' . $placeholder . '" style="width:550px;" multiple tabindex="4" class="quads-select quads-chosen-select">';
|
2237 |
+
$i = 0;
|
2238 |
+
|
2239 |
+
if (!isset($quads_options[$args['id']]) || !is_array( $quads_options[$args['id']] ) || count($quads_options[$args['id']]) == 0){
|
2240 |
+
$html .= '</select>';
|
2241 |
+
echo $html;
|
2242 |
+
return;
|
2243 |
+
}
|
2244 |
+
|
2245 |
+
foreach ( $quads_options[$args['id']] as $key => $value ) {
|
2246 |
+
$html .= '<option value="' . $key . '" selected="selected">' . $value . '</option>';
|
2247 |
+
};
|
2248 |
+
$html .= '</select>';
|
2249 |
+
echo $html;
|
2250 |
+
}
|
2251 |
|
2252 |
/**
|
2253 |
* VI Integration
|
includes/template-functions.php
CHANGED
@@ -365,7 +365,7 @@ function quads_filter_default_ads( $content ) {
|
|
365 |
$adsArrayCus = $quads_filtered['AdsIdCus'];
|
366 |
|
367 |
// Create paragraph ads
|
368 |
-
$number =
|
369 |
|
370 |
for ( $i = $number; $i >= 1; $i-- ) {
|
371 |
if( !empty( $paragraph['status'][$i] ) ) {
|
365 |
$adsArrayCus = $quads_filtered['AdsIdCus'];
|
366 |
|
367 |
// Create paragraph ads
|
368 |
+
$number = 11;
|
369 |
|
370 |
for ( $i = $number; $i >= 1; $i-- ) {
|
371 |
if( !empty( $paragraph['status'][$i] ) ) {
|
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: Rene Hermenau, WP-Staging
|
8 |
* Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
|
9 |
-
* Version: 1.7.
|
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', '1.7.
|
42 |
}
|
43 |
|
44 |
// Plugin name
|
6 |
* Description: Insert Google AdSense and other ad formats fully automatic into your website
|
7 |
* Author: Rene Hermenau, WP-Staging
|
8 |
* Author URI: https://wordpress.org/plugins/quick-adsense-reloaded/
|
9 |
+
* Version: 1.7.9
|
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', '1.7.9' );
|
42 |
}
|
43 |
|
44 |
// Plugin name
|
readme.txt
CHANGED
@@ -10,14 +10,14 @@ Tags: adsense, ads, ad, google adsense, advertising, amp, ad injection, ad inser
|
|
10 |
Requires at least: 3.6+
|
11 |
Tested up to: 4.9
|
12 |
Requires PHP: 5.3
|
13 |
-
Stable tag: 1.7.
|
14 |
|
15 |
Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
|
16 |
|
17 |
== Description ==
|
18 |
|
19 |
#### WPQUADS - Quick AdSense Reloaded
|
20 |
-
This free Google AdSense inserting plugin is an improvement of the successfull but discontinued plugin Quick AdSense which is used on more than 100.000 websites.
|
21 |
WP QUADS is coded well with no overhead and is used on huge websites with millions of monthly page impressions.
|
22 |
<br />
|
23 |
[See all features](https://wpquads.com/)
|
@@ -130,6 +130,12 @@ Alternative Installation:
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
= 1.7.8 =
|
134 |
* Fix: License notice shown even though license is not expired
|
135 |
* Fix: Ads are injected into blog loop because of forgotten development code
|
10 |
Requires at least: 3.6+
|
11 |
Tested up to: 4.9
|
12 |
Requires PHP: 5.3
|
13 |
+
Stable tag: 1.7.9
|
14 |
|
15 |
Quick Adsense Reloaded! Quickest way to insert Google AdSense & other ads into your website. Google AdSense integration with Google AMP support
|
16 |
|
17 |
== Description ==
|
18 |
|
19 |
#### WPQUADS - Quick AdSense Reloaded
|
20 |
+
This free Google AdSense advanced inserting plugin is an improvement of the successfull but discontinued plugin Quick AdSense which is used on more than 100.000 websites.
|
21 |
WP QUADS is coded well with no overhead and is used on huge websites with millions of monthly page impressions.
|
22 |
<br />
|
23 |
[See all features](https://wpquads.com/)
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 1.7.9 =
|
134 |
+
* New: Add up to 11 paragraph ads with WP QUADS PRO
|
135 |
+
* New: Fix tag condition in wp quads pro
|
136 |
+
* New: Support for Google Auto Ads with WP QUADS PRO
|
137 |
+
* Tweak: Rename ad tabs
|
138 |
+
|
139 |
= 1.7.8 =
|
140 |
* Fix: License notice shown even though license is not expired
|
141 |
* Fix: Ads are injected into blog loop because of forgotten development code
|