Version Description
- Fixed a problem with wp_enqueue_script wich was called too early.
- Fixed a problem with advertising, which should stay close when you close it.
Download this release
Release Info
Developer | jdailey |
Plugin | Custom Sidebars – Dynamic Widget Area Manager |
Version | 3.0.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.0.0 to 3.0.0.1
- customsidebars.php +1 -1
- inc/class-custom-sidebars-advertisement.php +40 -26
- js/cs-cloning.js +2 -2
- js/cs-visibility.js +2 -2
- js/cs.js +2 -2
- readme.txt +30 -18
customsidebars.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Custom Sidebars
|
4 |
* Plugin URI: https://wordpress.org/plugins/custom-sidebars/
|
5 |
* Description: Allows you to create widgetized areas and custom sidebars. Replace whole sidebars or single widgets for specific posts and pages.
|
6 |
-
* Version: 3.0.0.
|
7 |
* Author: WPMU DEV
|
8 |
* Author URI: http://premium.wpmudev.org/
|
9 |
* Textdomain: custom-sidebars
|
3 |
* Plugin Name: Custom Sidebars
|
4 |
* Plugin URI: https://wordpress.org/plugins/custom-sidebars/
|
5 |
* Description: Allows you to create widgetized areas and custom sidebars. Replace whole sidebars or single widgets for specific posts and pages.
|
6 |
+
* Version: 3.0.0.1
|
7 |
* Author: WPMU DEV
|
8 |
* Author URI: http://premium.wpmudev.org/
|
9 |
* Textdomain: custom-sidebars
|
inc/class-custom-sidebars-advertisement.php
CHANGED
@@ -36,11 +36,18 @@ class CustomSidebarsAdvertisement extends CustomSidebars {
|
|
36 |
if ( ! is_admin() ) {
|
37 |
return;
|
38 |
}
|
39 |
-
|
40 |
add_action( 'admin_head-widgets.php', array( $this, 'init_admin_head' ) );
|
41 |
add_action( 'wp_ajax_custom_sidebars_advertisement_dismiss', array( $this, 'dismiss' ) );
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
/**
|
45 |
* Save dismiss decision, no more show it.
|
46 |
*
|
@@ -92,6 +99,37 @@ class CustomSidebarsAdvertisement extends CustomSidebars {
|
|
92 |
*/
|
93 |
public function admin_notices() {
|
94 |
$user_id = get_current_user_id();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
$url = add_query_arg(
|
96 |
array(
|
97 |
'utm_source' => 'custom_sidebar_uf_ad',
|
@@ -102,17 +140,7 @@ class CustomSidebarsAdvertisement extends CustomSidebars {
|
|
102 |
);
|
103 |
?>
|
104 |
<script type="text/javascript">
|
105 |
-
jQuery(document).
|
106 |
-
jQuery.ajax({
|
107 |
-
url: ajaxurl,
|
108 |
-
data: {
|
109 |
-
action: 'custom_sidebars_advertisement_dismiss',
|
110 |
-
_wpnonce: '<?php echo wp_create_nonce( $this->nonce_name . $user_id ) ?>',
|
111 |
-
user_id: <?php echo $user_id ?>
|
112 |
-
}
|
113 |
-
})
|
114 |
-
})
|
115 |
-
.ready( function() {
|
116 |
setTimeout( function() {
|
117 |
var template = wp.template('custom-sidebars-upfront');
|
118 |
jQuery(".sidebars-column-1 .inner").append( template() );
|
@@ -127,20 +155,6 @@ class CustomSidebarsAdvertisement extends CustomSidebars {
|
|
127 |
</div>
|
128 |
</div>
|
129 |
</script>
|
130 |
-
<div class="notice is-dismissible custom-sidebars-wp-checkup">
|
131 |
-
<p><?php _e( '<b>Warning:</b> Some of your plugins may be slowing down your site. Run a free security and performance scan with WP Checkup.', 'custom-sidebars' ); ?></p>
|
132 |
-
<form method="get" action="https://premium.wpmudev.org/wp-checkup/">
|
133 |
-
<input type="hidden" name="external-url" value="1" />
|
134 |
-
<input type="text" name="the-url" value="<?php echo esc_url( get_option( 'home' ) ); ?>" />
|
135 |
-
<input type="submit" value="<?php esc_attr_e( 'Scan', 'custom-sidebars' ); ?>" />
|
136 |
-
<input type="hidden" name="utm_source" value="custom_sidebar_ad" />
|
137 |
-
<input type="hidden" name="utm_campaign" value="custom_sidebar_plugin" />
|
138 |
-
<input type="hidden" name="utm_medium" value="Custom Sidebars Plugin" />
|
139 |
-
</form>
|
140 |
-
<button type="button" class="notice-dismiss">
|
141 |
-
<span class="screen-reader-text">Dismiss this notice.</span>
|
142 |
-
</button>
|
143 |
-
</div>
|
144 |
<?php
|
145 |
}
|
146 |
};
|
36 |
if ( ! is_admin() ) {
|
37 |
return;
|
38 |
}
|
39 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
40 |
add_action( 'admin_head-widgets.php', array( $this, 'init_admin_head' ) );
|
41 |
add_action( 'wp_ajax_custom_sidebars_advertisement_dismiss', array( $this, 'dismiss' ) );
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* Enqueue admin scripts
|
46 |
+
*/
|
47 |
+
public function admin_enqueue_scripts() {
|
48 |
+
wp_enqueue_script( 'wp-util' );
|
49 |
+
}
|
50 |
+
|
51 |
/**
|
52 |
* Save dismiss decision, no more show it.
|
53 |
*
|
99 |
*/
|
100 |
public function admin_notices() {
|
101 |
$user_id = get_current_user_id();
|
102 |
+
$state = get_user_meta( $user_id, $this->dismiss_name, true );
|
103 |
+
if ( ! $state ) {
|
104 |
+
?>
|
105 |
+
<script type="text/javascript">
|
106 |
+
jQuery(document).on( 'click', '.custom-sidebars-wp-checkup .notice-dismiss', function() {
|
107 |
+
jQuery.ajax({
|
108 |
+
url: ajaxurl,
|
109 |
+
data: {
|
110 |
+
action: '<?php echo esc_attr( $this->dismiss_name ); ?>',
|
111 |
+
_wpnonce: '<?php echo wp_create_nonce( $this->nonce_name . $user_id ) ?>',
|
112 |
+
user_id: <?php echo $user_id ?>
|
113 |
+
}
|
114 |
+
})
|
115 |
+
});
|
116 |
+
</script>
|
117 |
+
<div class="notice is-dismissible custom-sidebars-wp-checkup">
|
118 |
+
<p><?php _e( '<b>Warning:</b> Some of your plugins may be slowing down your site. Run a free security and performance scan with WP Checkup.', 'custom-sidebars' ); ?></p>
|
119 |
+
<form method="get" action="https://premium.wpmudev.org/wp-checkup/">
|
120 |
+
<input type="hidden" name="external-url" value="1" />
|
121 |
+
<input type="text" name="the-url" value="<?php echo esc_url( get_option( 'home' ) ); ?>" />
|
122 |
+
<input type="submit" value="<?php esc_attr_e( 'Scan', 'custom-sidebars' ); ?>" />
|
123 |
+
<input type="hidden" name="utm_source" value="custom_sidebar_ad" />
|
124 |
+
<input type="hidden" name="utm_campaign" value="custom_sidebar_plugin" />
|
125 |
+
<input type="hidden" name="utm_medium" value="Custom Sidebars Plugin" />
|
126 |
+
</form>
|
127 |
+
<button type="button" class="notice-dismiss">
|
128 |
+
<span class="screen-reader-text">Dismiss this notice.</span>
|
129 |
+
</button>
|
130 |
+
</div>
|
131 |
+
<?php
|
132 |
+
}
|
133 |
$url = add_query_arg(
|
134 |
array(
|
135 |
'utm_source' => 'custom_sidebar_uf_ad',
|
140 |
);
|
141 |
?>
|
142 |
<script type="text/javascript">
|
143 |
+
jQuery(document).ready( function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
setTimeout( function() {
|
145 |
var template = wp.template('custom-sidebars-upfront');
|
146 |
jQuery(".sidebars-column-1 .inner").append( template() );
|
155 |
</div>
|
156 |
</div>
|
157 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
<?php
|
159 |
}
|
160 |
};
|
js/cs-cloning.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
/*! Custom Sidebars -
|
2 |
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
-
* Copyright (c)
|
4 |
/*global jQuery:false */
|
5 |
/*global window:false */
|
6 |
/*global document:false */
|
1 |
+
/*! Custom Sidebars - v3.0.0.1
|
2 |
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
+
* Copyright (c) 2017; * Licensed GPLv2+ */
|
4 |
/*global jQuery:false */
|
5 |
/*global window:false */
|
6 |
/*global document:false */
|
js/cs-visibility.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
/*! Custom Sidebars -
|
2 |
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
-
* Copyright (c)
|
4 |
/*global jQuery:false */
|
5 |
/*global window:false */
|
6 |
/*global document:false */
|
1 |
+
/*! Custom Sidebars - v3.0.0.1
|
2 |
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
+
* Copyright (c) 2017; * Licensed GPLv2+ */
|
4 |
/*global jQuery:false */
|
5 |
/*global window:false */
|
6 |
/*global document:false */
|
js/cs.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
/*! Custom Sidebars -
|
2 |
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
-
* Copyright (c)
|
4 |
/*global window:false */
|
5 |
/*global console:false */
|
6 |
/*global document:false */
|
1 |
+
/*! Custom Sidebars - v3.0.0.1
|
2 |
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
+
* Copyright (c) 2017; * Licensed GPLv2+ */
|
4 |
/*global window:false */
|
5 |
/*global console:false */
|
6 |
/*global document:false */
|
readme.txt
CHANGED
@@ -1,17 +1,21 @@
|
|
1 |
-
=== Custom Sidebars ===
|
2 |
Contributors: WPMUDEV, marquex, WPMUDEV-Support2, WPMUDEV-Support1, WPMUDEV-Support6, WPMUDEV-Support4, iworks
|
3 |
-
Tags: custom
|
4 |
Requires at least: 3.3
|
5 |
-
Tested up to: 4.7.
|
6 |
-
Stable tag: 3.0.0.
|
7 |
|
8 |
-
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
|
16 |
[youtube https://www.youtube.com/watch?v=7kgqwceGynA]
|
17 |
|
@@ -25,7 +29,7 @@ Custom Sidebars allows you to display custom widget configurations on any page,
|
|
25 |
|
26 |
Every part of Custom Sidebars integrates seamlessly with the Widgets menu for simplicity and control. No confusing settings pages or added menu items, just simple core integration.
|
27 |
|
28 |
-
<blockquote><h4>Simple
|
29 |
<br>
|
30 |
<strong>Custom Sidebars Includes:</strong>
|
31 |
<ul>
|
@@ -33,25 +37,25 @@ Every part of Custom Sidebars integrates seamlessly with the Widgets menu for si
|
|
33 |
<li>Set custom widgets for individual posts and pages, categories, post types, and archives</li>
|
34 |
<li>Seamless integration with the WordPress Widgets menu</li>
|
35 |
<li>Works with well-coded themes and doesn't slow down your site</li>
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
</ul>
|
41 |
|
42 |
-
Install Custom Sidebars and see for yourself why it's the most popular widget extension plugin available for WordPress with over 200,000
|
43 |
<br>
|
44 |
</blockquote>
|
45 |
|
46 |
-
<h4>
|
47 |
<br>
|
48 |
-
If you want
|
49 |
<ul>
|
50 |
-
<li>
|
51 |
<li><a href="https://premium.wpmudev.org/support/">24/7 support</a> for all things WordPress</li>
|
52 |
-
<li><a href="http://premium.wpmudev.org/join/">100+ premium plugins
|
53 |
</ul>
|
54 |
-
Get
|
55 |
|
56 |
== Screenshots ==
|
57 |
|
@@ -116,6 +120,14 @@ If you are running a earlier version of WordPress download Custom Sidebars 0.8.2
|
|
116 |
|
117 |
== Changelog ==
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
= 2.1.2.0 =
|
120 |
* Fixed a problem with empty selectors.
|
121 |
* Remove unnecessary HTTP header - it is only needed when we run cs-explains.
|
1 |
+
=== Custom Sidebars – Dynamic Widget Area Manager ===
|
2 |
Contributors: WPMUDEV, marquex, WPMUDEV-Support2, WPMUDEV-Support1, WPMUDEV-Support6, WPMUDEV-Support4, iworks
|
3 |
+
Tags: sidebar, widget, footer, custom, flexible layout, dynamic widgets, manage sidebars, replace widgets, custom widget area
|
4 |
Requires at least: 3.3
|
5 |
+
Tested up to: 4.7.3
|
6 |
+
Stable tag: 3.0.0.1
|
7 |
|
8 |
+
Flexible sidebars for custom widget configurations on every page, post and custom post type on your site.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
+
<strong>Manage and replace sidebars and other widget areas on your site with Custom Sidebars, a flexible widget area manager.</strong>
|
13 |
|
14 |
+
Make custom sidebar configurations and be able to choose what widgets display on each page or post of your site.
|
15 |
+
|
16 |
+
= Display Different Sidebars on Pages and Posts =
|
17 |
+
|
18 |
+
Custom Sidebars allows you to dynamically display custom widget configurations on any page, post, category, post type, or archive page.
|
19 |
|
20 |
[youtube https://www.youtube.com/watch?v=7kgqwceGynA]
|
21 |
|
29 |
|
30 |
Every part of Custom Sidebars integrates seamlessly with the Widgets menu for simplicity and control. No confusing settings pages or added menu items, just simple core integration.
|
31 |
|
32 |
+
<blockquote><h4>A Simple Flexible Sidebar Manager</h4>
|
33 |
<br>
|
34 |
<strong>Custom Sidebars Includes:</strong>
|
35 |
<ul>
|
37 |
<li>Set custom widgets for individual posts and pages, categories, post types, and archives</li>
|
38 |
<li>Seamless integration with the WordPress Widgets menu</li>
|
39 |
<li>Works with well-coded themes and doesn't slow down your site</li>
|
40 |
+
<li>Set individual widget visibility – for guests, by user role, by post type, for special pages or categories</li>
|
41 |
+
<li>Author specific sidebars – display a custom sidebar for each of your authors</li>
|
42 |
+
<li>Clone and sync widget settings – quickly edit complex configurations</li>
|
43 |
+
<li>Import and export custom sidebars – backup and share sidebars</li>
|
44 |
</ul>
|
45 |
|
46 |
+
Install Custom Sidebars and see for yourself why it's the most popular widget extension plugin available for WordPress with over 200,000 active installs.
|
47 |
<br>
|
48 |
</blockquote>
|
49 |
|
50 |
+
<h4>Custom Sidebars Is Fully-Loaded</h4>
|
51 |
<br>
|
52 |
+
If you run a design agency, or just want to get rid of the ads, checkout <a href="https://premium.wpmudev.org/project/custom-sidebars-pro/">Custom Sidebars Pro:</a>
|
53 |
<ul>
|
54 |
+
<li>Ad free</li>
|
55 |
<li><a href="https://premium.wpmudev.org/support/">24/7 support</a> for all things WordPress</li>
|
56 |
+
<li><a href="http://premium.wpmudev.org/join/">Upfront themes, 100+ premium plugins and WPMU DEV services</a> – Including speed optimization, managed backups with 10GB cloud storage and security hardening</li>
|
57 |
</ul>
|
58 |
+
Get <a href="https://premium.wpmudev.org/project/custom-sidebars-pro/">Custom Sidebars</a> for targeted marketing, better widgets for each level of your membership site, or just to clean up bloated content on each page. Download and try it for free!
|
59 |
|
60 |
== Screenshots ==
|
61 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 3.0.0.1 =
|
124 |
+
* Fixed a problem with wp_enqueue_script wich was called too early.
|
125 |
+
* Fixed a problem with advertising, which should stay close when you close it.
|
126 |
+
|
127 |
+
= 3.0.0.0 =
|
128 |
+
* Fixed a conflicting with other plugins.
|
129 |
+
* Improved functionality, free and pro versions have now the same functionality. The only difference is that the free version includes ads.
|
130 |
+
|
131 |
= 2.1.2.0 =
|
132 |
* Fixed a problem with empty selectors.
|
133 |
* Remove unnecessary HTTP header - it is only needed when we run cs-explains.
|