Custom Sidebars – Dynamic Widget Area Manager - Version 3.35

Version Description

  • 2022-01-11
  • Improved the classic widgets screen detection - "Classic Widgets" plugin is no longer necessary if you add appropriate filters via some other plugin or theme
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Custom Sidebars – Dynamic Widget Area Manager
Version 3.35
Comparing to
See all releases

Code changes from version 3.32 to 3.35

assets/css/cs.css CHANGED
@@ -270,13 +270,24 @@
270
  text-transform: uppercase;
271
  }
272
  .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup {
273
- background-color: #fff;
274
  }
275
  .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner {
276
  font-size: 1.2em;
277
  padding: 20px 20px 20px 20px;
278
  background: #ffde66;
279
  }
 
 
 
 
 
 
 
 
 
 
 
280
  .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner h4 {
281
  color: #222;
282
  font-size: 1.2em;
270
  text-transform: uppercase;
271
  }
272
  .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup {
273
+ background-color: #e4e4e4;
274
  }
275
  .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner {
276
  font-size: 1.2em;
277
  padding: 20px 20px 20px 20px;
278
  background: #ffde66;
279
  }
280
+ .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner.cs-wpfssl {
281
+ background: #fff;
282
+ border: 3px solid #42982e;
283
+ margin-bottom: 25px;
284
+ }
285
+
286
+ .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner.cs-wpfssl img {
287
+ max-width: 90%;
288
+ margin: 25px 0;
289
+ }
290
+
291
  .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner h4 {
292
  color: #222;
293
  font-size: 1.2em;
assets/img/wp-force-ssl.png ADDED
Binary file
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.32
7
  * Author: WebFactory Ltd
8
  * Author URI: https://www.webfactoryltd.com/
9
  * Textdomain: custom-sidebars
@@ -11,7 +11,7 @@
11
 
12
  /*
13
  Copyright Incsub 2017 - 2020 (https://incsub.com)
14
- Copyright WebFactory Ltd 2020 - 2021 (https://www.webfactoryltd.com/)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License (Version 2 - GPLv2) as published by
@@ -145,9 +145,9 @@ add_action('init', function() {
145
  add_action('admin_notices', function() {
146
  global $wp_version;
147
 
148
- if (false == is_plugin_active('classic-widgets/classic-widgets.php') && version_compare($wp_version, '5.8', '>=') == true) {
149
  echo '<div class="error notice" style="max-width: 700px;"><p><b>🔥 IMPORTANT 🔥</b><br><br>Custom Sidebars plugin is NOT compatible with the new widgets edit screen (powered by Gutenberg).
150
  <br>Install the official <a href="' . admin_url('plugin-install.php?s=classic%20widgets&tab=search&type=term') . '">Classic Widgets</a> plugin if you want to continue using it.</p></div>';
151
  }
152
  });
153
- });
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.35
7
  * Author: WebFactory Ltd
8
  * Author URI: https://www.webfactoryltd.com/
9
  * Textdomain: custom-sidebars
11
 
12
  /*
13
  Copyright Incsub 2017 - 2020 (https://incsub.com)
14
+ Copyright WebFactory Ltd 2020 - 2022 (https://www.webfactoryltd.com/)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License (Version 2 - GPLv2) as published by
145
  add_action('admin_notices', function() {
146
  global $wp_version;
147
 
148
+ if ((false == is_plugin_active('classic-widgets/classic-widgets.php') && apply_filters('use_widgets_block_editor', true)) && version_compare($wp_version, '5.8', '>=') == true) {
149
  echo '<div class="error notice" style="max-width: 700px;"><p><b>🔥 IMPORTANT 🔥</b><br><br>Custom Sidebars plugin is NOT compatible with the new widgets edit screen (powered by Gutenberg).
150
  <br>Install the official <a href="' . admin_url('plugin-install.php?s=classic%20widgets&tab=search&type=term') . '">Classic Widgets</a> plugin if you want to continue using it.</p></div>';
151
  }
152
  });
153
+ }, 1000, 0);
inc/class-custom-sidebars-checkup-notification.php CHANGED
@@ -140,11 +140,27 @@ class CustomSidebarsCheckupNotification extends CustomSidebars {
140
  private function show_box_wf_ads() {
141
  ?>
142
  <div class="custom-sidebars-box custom-sidebars-checkup">
143
- <div class="cs-inner">
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  <h4 class="textcenter">Need to make any element on your site sticky?<br>Header menu, a widget, or an image?</h4>
145
- <div class="sticky-logo"><a target="_blank" href="<?php echo admin_url('plugin-install.php?s=webfactory%20sticky&tab=search&type=term'); ?>"><img src="<?php echo CSB_IMG_URL; ?>/wp-sticky.png" alt="WP Sticky Anything" title="WP Sticky Anything"></a></div>
146
  <div class="textcenter"><a target="_blank" href="<?php echo admin_url('plugin-install.php?s=webfactory%20sticky&tab=search&type=term'); ?>" class="button-primary">Install the free WP Sticky plugin</a></div>
147
  </div>
 
 
 
148
  </div>
149
  <?php
150
  }
140
  private function show_box_wf_ads() {
141
  ?>
142
  <div class="custom-sidebars-box custom-sidebars-checkup">
143
+ <?php
144
+ if (!defined('WPFSSL_OPTIONS_KEY')) {
145
+ ?>
146
+ <div class="cs-inner cs-wpfssl">
147
+ <h4 class="textcenter">Having problems with SSL?<br>Generate a free certificate &amp; properly redirect to HTTPS with a few clicks</h4>
148
+ <div class="wpfssl-logo"><a target="_blank" href="<?php echo admin_url('plugin-install.php?s=webfactory%20force%20ssl&tab=search&type=term'); ?>"><img src="<?php echo CSB_IMG_URL; ?>wp-force-ssl.png" alt="WP Force SSL" title="WP Force SSL"></a></div>
149
+ <div class="textcenter"><a target="_blank" href="<?php echo admin_url('plugin-install.php?s=webfactory%20force%20ssl&tab=search&type=term'); ?>" class="button">Install the <b>free WP Force SSL plugin</b></a></div>
150
+ </div>
151
+ <?php
152
+ }
153
+
154
+ if (!function_exists('sticky_anything_activate')) {
155
+ ?>
156
+ <div class="cs-inner">
157
  <h4 class="textcenter">Need to make any element on your site sticky?<br>Header menu, a widget, or an image?</h4>
158
+ <div class="sticky-logo"><a target="_blank" href="<?php echo admin_url('plugin-install.php?s=webfactory%20sticky&tab=search&type=term'); ?>"><img src="<?php echo CSB_IMG_URL; ?>wp-sticky.png" alt="WP Sticky Anything" title="WP Sticky Anything"></a></div>
159
  <div class="textcenter"><a target="_blank" href="<?php echo admin_url('plugin-install.php?s=webfactory%20sticky&tab=search&type=term'); ?>" class="button-primary">Install the free WP Sticky plugin</a></div>
160
  </div>
161
+ <?php
162
+ }
163
+ ?>
164
  </div>
165
  <?php
166
  }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: WebFactory
3
  Tags: sidebar, widget, custom sidebar, dynamic widgets, manage sidebars, flexible layout, replace widgets, custom widget area, footer
4
  Requires at least: 4.6
5
- Tested up to: 5.8
6
- Stable tag: 3.32
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -18,16 +18,14 @@ Make custom sidebar configurations and be able to choose what widgets display on
18
 
19
  > Need to make a **widget sticky** or fixed? Try our free <a href="https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/">WP Sticky Anything</a> plugin.
20
 
21
- Custom Sidebars works ONLY with the classic widgets screen that was used in WordPress before version 5.8. If you want to use it with version 5.8 (and above) you have to install the official <a href="https://wordpress.org/plugins/classic-widgets/">Classic Widgets</a> plugin, or enable the classic widgets interface yourself. Once activated the plugin will work the same as before.
 
 
22
 
23
  = Display Different Sidebars on Pages and Posts =
24
 
25
  Custom Sidebars allows you to dynamically display custom widget configurations on any page, post, category, post type, or archive page.
26
 
27
- [youtube https://www.youtube.com/watch?v=7kgqwceGynA]
28
-
29
- Custom Sidebars allows you to display custom widget configurations on any page, post, category, post type, or archive page.
30
-
31
  ★★★★★
32
  > "Custom Sidebars will go on my "essential plugins" list from now on. I am pleased by how easy it was to figure out and by how many options are available in the free version." - [monkeyhateclean](https://profiles.wordpress.org/monkeyhateclean)
33
 
@@ -102,6 +100,10 @@ Custom Sidebars has the same license as WordPress, so you can use it wherever yo
102
 
103
  == Changelog ==
104
 
 
 
 
 
105
  = 3.32 =
106
  * 2021-07-18
107
  * Added notice for WP 5.8
2
  Contributors: WebFactory
3
  Tags: sidebar, widget, custom sidebar, dynamic widgets, manage sidebars, flexible layout, replace widgets, custom widget area, footer
4
  Requires at least: 4.6
5
+ Tested up to: 6.0
6
+ Stable tag: 3.35
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
18
 
19
  > Need to make a **widget sticky** or fixed? Try our free <a href="https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/">WP Sticky Anything</a> plugin.
20
 
21
+ Custom Sidebars works ONLY with the classic widgets screen that was used in WordPress before version 5.8. If you want to use it with version 5.8 (and above) you have to install the official <a href="https://wordpress.org/plugins/classic-widgets/">Classic Widgets</a> plugin, or enable the classic widgets interface yourself. Once the classic widgets screen is activated the plugin will work the same as before.
22
+
23
+ > Having problems setting up SSL or generating an SSL certificate? Install the free <a href="https://wordpress.org/plugins/wp-force-ssl/">WP Force SSL</a> plugin.
24
 
25
  = Display Different Sidebars on Pages and Posts =
26
 
27
  Custom Sidebars allows you to dynamically display custom widget configurations on any page, post, category, post type, or archive page.
28
 
 
 
 
 
29
  ★★★★★
30
  > "Custom Sidebars will go on my "essential plugins" list from now on. I am pleased by how easy it was to figure out and by how many options are available in the free version." - [monkeyhateclean](https://profiles.wordpress.org/monkeyhateclean)
31
 
100
 
101
  == Changelog ==
102
 
103
+ = 3.35 =
104
+ * 2022-01-11
105
+ * Improved the classic widgets screen detection - "Classic Widgets" plugin is no longer necessary if you add appropriate filters via some other plugin or theme
106
+
107
  = 3.32 =
108
  * 2021-07-18
109
  * Added notice for WP 5.8