Version Description
- 2021-01-13
- Minor fixes
- WebFactory took over development
Download this release
Release Info
Developer | WebFactory |
Plugin | Custom Sidebars – Dynamic Widget Area Manager |
Version | 3.3 |
Comparing to | |
See all releases |
Code changes from version 3.2.4 to 3.3
- assets/css/cs.css +15 -11
- assets/img/hand-with-heart.png +0 -0
- assets/img/wp-sticky.png +0 -0
- assets/js/cs-cloning.js +0 -1
- assets/js/cs-cloning.min.js +1 -2
- assets/js/cs-visibility.js +0 -1
- assets/js/cs-visibility.min.js +1 -2
- assets/js/cs.js +0 -1
- assets/js/cs.min.js +1 -2
- assets/js/retirement-admin-notice.js +0 -2
- customsidebars.php +13 -15
- inc/class-custom-sidebars-checkup-notification.php +6 -55
- inc/class-custom-sidebars.php +93 -15
- readme.txt +15 -26
assets/css/cs.css
CHANGED
@@ -273,20 +273,15 @@
|
|
273 |
background-color: #fff;
|
274 |
}
|
275 |
.widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner {
|
276 |
-
background: url(../img/hand-with-heart.png) no-repeat 100% 100%;
|
277 |
font-size: 1.2em;
|
278 |
-
|
279 |
-
|
280 |
-
}
|
281 |
-
.widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner h4, .widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner p {
|
282 |
-
margin: 0;
|
283 |
-
padding: 0 120px 0 30px;
|
284 |
-
font-size: 1.1em;
|
285 |
}
|
286 |
.widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner h4 {
|
287 |
color: #222;
|
288 |
font-size: 1.2em;
|
289 |
-
|
|
|
290 |
}
|
291 |
.widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner p {
|
292 |
color: #c1272c;
|
@@ -312,12 +307,21 @@
|
|
312 |
padding: 10px 15px;
|
313 |
text-align: center;
|
314 |
}
|
315 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
border-radius: 0 4px 4px 0;
|
317 |
background-color: #00a7e6;
|
318 |
color: #fff;
|
319 |
min-width: 3em;
|
320 |
-
|
|
|
|
|
321 |
}
|
322 |
.widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner form input[type=text] {
|
323 |
color: #aaa;
|
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;
|
283 |
+
line-height: 1.3;
|
284 |
+
margin: 0;
|
285 |
}
|
286 |
.widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner p {
|
287 |
color: #c1272c;
|
307 |
padding: 10px 15px;
|
308 |
text-align: center;
|
309 |
}
|
310 |
+
.sticky-logo {
|
311 |
+
text-align: center;
|
312 |
+
padding: 20px 0;
|
313 |
+
}
|
314 |
+
.sticky-logo img {
|
315 |
+
max-height: 100px;
|
316 |
+
}
|
317 |
+
.install-sticky {
|
318 |
border-radius: 0 4px 4px 0;
|
319 |
background-color: #00a7e6;
|
320 |
color: #fff;
|
321 |
min-width: 3em;
|
322 |
+
}
|
323 |
+
.textcenter {
|
324 |
+
text-align: center;
|
325 |
}
|
326 |
.widgets-php .sidebars-column-1 .inner .custom-sidebars-checkup .cs-inner form input[type=text] {
|
327 |
color: #aaa;
|
assets/img/hand-with-heart.png
DELETED
Binary file
|
assets/img/wp-sticky.png
ADDED
Binary file
|
assets/js/cs-cloning.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
/*! Custom Sidebars - v3.2.3
|
2 |
-
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
4 |
/*global jQuery:false */
|
5 |
/*global window:false */
|
1 |
/*! Custom Sidebars - v3.2.3
|
|
|
2 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
3 |
/*global jQuery:false */
|
4 |
/*global window:false */
|
assets/js/cs-cloning.min.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
/*! Custom Sidebars - v3.2.3
|
2 |
-
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
4 |
|
5 |
-
jQuery(function(){var a=jQuery(document),b=jQuery("#widgets-right"),c=!1,d=function(){for(var a=jQuery("#widgets-left input.csb-clone-group"),c=parseInt(a.first().val());b.find('input.csb-clone-group[value="'+c+'"]').length;)c+=1;a.val(c)},e=function(a){var b=jQuery(this).closest(".widget"),e=jQuery("#widgets-left"),f=jQuery(".widgets-chooser"),g=jQuery("#wpbody-content");a.preventDefault(),c=!0,"new"===b.find("input.csb-clone-state").val()&&window.wpWidgets.save(b,0,0,0),window.wpWidgets.clearWidgetSelection(),f.slideUp(200,function(){f.hide(),g.append(this)});var h=b.find("input.id_base").val(),i=e.find('input.id_base[value="'+h+'"]'),j=i.closest(".widget");j.addClass("widget-in-question");var k=b.find("input.csb-clone-group").val(),l=(j.find(".widget-control-actions"),j.find("input.csb-clone-group")),m=j.find("input.csb-clone-state");l.val(k),m.val("empty");var n=b.closest(".widgets-sortables"),o=n.attr("id");return f.find(".widgets-chooser-selected").removeClass("widgets-chooser-selected"),f.find("li").each(function(){var a=jQuery(this);o===a.data("sidebarId")&&a.addClass("widgets-chooser-selected").focus()}),window.wpWidgets.addWidget(f),window.wpWidgets.clearWidgetSelection(),d(),c=!1,!1},f=function(a){var c=jQuery(this).closest(".widget"),d=c.find("input.csb-clone-group").val();b.find('input.csb-clone-group[value="'+d+'"]').closest(".widget").not(c).each(function(){var a=jQuery(this);a.find("input.csb-clone-state"),a.addClass("wpmui-loading").attr("data-reload",!0)})},g=function(a,b){var c=jQuery(b).closest(".widget"),d=c.find(".csb-clone-button"),g=c.find(".widget-control-actions .widget-control-save"),h=c.find(".widget-control-actions .spinner"),i=c.find(".widget-control-save");c.data("_csb_cloning")||(h.insertBefore(g).css({float:"left"}),d.insertBefore(g).click(e),i.click(f),c.data("_csb_cloning",!0))},h=function(a,e){if(c)return!1;for(var f=jQuery(e).closest(".widget"),g=f.find("input.csb-clone-group"),h=parseInt(g.val()),i=null;;){if(i=b.find('input.csb-clone-group[value="'+h+'"]'),!i.length||1===i.length&&i[0]===g[0])break;h+=1}g.val(h),d()},i=function(a){var c=jQuery(this).closest(".widget"),d=c.find("input.csb-clone-group").val(),e=b.find('input.csb-clone-group[value="'+d+'"]').closest(".widget");isNaN(d)||d<1||(e.addClass("csb-marker"),c.removeClass("csb-marker"))},j=function(a){jQuery(".widget.csb-marker").removeClass("csb-marker")},k=function(a){var b=jQuery(this).closest(".widget"),c=b.find(".widget-title h4"),d=c.find(".btn-clone-group"),e=b.find("input.csb-clone-group");return a.preventDefault(),a.stopPropagation(),c.hasClass("group-active")?(c.removeClass("group-active"),d.removeClass("dashicons-admin-links").addClass("dashicons-editor-unlink"),e.data("group",e.val()),e.val(0),j()):(c.addClass("group-active"),d.addClass("dashicons-admin-links").removeClass("dashicons-editor-unlink"),e.val(e.data("group")),i.call(this,[a])),!1},l=function(){b.find("input.csb-clone-group").each(function(){var a=jQuery(this).val(),c=b.find('input.csb-clone-group[value="'+a+'"]').closest(".widget"),d=c.find(".widget-title h4, .widget-title h3"),e="add";(isNaN(a)||a<1)&&(e="remove"),c.length<2&&(e="remove"),d.removeClass("csb-group group-active").find(".btn-clone-group").remove(),c.removeAttr("data-csb-icon"),"add"===e&&(d.addClass("csb-group group-active").prepend('<i class="dashicons dashicons-admin-links btn-clone-group"></i> '),d.find(".btn-clone-group").hover(i,j).click(k))})},m=function(a){"empty"===a.find("input.csb-clone-state").val()&&(a.addClass("wpmui-loading"),window.wpWidgets.save(a,0,1,0))},n=function(a){b.find(".widget[data-reload]").each(function(){var a=jQuery(this);a.find("input.csb-clone-state").val("empty"),a.removeAttr("data-reload"),window.wpWidgets.save(a,0,0,0)})},o=function(a,b,c,d){var e="string"==typeof c.data?c.data:"",f=e.match(/^.*&action=([^&]+).*$/),g=e.match(/^.*&widget-id=([^&]+).*$/),h=f&&2===f.length?f[1]:"",i=g&&2===g.length?g[1]:"";if(i.length){var j=jQuery('.widget input.widget-id[value="'+i+'"]'),k=j.closest(".widget");switch(h){case"save-widget":k.removeClass("wpmui-loading"),d.length?d.match(/^deleted:/)?window.setTimeout(l,400):(l(),n()):m(k)}}};b.find(".widget").each(g),a.on("widget-added",g),a.on("widget-added",h),a.ajaxSuccess(o),l(),d()});
|
1 |
/*! Custom Sidebars - v3.2.3
|
|
|
2 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
3 |
|
4 |
+
jQuery(function(){var a=jQuery(document),b=jQuery("#widgets-right"),c=!1,d=function(){for(var a=jQuery("#widgets-left input.csb-clone-group"),c=parseInt(a.first().val());b.find('input.csb-clone-group[value="'+c+'"]').length;)c+=1;a.val(c)},e=function(a){var b=jQuery(this).closest(".widget"),e=jQuery("#widgets-left"),f=jQuery(".widgets-chooser"),g=jQuery("#wpbody-content");a.preventDefault(),c=!0,"new"===b.find("input.csb-clone-state").val()&&window.wpWidgets.save(b,0,0,0),window.wpWidgets.clearWidgetSelection(),f.slideUp(200,function(){f.hide(),g.append(this)});var h=b.find("input.id_base").val(),i=e.find('input.id_base[value="'+h+'"]'),j=i.closest(".widget");j.addClass("widget-in-question");var k=b.find("input.csb-clone-group").val(),l=(j.find(".widget-control-actions"),j.find("input.csb-clone-group")),m=j.find("input.csb-clone-state");l.val(k),m.val("empty");var n=b.closest(".widgets-sortables"),o=n.attr("id");return f.find(".widgets-chooser-selected").removeClass("widgets-chooser-selected"),f.find("li").each(function(){var a=jQuery(this);o===a.data("sidebarId")&&a.addClass("widgets-chooser-selected").focus()}),window.wpWidgets.addWidget(f),window.wpWidgets.clearWidgetSelection(),d(),c=!1,!1},f=function(a){var c=jQuery(this).closest(".widget"),d=c.find("input.csb-clone-group").val();b.find('input.csb-clone-group[value="'+d+'"]').closest(".widget").not(c).each(function(){var a=jQuery(this);a.find("input.csb-clone-state"),a.addClass("wpmui-loading").attr("data-reload",!0)})},g=function(a,b){var c=jQuery(b).closest(".widget"),d=c.find(".csb-clone-button"),g=c.find(".widget-control-actions .widget-control-save"),h=c.find(".widget-control-actions .spinner"),i=c.find(".widget-control-save");c.data("_csb_cloning")||(h.insertBefore(g).css({float:"left"}),d.insertBefore(g).click(e),i.click(f),c.data("_csb_cloning",!0))},h=function(a,e){if(c)return!1;for(var f=jQuery(e).closest(".widget"),g=f.find("input.csb-clone-group"),h=parseInt(g.val()),i=null;;){if(i=b.find('input.csb-clone-group[value="'+h+'"]'),!i.length||1===i.length&&i[0]===g[0])break;h+=1}g.val(h),d()},i=function(a){var c=jQuery(this).closest(".widget"),d=c.find("input.csb-clone-group").val(),e=b.find('input.csb-clone-group[value="'+d+'"]').closest(".widget");isNaN(d)||d<1||(e.addClass("csb-marker"),c.removeClass("csb-marker"))},j=function(a){jQuery(".widget.csb-marker").removeClass("csb-marker")},k=function(a){var b=jQuery(this).closest(".widget"),c=b.find(".widget-title h4"),d=c.find(".btn-clone-group"),e=b.find("input.csb-clone-group");return a.preventDefault(),a.stopPropagation(),c.hasClass("group-active")?(c.removeClass("group-active"),d.removeClass("dashicons-admin-links").addClass("dashicons-editor-unlink"),e.data("group",e.val()),e.val(0),j()):(c.addClass("group-active"),d.addClass("dashicons-admin-links").removeClass("dashicons-editor-unlink"),e.val(e.data("group")),i.call(this,[a])),!1},l=function(){b.find("input.csb-clone-group").each(function(){var a=jQuery(this).val(),c=b.find('input.csb-clone-group[value="'+a+'"]').closest(".widget"),d=c.find(".widget-title h4, .widget-title h3"),e="add";(isNaN(a)||a<1)&&(e="remove"),c.length<2&&(e="remove"),d.removeClass("csb-group group-active").find(".btn-clone-group").remove(),c.removeAttr("data-csb-icon"),"add"===e&&(d.addClass("csb-group group-active").prepend('<i class="dashicons dashicons-admin-links btn-clone-group"></i> '),d.find(".btn-clone-group").hover(i,j).click(k))})},m=function(a){"empty"===a.find("input.csb-clone-state").val()&&(a.addClass("wpmui-loading"),window.wpWidgets.save(a,0,1,0))},n=function(a){b.find(".widget[data-reload]").each(function(){var a=jQuery(this);a.find("input.csb-clone-state").val("empty"),a.removeAttr("data-reload"),window.wpWidgets.save(a,0,0,0)})},o=function(a,b,c,d){var e="string"==typeof c.data?c.data:"",f=e.match(/^.*&action=([^&]+).*$/),g=e.match(/^.*&widget-id=([^&]+).*$/),h=f&&2===f.length?f[1]:"",i=g&&2===g.length?g[1]:"";if(i.length){var j=jQuery('.widget input.widget-id[value="'+i+'"]'),k=j.closest(".widget");switch(h){case"save-widget":k.removeClass("wpmui-loading"),d.length?d.match(/^deleted:/)?window.setTimeout(l,400):(l(),n()):m(k)}}};b.find(".widget").each(g),a.on("widget-added",g),a.on("widget-added",h),a.ajaxSuccess(o),l(),d()});
|
assets/js/cs-visibility.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
/*! Custom Sidebars - v3.2.3
|
2 |
-
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
4 |
/*global jQuery:false */
|
5 |
/*global window:false */
|
1 |
/*! Custom Sidebars - v3.2.3
|
|
|
2 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
3 |
/*global jQuery:false */
|
4 |
/*global window:false */
|
assets/js/cs-visibility.min.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
/*! Custom Sidebars - v3.2.3
|
2 |
-
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
4 |
|
5 |
-
jQuery(function(){var a=jQuery(document),b=function(a){var b=jQuery(this),c=b.closest(".csb-option-row"),d=b.closest(".widget"),e="."+jQuery.trim(c.attr("class").replace("csb-option-row","")),f=d.find('[data-for="'+e+'"]'),g=c.find("input, select, textarea");return a.preventDefault(),f.show(),c.fadeOut(400,function(){g.val("").trigger("change.select2"),d.trigger("csb:update")}),!1},c=function(a){jQuery(".csb-action .dropdown:visible").hide()},d=function(a){var b=jQuery(this),d=b.data("for"),e=b.closest(".widget"),f=e.find(".csb-always"),g=e.find(d);return a.preventDefault(),g.show(),b.hide(),f.hide(),c(),e.trigger("csb:update"),!1},e=function(){var a=jQuery(this).closest(".widget"),b=a.find(".csb-always"),c=a.find(".csb-option-row:visible:not(.csb-action,.csb-always)");0===c.length?b.show():(b.hide(),c.find(".csb-and").show(),c.first().find(".csb-and").hide()),wpmUi.upgrade_multiselect(a)},f=function(b){var d=jQuery(this),e=d.closest(".csb-option-row"),f=e.find(".dropdown");return b.preventDefault(),f.show(),a.one("click",c),!1},g=function(a){var b=jQuery(this),c=b.closest(".widget"),d=c.find(".csb-visibility-inner"),e=d.find(".csb-visible-flag");return a.preventDefault(),"0"===e.val()?(e.val("1"),d.show(),c.trigger("csb:update")):(e.val("0"),d.hide()),!1},h=function(a){var b=jQuery(this).closest("label"),c=b.closest(".widget"),d="#"+b.attr("for"),e=c.find(d),f=e.val(),g=c.find(".lbl-show-if"),h=c.find(".lbl-hide-if");return a.preventDefault(),"show"!==f?(g.show(),h.hide(),e.val("show")):(g.hide(),h.show(),e.val("hide")),!1},i=function(a){var b=jQuery(this).closest("label"),c=b.closest(".csb-detail-row"),d=b.find("input[type=checkbox]"),e=b.find(".lbl"),f=c.find(".detail"),g=f.find("input,select,textarea");d.prop("checked")?(e.text(d.data("lbl-single")),f.show()):(e.text(d.data("lbl-all")),f.hide(),g.val("").trigger("change.select2"))},j=function(a){var b,c=jQuery(this),d=c.closest(".csb-option-row"),e=d.find(".csb-detail-row"),f=c.val();if(e.addClass("csb-hide"),f)for(b=0;b<f.length;b+=1)e.filter(".csb-pt-"+f[b]).removeClass("csb-hide ");e.each(function(){var a=jQuery(this),b=a.find("input[type=checkbox]");a.hasClass("csb-hide")?(a.hide(),b.prop("checked",!1),i.call(b)):a.show()})},k=function(a,c){var k=jQuery(c).closest(".widget"),l=k.find(".csb-visibility-button"),m=k.find(".widget-control-actions .widget-control-save"),n=k.find(".widget-control-actions .spinner");k.data("_csb_visibility")||(n.insertBefore(m).css({float:"left"}),l.insertBefore(m).click(g),k.on("click",".toggle-action b",h),k.on("csb:update",e),k.on("click",".clear-filter",b),k.on("click",".choose-filters",f),k.on("click",".add-filter",d),k.on("change","input[data-lbl-all][data-lbl-single]",i),k.on("change","select.posttype",j),k.data("_csb_visibility",!0))};jQuery("#widgets-right .widget").each(k),a.on("widget-added",k)});
|
1 |
/*! Custom Sidebars - v3.2.3
|
|
|
2 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
3 |
|
4 |
+
jQuery(function(){var a=jQuery(document),b=function(a){var b=jQuery(this),c=b.closest(".csb-option-row"),d=b.closest(".widget"),e="."+jQuery.trim(c.attr("class").replace("csb-option-row","")),f=d.find('[data-for="'+e+'"]'),g=c.find("input, select, textarea");return a.preventDefault(),f.show(),c.fadeOut(400,function(){g.val("").trigger("change.select2"),d.trigger("csb:update")}),!1},c=function(a){jQuery(".csb-action .dropdown:visible").hide()},d=function(a){var b=jQuery(this),d=b.data("for"),e=b.closest(".widget"),f=e.find(".csb-always"),g=e.find(d);return a.preventDefault(),g.show(),b.hide(),f.hide(),c(),e.trigger("csb:update"),!1},e=function(){var a=jQuery(this).closest(".widget"),b=a.find(".csb-always"),c=a.find(".csb-option-row:visible:not(.csb-action,.csb-always)");0===c.length?b.show():(b.hide(),c.find(".csb-and").show(),c.first().find(".csb-and").hide()),wpmUi.upgrade_multiselect(a)},f=function(b){var d=jQuery(this),e=d.closest(".csb-option-row"),f=e.find(".dropdown");return b.preventDefault(),f.show(),a.one("click",c),!1},g=function(a){var b=jQuery(this),c=b.closest(".widget"),d=c.find(".csb-visibility-inner"),e=d.find(".csb-visible-flag");return a.preventDefault(),"0"===e.val()?(e.val("1"),d.show(),c.trigger("csb:update")):(e.val("0"),d.hide()),!1},h=function(a){var b=jQuery(this).closest("label"),c=b.closest(".widget"),d="#"+b.attr("for"),e=c.find(d),f=e.val(),g=c.find(".lbl-show-if"),h=c.find(".lbl-hide-if");return a.preventDefault(),"show"!==f?(g.show(),h.hide(),e.val("show")):(g.hide(),h.show(),e.val("hide")),!1},i=function(a){var b=jQuery(this).closest("label"),c=b.closest(".csb-detail-row"),d=b.find("input[type=checkbox]"),e=b.find(".lbl"),f=c.find(".detail"),g=f.find("input,select,textarea");d.prop("checked")?(e.text(d.data("lbl-single")),f.show()):(e.text(d.data("lbl-all")),f.hide(),g.val("").trigger("change.select2"))},j=function(a){var b,c=jQuery(this),d=c.closest(".csb-option-row"),e=d.find(".csb-detail-row"),f=c.val();if(e.addClass("csb-hide"),f)for(b=0;b<f.length;b+=1)e.filter(".csb-pt-"+f[b]).removeClass("csb-hide ");e.each(function(){var a=jQuery(this),b=a.find("input[type=checkbox]");a.hasClass("csb-hide")?(a.hide(),b.prop("checked",!1),i.call(b)):a.show()})},k=function(a,c){var k=jQuery(c).closest(".widget"),l=k.find(".csb-visibility-button"),m=k.find(".widget-control-actions .widget-control-save"),n=k.find(".widget-control-actions .spinner");k.data("_csb_visibility")||(n.insertBefore(m).css({float:"left"}),l.insertBefore(m).click(g),k.on("click",".toggle-action b",h),k.on("csb:update",e),k.on("click",".clear-filter",b),k.on("click",".choose-filters",f),k.on("click",".add-filter",d),k.on("change","input[data-lbl-all][data-lbl-single]",i),k.on("change","select.posttype",j),k.data("_csb_visibility",!0))};jQuery("#widgets-right .widget").each(k),a.on("widget-added",k)});
|
assets/js/cs.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
/*! Custom Sidebars - v3.2.3
|
2 |
-
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
4 |
/*global window:false */
|
5 |
/*global console:false */
|
1 |
/*! Custom Sidebars - v3.2.3
|
|
|
2 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
3 |
/*global window:false */
|
4 |
/*global console:false */
|
assets/js/cs.min.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
/*! Custom Sidebars - v3.2.3
|
2 |
-
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
4 |
|
5 |
-
function trim(a){a=a.replace(/^\s\s*/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a}function CsSidebar(a,b){var c;this.id=a.split("%").join("\\%"),this.type=b,this.sb=jQuery("#"+this.id),this.widgets="",this.name=trim(this.sb.find(".sidebar-name h2").text()),this.description=trim(this.sb.find(".sidebar-description").text()),c="custom"===b?window.csSidebars.extras.find(".cs-custom-sidebar").clone():window.csSidebars.extras.find(".cs-theme-sidebar").clone(),this.sb.parent().append(c),c.find("label").each(function(){var b=jQuery(this);window.csSidebars.addIdToLabel(b,a)})}CsSidebar.prototype.getID=function(){return this.id.split("\\").join("")},window.csSidebars=null,function(a){window.csSidebars={sidebars:[],sidebar_prefix:"cs-",edit_form:null,delete_form:null,export_form:null,location_form:null,right:null,extras:null,action_handlers:{},init:function(){"undefined"!=typeof csSidebarsData&&csSidebars.initControls().initTopTools().initSidebars().initToolbars().initColumns()},initControls:function(){return csSidebars.right=jQuery("#widgets-right"),csSidebars.extras=jQuery("#cs-widgets-extra"),null===csSidebars.edit_form&&(csSidebars.edit_form=csSidebars.extras.find(".cs-editor").clone(),csSidebars.extras.find(".cs-editor").remove()),null===csSidebars.delete_form&&(csSidebars.delete_form=csSidebars.extras.find(".cs-delete").clone(),csSidebars.extras.find(".cs-delete").remove()),null===csSidebars.export_form&&(csSidebars.export_form=csSidebars.extras.find(".cs-export").clone(),csSidebars.extras.find(".cs-export").remove()),null===csSidebars.location_form&&(csSidebars.location_form=csSidebars.extras.find(".cs-location").clone(),csSidebars.extras.find(".cs-location").remove()),jQuery("#cs-title-options").detach().prependTo(csSidebars.right),csSidebars},initColumns:function(){function a(){var a=jQuery(this),b=a.closest(".sidebars-column-1, .sidebars-column-2"),c=b.data("sort-dir");c="asc"===c?"desc":"asc",csSidebars.sort_sidebars(b,c)}var b=csSidebars.right.find(".sidebars-column-1"),c=csSidebars.right.find(".sidebars-column-2"),d=jQuery('<div class="cs-title"><h2></h2></div>'),e=csSidebars.right.find(".widgets-holder-wrap");c.length||(c=jQuery('<div class="sidebars-column-2"></div>'),c.appendTo(csSidebars.right)),d.find("h2").append('<span class="cs-title-val"></span><i class="cs-icon dashicons dashicons-sort"></i>').css({cursor:"pointer"}),d.clone().prependTo(b).click(a).find(".cs-title-val").text(csSidebarsData.custom_sidebars),d.clone().prependTo(c).click(a).find(".cs-title-val").text(csSidebarsData.theme_sidebars),b=jQuery('<div class="inner"></div>').appendTo(b),c=jQuery('<div class="inner"></div>').appendTo(c),e.each(function(){var a=jQuery(this),d=a.find(".widgets-sortables");csSidebars.isCustomSidebar(d)?a.appendTo(b):a.appendTo(c)})},initSidebars:function(){return csSidebars.right.find(".widgets-sortables").each(function(){var a,b,c=!1,d=jQuery(this),e=d.attr("id");if(!0!==d.data("cs-init"))if(d.data("cs-init",!0),csSidebars.isCustomSidebar(this))b=csSidebars.add(e,"custom");else{b=csSidebars.add(e,"theme");for(a in csSidebarsData.replaceable)if(csSidebarsData.replaceable.hasOwnProperty(a)&&csSidebarsData.replaceable[a]===e){c=!0;break}csSidebars.setReplaceable(b,c,!1)}}),csSidebars},initTopTools:function(){var a=jQuery(".btn-create-sidebar"),b=jQuery(".btn-export"),c=jQuery(".cs-options"),d=jQuery('<input type="search" class="cs-filter" />'),e={};return a.click(function(){e.id="",e.title=csSidebarsData.title_new,e.button=csSidebarsData.btn_new,e.description="",e.name="",csSidebars.showEditor(e)}),b.click(csSidebars.showExport),d.appendTo(c).attr("placeholder",csSidebarsData.filter).keyup(csSidebars.filter_sidebars).on("search",csSidebars.filter_sidebars),csSidebars},initToolbars:function(){function a(a){var b=jQuery(a.target).closest(".cs-tool"),c=b.data("action"),d=csSidebars.getIdFromEditbar(b),e=csSidebars.find(d);return!csSidebars.handleAction(c,e)}return csSidebars.registerAction("edit",csSidebars.showEditor),csSidebars.registerAction("location",csSidebars.showLocations),csSidebars.registerAction("delete",csSidebars.showRemove),csSidebars.registerAction("replaceable",csSidebars.setReplaceable),csSidebars.right.on("click",".cs-tool",a),csSidebars},handleAction:function(a,b){return"function"==typeof csSidebars.action_handlers[a]&&!!csSidebars.action_handlers[a](b)},registerAction:function(a,b){csSidebars.action_handlers[a]=b},showAjaxError:function(a){var b={};b.message=csSidebarsData.ajax_error,b.details=a,b.parent="#widgets-right",b.insert_after="#cs-title-options",b.id="editor",b.type="err",wpmUi.message(b)},sort_sidebars:function(a,b){var c=a.find(".widgets-holder-wrap"),d=a.find(".cs-title .cs-icon");c.sortElements(function(a,c){var d=jQuery(a).find(".sidebar-name h2").text(),e=jQuery(c).find(".sidebar-name h2").text();return"asc"===b?d>e?1:-1:d<e?1:-1}),a.data("sort-dir",b),"asc"===b?d.removeClass("dashicons-arrow-down dashicons-sort").addClass("dashicons-arrow-up"):d.removeClass("dashicons-arrow-up dashicons-sort").addClass("dashicons-arrow-down")},filter_sidebars:function(a){var b=jQuery("input.cs-filter").val().toLowerCase();csSidebars.right.find(".widgets-holder-wrap").each(function(){var a=jQuery(this);-1!==a.find(".sidebar-name h2").text().toLowerCase().indexOf(b)?a.show():a.hide()}),jQuery(window).trigger("cs-resize")},showEditor:function(b){function c(){i.$().removeClass("csb-has-more"),i.size(782,215)}function d(){i.$().addClass("csb-has-more"),i.size(782,545)}function e(){jQuery(this).prop("checked")?d():c()}function f(a,b,c){return i.loading(!1),!!a&&(b?(a.sidebar&&(a=a.sidebar),a.id&&i.$().find("#csb-id").val(a.id),a.name&&i.$().find("#csb-name").val(a.name),a.description&&i.$().find("#csb-description").val(a.description),a.before_title&&i.$().find("#csb-before-title").val(a.before_title),a.after_title&&i.$().find("#csb-after-title").val(a.after_title),a.before_widget&&i.$().find("#csb-before-widget").val(a.before_widget),a.after_widget&&i.$().find("#csb-after-widget").val(a.after_widget),a.button&&i.$().find(".btn-save").text(a.button),void(a.advance&&(i.$().find("#csb-more").prop("checked",!0),d()))):(i.destroy(),csSidebars.showAjaxError(a),!1))}function g(b,c,d){var e,f={};i.loading(!1),i.destroy(),f.message=b.message,f.parent="#widgets-right",f.insert_after="#cs-title-options",f.id="editor",c?"update"===b.action?(e=csSidebars.find(b.data.id),csSidebars.updateSidebar(e,b.data)):"insert"===b.action&&(csSidebars.insertSidebar(b.data),a(".cs-wrap .custom-sidebars-add-new").detach()):f.type="err",wpmUi.message(f)}function h(){var a=i.$().find("form");return 0<i.$("#csb-more:checked").length&&jQuery("<input>").attr({type:"hidden",value:"show",name:"advance"}).appendTo(a),i.loading(!0),j.reset().data(a).ondone(g).load_json(),!1}var i=null,j=null;return b instanceof CsSidebar&&(b={id:b.getID(),title:csSidebarsData.title_edit.replace("[Sidebar]",b.name),button:csSidebarsData.btn_edit}),i=wpmUi.popup().modal(!0).title(b.title).onshow(c).content(csSidebars.edit_form),c(),f(b,!0,null),j=wpmUi.ajax(null,"cs-ajax"),b.id&&(i.loading(!0),j.reset().data({do:"get",sb:b.id,_wpnonce:csSidebarsData._wpnonce_get}).ondone(f).load_json()),i.show(),i.$().find("#csb-name").focus(),i.$().on("keypress","#csb-name",function(b){13===b.keyCode&&0<a(this).val().length&&a("#csb-description").focus()}),i.$().on("keypress","#csb-description",function(a){13===a.keyCode&&i.$(".btn-save").click()}),i.$().on("click","#csb-more",e),i.$().on("click",".btn-save",h),i.$().on("click",".btn-cancel",i.destroy),!0},updateSidebar:function(a,b){return a.sb.find(".sidebar-name h2").text(b.name),a.sb.find(".sidebar-description").html('<p class="description"></p>').find(".description").text(b.description),csSidebars},insertSidebar:function(a){var b=jQuery('<div class="widgets-holder-wrap"></div>'),c=jQuery('<div class="widgets-sortables ui-sortable"></div>'),d=jQuery('<div class="sidebar-name"><div class="sidebar-name-arrow"><br></div><h2></h2></div>'),e=jQuery('<div class="sidebar-description"></div>'),f=csSidebars.right.find(".sidebars-column-1 > .inner:first");return c.attr("id",a.id),d.find("h2").text(a.name),e.html('<p class="description"></p>').find(".description").text(a.description),d.appendTo(c),e.appendTo(c),c.appendTo(b),b.prependTo(f),jQuery("#widgets-right .sidebar-name").unbind("click"),jQuery("#widgets-left .sidebar-name").unbind("click"),jQuery(document.body).unbind("click.widgets-toggle"),jQuery(".widgets-chooser").off("click.widgets-chooser").off("keyup.widgets-chooser"),jQuery("#available-widgets .widget .widget-title").off("click.widgets-chooser"),jQuery(".widgets-chooser-sidebars").empty(),window.wpWidgets.init(),csSidebars.initSidebars(),csSidebars},showExport:function(){function a(a){var b=jQuery(this).closest("form");return h.reset().data(b).load_http(),g.destroy(),a.preventDefault(),!1}function b(a,b,c){var d={};g.loading(!1),b?g.size(900,600).content(a.html):(d.message=a.message,d.parent=g.$().find(".wpmui-wnd-content"),d.insert_after=!1,d.id="export",d.class="wpmui-wnd-err",d.type="err",wpmUi.message(d))}function c(a){var c=jQuery(this).closest("form");return g.loading(!0),h.reset().data(c).ondone(b).load_json("cs-ajax"),a.preventDefault(),!1}function d(){var a=jQuery(this),b=a.prop("checked"),c=g.$().find(".column-widgets, .import-widgets");b?c.show():c.hide()}function e(){g.size(782,480),g.content(csSidebars.export_form)}function f(){var a=g.$().find(".frm-import");g.loading(!0),h.reset().data(a).load_http("_self")}var g=null,h=null;return g=wpmUi.popup().modal(!0).size(782,480).title(csSidebarsData.title_export).content(csSidebars.export_form).show(),h=wpmUi.ajax(null,"cs-ajax"),g.$().on("submit",".frm-export",a),g.$().on("submit",".frm-preview-import",c),g.$().on("change","#import-widgets",d),g.$().on("click",".btn-cancel",e),g.$().on("click",".btn-import",f),!0},showRemove:function(b){function c(a){a.find(".name").text(j)}function d(){g.loading(!1),g.destroy()}function e(a,b,c){var d={};g.loading(!1),g.destroy(),d.message=a.message,d.parent="#widgets-right",d.insert_after="#cs-title-options",d.id="editor",b?(csSidebars.right.find("#"+i).closest(".widgets-holder-wrap").remove(),csSidebars.remove(i),"delete"===a.action&&window.csSidebars.showGetStartedBox()):d.type="err",wpmUi.message(d)}function f(){g.loading(!0),h.reset().data({do:"delete",sb:i,_wpnonce:a("#_wp_nonce_cs_delete_sidebar").val()}).ondone(e).load_json()}var g=null,h=null,i=b.getID(),j=b.name;return g=wpmUi.popup().modal(!0).size(560,160).title(csSidebarsData.title_delete).content(csSidebars.delete_form).onshow(c).show(),h=wpmUi.ajax(null,"cs-ajax"),g.$().on("click",".btn-cancel",d),g.$().on("click",".btn-delete",f),!0},showLocations:function(b){function c(b,c){var d=wp.template("custom-sidebars-new-rule-row");return a("tbody",c).append(d(b)),a("tfoot",c).hide(),a("tbody .dashicons-trash",c).on("click",function(){a(this).closest("tr").detach(),0===a("tbody tr",c).length&&a("tfoot",c).show()}),!1}function d(b,d,e){function f(a,b,c){var d=jQuery("<option></option>");d.attr("value",c).text(a.name),b.append(d)}function g(a,b,c,d){var e=d.closest(".cs-replaceable").filter("."+b),f=e.find('option[value="'+c+'"]'),g=e.find("optgroup.used"),h=e.find(".detail-toggle");a===l?(f.prop("selected",!0),!0!==h.prop("checked")&&(h.prop("checked",!0),e.addClass("open"),wpmUi.upgrade_multiselect(e))):(g.length||(g=jQuery('<optgroup class="used">').attr("label",e.data("lbl-used")).appendTo(e.find(".details select"))),f.detach().appendTo(g))}var h,j,k;if(i.loading(!1),!d)return i.destroy(),void csSidebars.showAjaxError(b);i.$().find(".sb-name").text(b.sidebar.name);var l=b.sidebar.id;i.$().find(".message.no-sidebars").hide();var m=0,n=i.$().find(".cs-replaceable");n.hide(),b.replaceable=wpmUi.obj(b.replaceable);for(var o in b.replaceable)b.replaceable.hasOwnProperty(o)&&(n.filter("."+b.replaceable[o]).show(),m++);0===m&&(i.$().find(".wpmui-box, .message, .button-primary").hide(),i.$().find(".message.no-sidebars").show().parent().addClass("notice notice-error").removeClass("hidden"));var p=i.$().find(".cs-datalist.cs-cat"),q=i.$().find(".cs-datalist.cs-arc-cat"),r=b.categories;q.empty(),p.empty();for(var s in r)f(r[s],q,s),f(r[s],p,s);for(var t in r){if(r[t].single)for(h in r[t].single)g(r[t].single[h],h,t,p);if(r[t].archive)for(h in r[t].archive)g(r[t].archive[h],h,t,q)}var u=i.$().find(".cs-datalist.cs-pt"),v=b.posttypes;u.empty();for(var w in v)j=jQuery("<option></option>"),k=v[w].name,j.attr("value",w).text(k),u.append(j);for(var x in v)if(v[x].single)for(h in v[x].single)g(v[x].single[h],h,x,u);var y=i.$().find(".cs-datalist.cs-arc"),z=b.archives;y.empty();for(var A in z)j=jQuery("<option></option>"),k=z[A].name,j.attr("value",A).text(k),y.append(j);for(var B in z)if(z[B].archive)for(h in z[B].archive)g(z[B].archive[h],h,B,y);var C=i.$().find(".cs-datalist.cs-arc-aut"),D=b.authors;C.empty();for(var E in D)j=jQuery("<option></option>"),k=D[E].name,j.attr("value",E).text(k),C.append(j);for(var F in D)if(D[F].archive)for(h in D[F].archive)g(D[F].archive[h],h,F,C);i.$().find(".cs-3rd-part .cs-datalist").each(function(){var c=b[a(this).data("id")];a(this).empty();for(var d in c)j=jQuery("<option></option>"),k=c[d].name,j.attr("value",d).text(k),a(this).append(j);for(var e in c)if(c[e].archive)for(h in c[e].archive)g(c[e].archive[h],h,e,a(this))}),i.$().find(".cf-custom-taxonomies .cs-datalist").each(function(){var c=b[a(this).data("id")];a(this).empty();for(var d in c)j=jQuery("<option></option>"),k=c[d].name,j.attr("value",d).text(k),a(this).append(j);for(var e in c)if(c[e].single)for(h in c[e].single)g(c[e].single[h],h,e,a(this))});var G=i.$().find(".csb-media-screen-width table");a.each(b.screen,function(b,d){a.each(d,function(a,d){c({minmax:a,mode:d,size:b},G)})})}function e(a){var b=jQuery(this),c=b.closest(".cs-replaceable"),d=c.find("select");b.prop("checked")?(c.addClass("open"),wpmUi.upgrade_multiselect(c),d.trigger("change.select2")):(c.removeClass("open"),d.val([]))}function f(a,b,c){var d={};i.loading(!1),i.destroy(),d.message=a.message,d.parent="#widgets-right",d.insert_after="#cs-title-options",d.id="editor",b||(d.type="err"),wpmUi.message(d)}function g(){i.loading(!0),j.reset().data(k).ondone(f).load_json()}function h(){return c({minmax:"max",mode:"hide",size:0},a("table",a(this).parent())),!1}var i=null,j=null,k=null,l=b.getID();return i=wpmUi.popup().modal(!0).size(782,560).title(csSidebarsData.title_location).content(csSidebars.location_form).show(),i.loading(!0),k=i.$().find(".frm-location"),k.find(".sb-id").val(l),j=wpmUi.ajax(null,"cs-ajax"),j.reset().data({do:"get-location",sb:l}).ondone(d).load_json(),i.$().on("click",".detail-toggle",e),i.$().on("click",".btn-save",g),i.$().on("click",".btn-cancel",i.destroy),i.$().on("click",".btn-add-rule",h),!0},setReplaceable:function(a,b,c){function d(a,b,c){a instanceof Object&&"object"==typeof a.replaceable&&(csSidebarsData.replaceable=wpmUi.obj(a.replaceable),f.find(".widgets-sortables").each(function(){var a=!1,b=jQuery(this),c=b.attr("id"),d=csSidebars.find(c);for(var e in csSidebarsData.replaceable)if(csSidebarsData.replaceable.hasOwnProperty(e)&&csSidebarsData.replaceable[e]===c){a=!0;break}csSidebars.setReplaceable(d,a,!1)})),f.find(".cs-toolbar .chk-replaceable").prop("disabled",!1),f.find(".cs-toolbar .btn-replaceable").removeClass("wpmui-loading")}var e,f=csSidebars.right.find(".sidebars-column-2 .widgets-holder-wrap"),g=jQuery(a.sb).closest(".widgets-holder-wrap"),h=g.find(".cs-toolbar .chk-replaceable"),i=g.find(".replace-marker");g.find(".cs-toolbar .btn-replaceable");return void 0===b&&(b=h.prop("checked")),void 0===c&&(c=!0),h.data("active")!==b&&(h.data("active",b),h.prop("checked",b),b?(i.length||jQuery("<div></div>").appendTo(g).attr("data-label",csSidebarsData.lbl_replaceable).addClass("replace-marker"),g.addClass("replaceable")):(i.remove(),g.removeClass("replaceable")),c&&(f.find(".cs-toolbar .chk-replaceable").prop("disabled",!0),f.find(".cs-toolbar .btn-replaceable").addClass("wpmui-loading"),e=wpmUi.ajax(null,"cs-ajax"),e.reset().data({do:"replaceable",state:b,sb:a.getID()}).ondone(d).load_json()),!1)},find:function(a){return csSidebars.sidebars[a]},add:function(a,b){return csSidebars.sidebars[a]=new CsSidebar(a,b),csSidebars.sidebars[a]},remove:function(a){delete csSidebars.sidebars[a]},isCustomSidebar:function(a){return jQuery(a).attr("id").substr(0,csSidebars.sidebar_prefix.length)===csSidebars.sidebar_prefix},addIdToLabel:function(a,b){if(!0!==a.data("label-done")){var c=a.attr("for");a.attr("for",c+b),a.find(".has-label").attr("id",c+b),a.data("label-done",!0)}},getIdFromEditbar:function(a){return a.closest(".widgets-holder-wrap").find(".widgets-sortables:first").attr("id")},showGetStartedBox:function(){if(0===a(".sidebars-column-1 .inner .widgets-holder-wrap").length){var b=wp.template("custom-sidebars-new");a(".sidebars-column-1 .inner").before(b()),a(".custom-sidebars-add-new").on("click",function(){a("button.btn-create-sidebar").click()})}}},jQuery(function(a){a("#csfooter").hide(),a("#widgets-right").length>0&&csSidebars.init(),a(".defaultsContainer").hide(),a("#widgets-right .widgets-sortables").on("sort",function(b,c){a("#widgets-right").top;c.position.top=-a("#widgets-right").css("top")})}),jQuery(document).ready(function(a){window.setTimeout(function(){window.csSidebars.showGetStartedBox()},1e3)})}(jQuery),jQuery.fn.sortElements=function(){var a=[].sort;return function(b,c){c=c||function(){return this};var d=this.map(function(){var a=c.call(this),b=a.parentNode,d=b.insertBefore(document.createTextNode(""),a.nextSibling);return function(){if(b===this)throw new Error("You can't sort elements if any one is a descendant of another.");b.insertBefore(this,d),b.removeChild(d)}});return a.call(this,b).each(function(a){d[a].call(c.call(this))})}}(),function(a){jQuery(document).ready(function(a){a("#screen-options-wrap .cs-allow-author input[type=checkbox]").on("change",function(){var b={action:"custom_sidebars_allow_author",_wpnonce:a("#custom_sidebars_allow_author").val(),value:this.checked};a.post(ajaxurl,b)})})}(jQuery),function(a){jQuery(document).ready(function(a){a("#screen-options-wrap .cs-custom-taxonomies input[type=checkbox]").on("change",function(){var b={action:"custom_sidebars_metabox_custom_taxonomies",_wpnonce:a("#custom_sidebars_custom_taxonomies").val(),fields:{}};a("#screen-options-wrap .cs-custom-taxonomies input[type=checkbox]").each(function(){b.fields[a(this).val()]=this.checked}),a.post(ajaxurl,b)})})}(jQuery),function(a){jQuery(document).ready(function(a){a("#screen-options-wrap .cs-roles input[type=checkbox]").on("change",function(){var b={action:"custom_sidebars_metabox_roles",_wpnonce:a("#custom_sidebars_metabox_roles").val(),fields:{}};a("#screen-options-wrap .cs-roles input[type=checkbox]").each(function(){b.fields[a(this).val()]=this.checked}),a.post(ajaxurl,b)})})}(jQuery);
|
1 |
/*! Custom Sidebars - v3.2.3
|
|
|
2 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
3 |
|
4 |
+
function trim(a){a=a.replace(/^\s\s*/,"");for(var b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a}function CsSidebar(a,b){var c;this.id=a.split("%").join("\\%"),this.type=b,this.sb=jQuery("#"+this.id),this.widgets="",this.name=trim(this.sb.find(".sidebar-name h2").text()),this.description=trim(this.sb.find(".sidebar-description").text()),c="custom"===b?window.csSidebars.extras.find(".cs-custom-sidebar").clone():window.csSidebars.extras.find(".cs-theme-sidebar").clone(),this.sb.parent().append(c),c.find("label").each(function(){var b=jQuery(this);window.csSidebars.addIdToLabel(b,a)})}CsSidebar.prototype.getID=function(){return this.id.split("\\").join("")},window.csSidebars=null,function(a){window.csSidebars={sidebars:[],sidebar_prefix:"cs-",edit_form:null,delete_form:null,export_form:null,location_form:null,right:null,extras:null,action_handlers:{},init:function(){"undefined"!=typeof csSidebarsData&&csSidebars.initControls().initTopTools().initSidebars().initToolbars().initColumns()},initControls:function(){return csSidebars.right=jQuery("#widgets-right"),csSidebars.extras=jQuery("#cs-widgets-extra"),null===csSidebars.edit_form&&(csSidebars.edit_form=csSidebars.extras.find(".cs-editor").clone(),csSidebars.extras.find(".cs-editor").remove()),null===csSidebars.delete_form&&(csSidebars.delete_form=csSidebars.extras.find(".cs-delete").clone(),csSidebars.extras.find(".cs-delete").remove()),null===csSidebars.export_form&&(csSidebars.export_form=csSidebars.extras.find(".cs-export").clone(),csSidebars.extras.find(".cs-export").remove()),null===csSidebars.location_form&&(csSidebars.location_form=csSidebars.extras.find(".cs-location").clone(),csSidebars.extras.find(".cs-location").remove()),jQuery("#cs-title-options").detach().prependTo(csSidebars.right),csSidebars},initColumns:function(){function a(){var a=jQuery(this),b=a.closest(".sidebars-column-1, .sidebars-column-2"),c=b.data("sort-dir");c="asc"===c?"desc":"asc",csSidebars.sort_sidebars(b,c)}var b=csSidebars.right.find(".sidebars-column-1"),c=csSidebars.right.find(".sidebars-column-2"),d=jQuery('<div class="cs-title"><h2></h2></div>'),e=csSidebars.right.find(".widgets-holder-wrap");c.length||(c=jQuery('<div class="sidebars-column-2"></div>'),c.appendTo(csSidebars.right)),d.find("h2").append('<span class="cs-title-val"></span><i class="cs-icon dashicons dashicons-sort"></i>').css({cursor:"pointer"}),d.clone().prependTo(b).click(a).find(".cs-title-val").text(csSidebarsData.custom_sidebars),d.clone().prependTo(c).click(a).find(".cs-title-val").text(csSidebarsData.theme_sidebars),b=jQuery('<div class="inner"></div>').appendTo(b),c=jQuery('<div class="inner"></div>').appendTo(c),e.each(function(){var a=jQuery(this),d=a.find(".widgets-sortables");csSidebars.isCustomSidebar(d)?a.appendTo(b):a.appendTo(c)})},initSidebars:function(){return csSidebars.right.find(".widgets-sortables").each(function(){var a,b,c=!1,d=jQuery(this),e=d.attr("id");if(!0!==d.data("cs-init"))if(d.data("cs-init",!0),csSidebars.isCustomSidebar(this))b=csSidebars.add(e,"custom");else{b=csSidebars.add(e,"theme");for(a in csSidebarsData.replaceable)if(csSidebarsData.replaceable.hasOwnProperty(a)&&csSidebarsData.replaceable[a]===e){c=!0;break}csSidebars.setReplaceable(b,c,!1)}}),csSidebars},initTopTools:function(){var a=jQuery(".btn-create-sidebar"),b=jQuery(".btn-export"),c=jQuery(".cs-options"),d=jQuery('<input type="search" class="cs-filter" />'),e={};return a.click(function(){e.id="",e.title=csSidebarsData.title_new,e.button=csSidebarsData.btn_new,e.description="",e.name="",csSidebars.showEditor(e)}),b.click(csSidebars.showExport),d.appendTo(c).attr("placeholder",csSidebarsData.filter).keyup(csSidebars.filter_sidebars).on("search",csSidebars.filter_sidebars),csSidebars},initToolbars:function(){function a(a){var b=jQuery(a.target).closest(".cs-tool"),c=b.data("action"),d=csSidebars.getIdFromEditbar(b),e=csSidebars.find(d);return!csSidebars.handleAction(c,e)}return csSidebars.registerAction("edit",csSidebars.showEditor),csSidebars.registerAction("location",csSidebars.showLocations),csSidebars.registerAction("delete",csSidebars.showRemove),csSidebars.registerAction("replaceable",csSidebars.setReplaceable),csSidebars.right.on("click",".cs-tool",a),csSidebars},handleAction:function(a,b){return"function"==typeof csSidebars.action_handlers[a]&&!!csSidebars.action_handlers[a](b)},registerAction:function(a,b){csSidebars.action_handlers[a]=b},showAjaxError:function(a){var b={};b.message=csSidebarsData.ajax_error,b.details=a,b.parent="#widgets-right",b.insert_after="#cs-title-options",b.id="editor",b.type="err",wpmUi.message(b)},sort_sidebars:function(a,b){var c=a.find(".widgets-holder-wrap"),d=a.find(".cs-title .cs-icon");c.sortElements(function(a,c){var d=jQuery(a).find(".sidebar-name h2").text(),e=jQuery(c).find(".sidebar-name h2").text();return"asc"===b?d>e?1:-1:d<e?1:-1}),a.data("sort-dir",b),"asc"===b?d.removeClass("dashicons-arrow-down dashicons-sort").addClass("dashicons-arrow-up"):d.removeClass("dashicons-arrow-up dashicons-sort").addClass("dashicons-arrow-down")},filter_sidebars:function(a){var b=jQuery("input.cs-filter").val().toLowerCase();csSidebars.right.find(".widgets-holder-wrap").each(function(){var a=jQuery(this);-1!==a.find(".sidebar-name h2").text().toLowerCase().indexOf(b)?a.show():a.hide()}),jQuery(window).trigger("cs-resize")},showEditor:function(b){function c(){i.$().removeClass("csb-has-more"),i.size(782,215)}function d(){i.$().addClass("csb-has-more"),i.size(782,545)}function e(){jQuery(this).prop("checked")?d():c()}function f(a,b,c){return i.loading(!1),!!a&&(b?(a.sidebar&&(a=a.sidebar),a.id&&i.$().find("#csb-id").val(a.id),a.name&&i.$().find("#csb-name").val(a.name),a.description&&i.$().find("#csb-description").val(a.description),a.before_title&&i.$().find("#csb-before-title").val(a.before_title),a.after_title&&i.$().find("#csb-after-title").val(a.after_title),a.before_widget&&i.$().find("#csb-before-widget").val(a.before_widget),a.after_widget&&i.$().find("#csb-after-widget").val(a.after_widget),a.button&&i.$().find(".btn-save").text(a.button),void(a.advance&&(i.$().find("#csb-more").prop("checked",!0),d()))):(i.destroy(),csSidebars.showAjaxError(a),!1))}function g(b,c,d){var e,f={};i.loading(!1),i.destroy(),f.message=b.message,f.parent="#widgets-right",f.insert_after="#cs-title-options",f.id="editor",c?"update"===b.action?(e=csSidebars.find(b.data.id),csSidebars.updateSidebar(e,b.data)):"insert"===b.action&&(csSidebars.insertSidebar(b.data),a(".cs-wrap .custom-sidebars-add-new").detach()):f.type="err",wpmUi.message(f)}function h(){var a=i.$().find("form");return 0<i.$("#csb-more:checked").length&&jQuery("<input>").attr({type:"hidden",value:"show",name:"advance"}).appendTo(a),i.loading(!0),j.reset().data(a).ondone(g).load_json(),!1}var i=null,j=null;return b instanceof CsSidebar&&(b={id:b.getID(),title:csSidebarsData.title_edit.replace("[Sidebar]",b.name),button:csSidebarsData.btn_edit}),i=wpmUi.popup().modal(!0).title(b.title).onshow(c).content(csSidebars.edit_form),c(),f(b,!0,null),j=wpmUi.ajax(null,"cs-ajax"),b.id&&(i.loading(!0),j.reset().data({do:"get",sb:b.id,_wpnonce:csSidebarsData._wpnonce_get}).ondone(f).load_json()),i.show(),i.$().find("#csb-name").focus(),i.$().on("keypress","#csb-name",function(b){13===b.keyCode&&0<a(this).val().length&&a("#csb-description").focus()}),i.$().on("keypress","#csb-description",function(a){13===a.keyCode&&i.$(".btn-save").click()}),i.$().on("click","#csb-more",e),i.$().on("click",".btn-save",h),i.$().on("click",".btn-cancel",i.destroy),!0},updateSidebar:function(a,b){return a.sb.find(".sidebar-name h2").text(b.name),a.sb.find(".sidebar-description").html('<p class="description"></p>').find(".description").text(b.description),csSidebars},insertSidebar:function(a){var b=jQuery('<div class="widgets-holder-wrap"></div>'),c=jQuery('<div class="widgets-sortables ui-sortable"></div>'),d=jQuery('<div class="sidebar-name"><div class="sidebar-name-arrow"><br></div><h2></h2></div>'),e=jQuery('<div class="sidebar-description"></div>'),f=csSidebars.right.find(".sidebars-column-1 > .inner:first");return c.attr("id",a.id),d.find("h2").text(a.name),e.html('<p class="description"></p>').find(".description").text(a.description),d.appendTo(c),e.appendTo(c),c.appendTo(b),b.prependTo(f),jQuery("#widgets-right .sidebar-name").unbind("click"),jQuery("#widgets-left .sidebar-name").unbind("click"),jQuery(document.body).unbind("click.widgets-toggle"),jQuery(".widgets-chooser").off("click.widgets-chooser").off("keyup.widgets-chooser"),jQuery("#available-widgets .widget .widget-title").off("click.widgets-chooser"),jQuery(".widgets-chooser-sidebars").empty(),window.wpWidgets.init(),csSidebars.initSidebars(),csSidebars},showExport:function(){function a(a){var b=jQuery(this).closest("form");return h.reset().data(b).load_http(),g.destroy(),a.preventDefault(),!1}function b(a,b,c){var d={};g.loading(!1),b?g.size(900,600).content(a.html):(d.message=a.message,d.parent=g.$().find(".wpmui-wnd-content"),d.insert_after=!1,d.id="export",d.class="wpmui-wnd-err",d.type="err",wpmUi.message(d))}function c(a){var c=jQuery(this).closest("form");return g.loading(!0),h.reset().data(c).ondone(b).load_json("cs-ajax"),a.preventDefault(),!1}function d(){var a=jQuery(this),b=a.prop("checked"),c=g.$().find(".column-widgets, .import-widgets");b?c.show():c.hide()}function e(){g.size(782,480),g.content(csSidebars.export_form)}function f(){var a=g.$().find(".frm-import");g.loading(!0),h.reset().data(a).load_http("_self")}var g=null,h=null;return g=wpmUi.popup().modal(!0).size(782,480).title(csSidebarsData.title_export).content(csSidebars.export_form).show(),h=wpmUi.ajax(null,"cs-ajax"),g.$().on("submit",".frm-export",a),g.$().on("submit",".frm-preview-import",c),g.$().on("change","#import-widgets",d),g.$().on("click",".btn-cancel",e),g.$().on("click",".btn-import",f),!0},showRemove:function(b){function c(a){a.find(".name").text(j)}function d(){g.loading(!1),g.destroy()}function e(a,b,c){var d={};g.loading(!1),g.destroy(),d.message=a.message,d.parent="#widgets-right",d.insert_after="#cs-title-options",d.id="editor",b?(csSidebars.right.find("#"+i).closest(".widgets-holder-wrap").remove(),csSidebars.remove(i),"delete"===a.action&&window.csSidebars.showGetStartedBox()):d.type="err",wpmUi.message(d)}function f(){g.loading(!0),h.reset().data({do:"delete",sb:i,_wpnonce:a("#_wp_nonce_cs_delete_sidebar").val()}).ondone(e).load_json()}var g=null,h=null,i=b.getID(),j=b.name;return g=wpmUi.popup().modal(!0).size(560,160).title(csSidebarsData.title_delete).content(csSidebars.delete_form).onshow(c).show(),h=wpmUi.ajax(null,"cs-ajax"),g.$().on("click",".btn-cancel",d),g.$().on("click",".btn-delete",f),!0},showLocations:function(b){function c(b,c){var d=wp.template("custom-sidebars-new-rule-row");return a("tbody",c).append(d(b)),a("tfoot",c).hide(),a("tbody .dashicons-trash",c).on("click",function(){a(this).closest("tr").detach(),0===a("tbody tr",c).length&&a("tfoot",c).show()}),!1}function d(b,d,e){function f(a,b,c){var d=jQuery("<option></option>");d.attr("value",c).text(a.name),b.append(d)}function g(a,b,c,d){var e=d.closest(".cs-replaceable").filter("."+b),f=e.find('option[value="'+c+'"]'),g=e.find("optgroup.used"),h=e.find(".detail-toggle");a===l?(f.prop("selected",!0),!0!==h.prop("checked")&&(h.prop("checked",!0),e.addClass("open"),wpmUi.upgrade_multiselect(e))):(g.length||(g=jQuery('<optgroup class="used">').attr("label",e.data("lbl-used")).appendTo(e.find(".details select"))),f.detach().appendTo(g))}var h,j,k;if(i.loading(!1),!d)return i.destroy(),void csSidebars.showAjaxError(b);i.$().find(".sb-name").text(b.sidebar.name);var l=b.sidebar.id;i.$().find(".message.no-sidebars").hide();var m=0,n=i.$().find(".cs-replaceable");n.hide(),b.replaceable=wpmUi.obj(b.replaceable);for(var o in b.replaceable)b.replaceable.hasOwnProperty(o)&&(n.filter("."+b.replaceable[o]).show(),m++);0===m&&(i.$().find(".wpmui-box, .message, .button-primary").hide(),i.$().find(".message.no-sidebars").show().parent().addClass("notice notice-error").removeClass("hidden"));var p=i.$().find(".cs-datalist.cs-cat"),q=i.$().find(".cs-datalist.cs-arc-cat"),r=b.categories;q.empty(),p.empty();for(var s in r)f(r[s],q,s),f(r[s],p,s);for(var t in r){if(r[t].single)for(h in r[t].single)g(r[t].single[h],h,t,p);if(r[t].archive)for(h in r[t].archive)g(r[t].archive[h],h,t,q)}var u=i.$().find(".cs-datalist.cs-pt"),v=b.posttypes;u.empty();for(var w in v)j=jQuery("<option></option>"),k=v[w].name,j.attr("value",w).text(k),u.append(j);for(var x in v)if(v[x].single)for(h in v[x].single)g(v[x].single[h],h,x,u);var y=i.$().find(".cs-datalist.cs-arc"),z=b.archives;y.empty();for(var A in z)j=jQuery("<option></option>"),k=z[A].name,j.attr("value",A).text(k),y.append(j);for(var B in z)if(z[B].archive)for(h in z[B].archive)g(z[B].archive[h],h,B,y);var C=i.$().find(".cs-datalist.cs-arc-aut"),D=b.authors;C.empty();for(var E in D)j=jQuery("<option></option>"),k=D[E].name,j.attr("value",E).text(k),C.append(j);for(var F in D)if(D[F].archive)for(h in D[F].archive)g(D[F].archive[h],h,F,C);i.$().find(".cs-3rd-part .cs-datalist").each(function(){var c=b[a(this).data("id")];a(this).empty();for(var d in c)j=jQuery("<option></option>"),k=c[d].name,j.attr("value",d).text(k),a(this).append(j);for(var e in c)if(c[e].archive)for(h in c[e].archive)g(c[e].archive[h],h,e,a(this))}),i.$().find(".cf-custom-taxonomies .cs-datalist").each(function(){var c=b[a(this).data("id")];a(this).empty();for(var d in c)j=jQuery("<option></option>"),k=c[d].name,j.attr("value",d).text(k),a(this).append(j);for(var e in c)if(c[e].single)for(h in c[e].single)g(c[e].single[h],h,e,a(this))});var G=i.$().find(".csb-media-screen-width table");a.each(b.screen,function(b,d){a.each(d,function(a,d){c({minmax:a,mode:d,size:b},G)})})}function e(a){var b=jQuery(this),c=b.closest(".cs-replaceable"),d=c.find("select");b.prop("checked")?(c.addClass("open"),wpmUi.upgrade_multiselect(c),d.trigger("change.select2")):(c.removeClass("open"),d.val([]))}function f(a,b,c){var d={};i.loading(!1),i.destroy(),d.message=a.message,d.parent="#widgets-right",d.insert_after="#cs-title-options",d.id="editor",b||(d.type="err"),wpmUi.message(d)}function g(){i.loading(!0),j.reset().data(k).ondone(f).load_json()}function h(){return c({minmax:"max",mode:"hide",size:0},a("table",a(this).parent())),!1}var i=null,j=null,k=null,l=b.getID();return i=wpmUi.popup().modal(!0).size(782,560).title(csSidebarsData.title_location).content(csSidebars.location_form).show(),i.loading(!0),k=i.$().find(".frm-location"),k.find(".sb-id").val(l),j=wpmUi.ajax(null,"cs-ajax"),j.reset().data({do:"get-location",sb:l}).ondone(d).load_json(),i.$().on("click",".detail-toggle",e),i.$().on("click",".btn-save",g),i.$().on("click",".btn-cancel",i.destroy),i.$().on("click",".btn-add-rule",h),!0},setReplaceable:function(a,b,c){function d(a,b,c){a instanceof Object&&"object"==typeof a.replaceable&&(csSidebarsData.replaceable=wpmUi.obj(a.replaceable),f.find(".widgets-sortables").each(function(){var a=!1,b=jQuery(this),c=b.attr("id"),d=csSidebars.find(c);for(var e in csSidebarsData.replaceable)if(csSidebarsData.replaceable.hasOwnProperty(e)&&csSidebarsData.replaceable[e]===c){a=!0;break}csSidebars.setReplaceable(d,a,!1)})),f.find(".cs-toolbar .chk-replaceable").prop("disabled",!1),f.find(".cs-toolbar .btn-replaceable").removeClass("wpmui-loading")}var e,f=csSidebars.right.find(".sidebars-column-2 .widgets-holder-wrap"),g=jQuery(a.sb).closest(".widgets-holder-wrap"),h=g.find(".cs-toolbar .chk-replaceable"),i=g.find(".replace-marker");g.find(".cs-toolbar .btn-replaceable");return void 0===b&&(b=h.prop("checked")),void 0===c&&(c=!0),h.data("active")!==b&&(h.data("active",b),h.prop("checked",b),b?(i.length||jQuery("<div></div>").appendTo(g).attr("data-label",csSidebarsData.lbl_replaceable).addClass("replace-marker"),g.addClass("replaceable")):(i.remove(),g.removeClass("replaceable")),c&&(f.find(".cs-toolbar .chk-replaceable").prop("disabled",!0),f.find(".cs-toolbar .btn-replaceable").addClass("wpmui-loading"),e=wpmUi.ajax(null,"cs-ajax"),e.reset().data({do:"replaceable",state:b,sb:a.getID()}).ondone(d).load_json()),!1)},find:function(a){return csSidebars.sidebars[a]},add:function(a,b){return csSidebars.sidebars[a]=new CsSidebar(a,b),csSidebars.sidebars[a]},remove:function(a){delete csSidebars.sidebars[a]},isCustomSidebar:function(a){return jQuery(a).attr("id").substr(0,csSidebars.sidebar_prefix.length)===csSidebars.sidebar_prefix},addIdToLabel:function(a,b){if(!0!==a.data("label-done")){var c=a.attr("for");a.attr("for",c+b),a.find(".has-label").attr("id",c+b),a.data("label-done",!0)}},getIdFromEditbar:function(a){return a.closest(".widgets-holder-wrap").find(".widgets-sortables:first").attr("id")},showGetStartedBox:function(){if(0===a(".sidebars-column-1 .inner .widgets-holder-wrap").length){var b=wp.template("custom-sidebars-new");a(".sidebars-column-1 .inner").before(b()),a(".custom-sidebars-add-new").on("click",function(){a("button.btn-create-sidebar").click()})}}},jQuery(function(a){a("#csfooter").hide(),a("#widgets-right").length>0&&csSidebars.init(),a(".defaultsContainer").hide(),a("#widgets-right .widgets-sortables").on("sort",function(b,c){a("#widgets-right").top;c.position.top=-a("#widgets-right").css("top")})}),jQuery(document).ready(function(a){window.setTimeout(function(){window.csSidebars.showGetStartedBox()},1e3)})}(jQuery),jQuery.fn.sortElements=function(){var a=[].sort;return function(b,c){c=c||function(){return this};var d=this.map(function(){var a=c.call(this),b=a.parentNode,d=b.insertBefore(document.createTextNode(""),a.nextSibling);return function(){if(b===this)throw new Error("You can't sort elements if any one is a descendant of another.");b.insertBefore(this,d),b.removeChild(d)}});return a.call(this,b).each(function(a){d[a].call(c.call(this))})}}(),function(a){jQuery(document).ready(function(a){a("#screen-options-wrap .cs-allow-author input[type=checkbox]").on("change",function(){var b={action:"custom_sidebars_allow_author",_wpnonce:a("#custom_sidebars_allow_author").val(),value:this.checked};a.post(ajaxurl,b)})})}(jQuery),function(a){jQuery(document).ready(function(a){a("#screen-options-wrap .cs-custom-taxonomies input[type=checkbox]").on("change",function(){var b={action:"custom_sidebars_metabox_custom_taxonomies",_wpnonce:a("#custom_sidebars_custom_taxonomies").val(),fields:{}};a("#screen-options-wrap .cs-custom-taxonomies input[type=checkbox]").each(function(){b.fields[a(this).val()]=this.checked}),a.post(ajaxurl,b)})})}(jQuery),function(a){jQuery(document).ready(function(a){a("#screen-options-wrap .cs-roles input[type=checkbox]").on("change",function(){var b={action:"custom_sidebars_metabox_roles",_wpnonce:a("#custom_sidebars_metabox_roles").val(),fields:{}};a("#screen-options-wrap .cs-roles input[type=checkbox]").each(function(){b.fields[a(this).val()]=this.checked}),a.post(ajaxurl,b)})})}(jQuery);
|
assets/js/retirement-admin-notice.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
/*! Custom Sidebars - v3.2.3
|
2 |
-
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
3 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
4 |
/*! Custom Sidebars - v3.2.3
|
5 |
-
* https://premium.wpmudev.org/project/custom-sidebars-pro/
|
6 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
7 |
;(function ($) {
|
8 |
if ( window.WPMUDEV_CS_AdminNotification ) {
|
1 |
/*! Custom Sidebars - v3.2.3
|
|
|
2 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
3 |
/*! Custom Sidebars - v3.2.3
|
|
|
4 |
* Copyright (c) 2020; * Licensed GPLv2+ */
|
5 |
;(function ($) {
|
6 |
if ( window.WPMUDEV_CS_AdminNotification ) {
|
customsidebars.php
CHANGED
@@ -3,15 +3,15 @@
|
|
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.
|
7 |
-
* Author:
|
8 |
-
* Author URI:
|
9 |
* Textdomain: custom-sidebars
|
10 |
-
* WDP ID: 910520
|
11 |
*/
|
12 |
|
13 |
/*
|
14 |
-
Copyright Incsub (http://incsub.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
|
@@ -25,11 +25,8 @@ GNU General Public License for more details.
|
|
25 |
You should have received a copy of the GNU General Public License
|
26 |
along with this program; if not, write to the Free Software
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
-
*/
|
29 |
|
30 |
-
|
31 |
-
This plugin was originally developed by Javier Marquez.
|
32 |
-
http://arqex.com/
|
33 |
*/
|
34 |
|
35 |
function inc_sidebars_init() {
|
@@ -52,7 +49,8 @@ function inc_sidebars_init() {
|
|
52 |
$allowed = array(
|
53 |
'edit.php',
|
54 |
'admin-ajax.php',
|
55 |
-
|
|
|
56 |
'post-new.php',
|
57 |
'widgets.php',
|
58 |
);
|
@@ -86,17 +84,17 @@ function inc_sidebars_init() {
|
|
86 |
// Include function library.
|
87 |
$modules[] = CSB_INC_DIR . 'external/wpmu-lib/core.php';
|
88 |
$modules[] = CSB_INC_DIR . 'class-custom-sidebars.php';
|
89 |
-
|
90 |
$modules[] = CSB_INC_DIR . 'external/wdev-frash/module.php';
|
91 |
-
|
92 |
|
93 |
-
|
|
|
94 |
// Free-version configuration - no drip campaign yet...
|
95 |
$cta_label = false;
|
96 |
$drip_param = false;
|
97 |
-
|
98 |
|
99 |
-
|
|
|
100 |
|
101 |
foreach ( $modules as $path ) {
|
102 |
if ( file_exists( $path ) ) { require_once $path; }
|
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.3
|
7 |
+
* Author: WebFactory Ltd
|
8 |
+
* Author URI: https://www.webfactoryltd.com/
|
9 |
* Textdomain: custom-sidebars
|
|
|
10 |
*/
|
11 |
|
12 |
/*
|
13 |
+
Copyright Incsub 2017 - 2020 (http://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
|
25 |
You should have received a copy of the GNU General Public License
|
26 |
along with this program; if not, write to the Free Software
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
28 |
|
29 |
+
This plugin was originally developed by Javier Marquez. http://arqex.com/
|
|
|
|
|
30 |
*/
|
31 |
|
32 |
function inc_sidebars_init() {
|
49 |
$allowed = array(
|
50 |
'edit.php',
|
51 |
'admin-ajax.php',
|
52 |
+
'post.php',
|
53 |
+
'plugin-install.php',
|
54 |
'post-new.php',
|
55 |
'widgets.php',
|
56 |
);
|
84 |
// Include function library.
|
85 |
$modules[] = CSB_INC_DIR . 'external/wpmu-lib/core.php';
|
86 |
$modules[] = CSB_INC_DIR . 'class-custom-sidebars.php';
|
87 |
+
|
88 |
$modules[] = CSB_INC_DIR . 'external/wdev-frash/module.php';
|
|
|
89 |
|
90 |
+
|
91 |
+
|
92 |
// Free-version configuration - no drip campaign yet...
|
93 |
$cta_label = false;
|
94 |
$drip_param = false;
|
|
|
95 |
|
96 |
+
|
97 |
+
|
98 |
|
99 |
foreach ( $modules as $path ) {
|
100 |
if ( file_exists( $path ) ) { require_once $path; }
|
inc/class-custom-sidebars-checkup-notification.php
CHANGED
@@ -82,49 +82,6 @@ class CustomSidebarsCheckupNotification extends CustomSidebars {
|
|
82 |
* @since 3.0.0
|
83 |
*/
|
84 |
public function init_admin_head() {
|
85 |
-
add_action( 'admin_notices', array( $this, 'admin_notice_scan' ) );
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
* Admin notice scan!
|
90 |
-
*
|
91 |
-
* @since 3.0.1
|
92 |
-
*/
|
93 |
-
public function admin_notice_scan() {
|
94 |
-
$user_id = get_current_user_id();
|
95 |
-
$state = get_user_meta( $user_id, $this->dismiss_name, true );
|
96 |
-
if ( $state ) {
|
97 |
-
return;
|
98 |
-
}
|
99 |
-
lib3()->ui->add( CSB_CSS_URL . 'cs-scan.css' );
|
100 |
-
?>
|
101 |
-
<script type="text/javascript">
|
102 |
-
jQuery(document).on( 'click', '.custom-sidebars-wp-checkup .notice-dismiss', function() {
|
103 |
-
jQuery.ajax({
|
104 |
-
url: ajaxurl,
|
105 |
-
data: {
|
106 |
-
action: '<?php echo esc_attr( $this->dismiss_name ); ?>',
|
107 |
-
_wpnonce: '<?php echo wp_create_nonce( $this->nonce_name . $user_id ) ?>',
|
108 |
-
user_id: <?php echo $user_id ?>
|
109 |
-
}
|
110 |
-
})
|
111 |
-
});
|
112 |
-
</script>
|
113 |
-
<div class="notice is-dismissible custom-sidebars-wp-checkup">
|
114 |
-
<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>
|
115 |
-
<form method="get" action="https://premium.wpmudev.org/wp-checkup/">
|
116 |
-
<input type="hidden" name="external-url" value="1" />
|
117 |
-
<input type="text" name="the-url" value="<?php echo esc_url( get_option( 'home' ) ); ?>" />
|
118 |
-
<input type="submit" value="<?php esc_attr_e( 'Scan', 'custom-sidebars' ); ?>" />
|
119 |
-
<input type="hidden" name="utm_source" value="custom_sidebar_ad" />
|
120 |
-
<input type="hidden" name="utm_campaign" value="custom_sidebar_plugin" />
|
121 |
-
<input type="hidden" name="utm_medium" value="Custom Sidebars Plugin" />
|
122 |
-
</form>
|
123 |
-
<button type="button" class="notice-dismiss">
|
124 |
-
<span class="screen-reader-text">Dismiss this notice.</span>
|
125 |
-
</button>
|
126 |
-
</div>
|
127 |
-
<?php
|
128 |
}
|
129 |
|
130 |
/**
|
@@ -143,7 +100,7 @@ class CustomSidebarsCheckupNotification extends CustomSidebars {
|
|
143 |
*/
|
144 |
public function admin_notices() {
|
145 |
wp_enqueue_script( 'wp-util' );
|
146 |
-
$this->show_box( '
|
147 |
}
|
148 |
|
149 |
/**
|
@@ -176,23 +133,17 @@ class CustomSidebarsCheckupNotification extends CustomSidebars {
|
|
176 |
}
|
177 |
|
178 |
/**
|
179 |
-
* Show
|
180 |
*
|
181 |
* @since 3.0.4
|
182 |
*/
|
183 |
-
private function
|
184 |
?>
|
185 |
<div class="custom-sidebars-box custom-sidebars-checkup">
|
186 |
<div class="cs-inner">
|
187 |
-
<h4
|
188 |
-
<
|
189 |
-
<
|
190 |
-
<input type="hidden" name="external-url" value="1" />
|
191 |
-
<input type="text" name="the-url" value="<?php echo esc_url( get_option( 'home' ) ); ?>" /><input type="submit" value="<?php esc_attr_e( 'Go', 'custom-sidebars' ); ?>" />
|
192 |
-
<input type="hidden" name="utm_source" value="custom_sidebar_ad" />
|
193 |
-
<input type="hidden" name="utm_campaign" value="custom_sidebar_plugin" />
|
194 |
-
<input type="hidden" name="utm_medium" value="Custom Sidebars Plugin" />
|
195 |
-
</form>
|
196 |
</div>
|
197 |
</div>
|
198 |
<?php
|
82 |
* @since 3.0.0
|
83 |
*/
|
84 |
public function init_admin_head() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
}
|
86 |
|
87 |
/**
|
100 |
*/
|
101 |
public function admin_notices() {
|
102 |
wp_enqueue_script( 'wp-util' );
|
103 |
+
$this->show_box( 'wf_ads' );
|
104 |
}
|
105 |
|
106 |
/**
|
133 |
}
|
134 |
|
135 |
/**
|
136 |
+
* Show ads for other plugins box.
|
137 |
*
|
138 |
* @since 3.0.4
|
139 |
*/
|
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
|
inc/class-custom-sidebars.php
CHANGED
@@ -86,7 +86,7 @@ class CustomSidebars {
|
|
86 |
private function __construct() {
|
87 |
add_action( 'init', array( $this, 'integrations' ) );
|
88 |
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
89 |
-
// Extensions use this hook to initialize
|
90 |
do_action( 'cs_init' );
|
91 |
/**
|
92 |
* Add version to media files
|
@@ -99,9 +99,84 @@ class CustomSidebars {
|
|
99 |
*/
|
100 |
add_action( 'admin_notices', array( $this, 'retirement_admin_notice' ) );
|
101 |
add_action( 'wp_ajax_custom_sidebars_retirement_notice_dismiss', array( $this, 'dismiss_retirement_notice' ) );
|
102 |
-
|
|
|
|
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
/**
|
106 |
* Add retirement admin notice
|
107 |
*
|
@@ -142,9 +217,9 @@ class CustomSidebars {
|
|
142 |
public function dismiss_retirement_notice() {
|
143 |
$user_id = filter_input( INPUT_POST, 'user_id', FILTER_VALIDATE_INT );
|
144 |
|
145 |
-
if (
|
146 |
-
! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'wpmudev_sc_dismissed_notice' ) ||
|
147 |
-
$user_id !== get_current_user_id()
|
148 |
) {
|
149 |
|
150 |
wp_send_json(
|
@@ -174,7 +249,7 @@ class CustomSidebars {
|
|
174 |
if ( ! $this->can_user_see_notice() ) {
|
175 |
return;
|
176 |
}
|
177 |
-
|
178 |
$file = 'retirement-admin-notice.js';
|
179 |
$csb_info = get_plugin_data( CSB_PLUGIN );
|
180 |
$version = $csb_info['Version'];
|
@@ -187,10 +262,10 @@ class CustomSidebars {
|
|
187 |
$file = str_replace( '.min.js', '.js', $file );
|
188 |
$version = time();
|
189 |
}
|
190 |
-
wp_enqueue_script(
|
191 |
-
'customsidebars-retirement-notice',
|
192 |
-
CSB_JS_URL . $file,
|
193 |
-
array(),
|
194 |
$version,
|
195 |
true
|
196 |
);
|
@@ -204,12 +279,15 @@ class CustomSidebars {
|
|
204 |
* @since 3.2.4
|
205 |
*/
|
206 |
public function can_user_see_notice() {
|
|
|
|
|
|
|
207 |
if ( is_null( $this->user_can_see_notice ) ) {
|
208 |
$this->user_can_see_notice = true;
|
209 |
|
210 |
-
if (
|
211 |
-
! current_user_can( 'edit_theme_options' ) ||
|
212 |
-
get_user_meta( get_current_user_id(), 'wpmudev_sc_dismissed_notice', true ) )
|
213 |
{
|
214 |
$this->user_can_see_notice = false;
|
215 |
}
|
@@ -237,7 +315,7 @@ class CustomSidebars {
|
|
237 |
public function admin_init() {
|
238 |
$plugin_title = 'Custom Sidebars';/*
|
239 |
end:free */
|
240 |
-
|
241 |
/**
|
242 |
* ID of the WP-Pointer used to introduce the plugin upon activation
|
243 |
*
|
@@ -1112,7 +1190,7 @@ class CustomSidebars {
|
|
1112 |
);
|
1113 |
}
|
1114 |
$url = 'https://wordpress.org/support/plugin/custom-sidebars';
|
1115 |
-
|
1116 |
$actions['support'] = sprintf(
|
1117 |
'<a href="%s">%s</a>',
|
1118 |
esc_url( $url ),
|
86 |
private function __construct() {
|
87 |
add_action( 'init', array( $this, 'integrations' ) );
|
88 |
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
89 |
+
// Extensions use this hook to initialize themselves.
|
90 |
do_action( 'cs_init' );
|
91 |
/**
|
92 |
* Add version to media files
|
99 |
*/
|
100 |
add_action( 'admin_notices', array( $this, 'retirement_admin_notice' ) );
|
101 |
add_action( 'wp_ajax_custom_sidebars_retirement_notice_dismiss', array( $this, 'dismiss_retirement_notice' ) );
|
102 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'dismiss_retirement_notice_js' ) );
|
103 |
+
|
104 |
+
add_filter('install_plugins_table_api_args_featured', array($this, 'featured_plugins_tab'));
|
105 |
}
|
106 |
|
107 |
+
/**
|
108 |
+
* Helper function for adding plugins to featured list
|
109 |
+
*
|
110 |
+
* @return array
|
111 |
+
*/
|
112 |
+
function featured_plugins_tab($args)
|
113 |
+
{
|
114 |
+
add_filter('plugins_api_result', array($this, 'plugins_api_result'), 10, 3);
|
115 |
+
|
116 |
+
return $args;
|
117 |
+
} // featured_plugins_tab
|
118 |
+
|
119 |
+
|
120 |
+
/**
|
121 |
+
* Add single plugin to featured list
|
122 |
+
*
|
123 |
+
* @return object
|
124 |
+
*/
|
125 |
+
function add_plugin_featured($plugin_slug, $res)
|
126 |
+
{
|
127 |
+
// check if plugin is already on the list
|
128 |
+
if (!empty($res->plugins) && is_array($res->plugins)) {
|
129 |
+
foreach ($res->plugins as $plugin) {
|
130 |
+
if (is_object($plugin) && !empty($plugin->slug) && $plugin->slug == $plugin_slug) {
|
131 |
+
return $res;
|
132 |
+
}
|
133 |
+
} // foreach
|
134 |
+
}
|
135 |
+
|
136 |
+
$plugin_info = get_transient('wf-plugin-info-' . $plugin_slug);
|
137 |
+
|
138 |
+
if (!$plugin_info) {
|
139 |
+
$plugin_info = plugins_api('plugin_information', array(
|
140 |
+
'slug' => $plugin_slug,
|
141 |
+
'is_ssl' => is_ssl(),
|
142 |
+
'fields' => array(
|
143 |
+
'banners' => true,
|
144 |
+
'reviews' => true,
|
145 |
+
'downloaded' => true,
|
146 |
+
'active_installs' => true,
|
147 |
+
'icons' => true,
|
148 |
+
'short_description' => true,
|
149 |
+
)
|
150 |
+
));
|
151 |
+
if (!is_wp_error($plugin_info)) {
|
152 |
+
set_transient('wf-plugin-info-' . $plugin_slug, $plugin_info, DAY_IN_SECONDS * 7);
|
153 |
+
}
|
154 |
+
}
|
155 |
+
|
156 |
+
if (!empty($res->plugins) && is_array($res->plugins) && $plugin_info && is_object($plugin_info)) {
|
157 |
+
array_unshift($res->plugins, $plugin_info);
|
158 |
+
}
|
159 |
+
|
160 |
+
return $res;
|
161 |
+
} // add_plugin_featured
|
162 |
+
|
163 |
+
|
164 |
+
/**
|
165 |
+
* Add plugins to featured plugins list
|
166 |
+
*
|
167 |
+
* @return object
|
168 |
+
*/
|
169 |
+
function plugins_api_result($res, $action, $args)
|
170 |
+
{
|
171 |
+
remove_filter('plugins_api_result', array($this, 'plugins_api_result'), 10, 3);
|
172 |
+
|
173 |
+
$res = $this->add_plugin_featured('eps-301-redirects', $res);
|
174 |
+
$res = $this->add_plugin_featured('simple-author-box', $res);
|
175 |
+
$res = $this->add_plugin_featured('sticky-menu-or-anything-on-scroll', $res);
|
176 |
+
|
177 |
+
return $res;
|
178 |
+
} // plugins_api_result
|
179 |
+
|
180 |
/**
|
181 |
* Add retirement admin notice
|
182 |
*
|
217 |
public function dismiss_retirement_notice() {
|
218 |
$user_id = filter_input( INPUT_POST, 'user_id', FILTER_VALIDATE_INT );
|
219 |
|
220 |
+
if (
|
221 |
+
! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'wpmudev_sc_dismissed_notice' ) ||
|
222 |
+
$user_id !== get_current_user_id()
|
223 |
) {
|
224 |
|
225 |
wp_send_json(
|
249 |
if ( ! $this->can_user_see_notice() ) {
|
250 |
return;
|
251 |
}
|
252 |
+
|
253 |
$file = 'retirement-admin-notice.js';
|
254 |
$csb_info = get_plugin_data( CSB_PLUGIN );
|
255 |
$version = $csb_info['Version'];
|
262 |
$file = str_replace( '.min.js', '.js', $file );
|
263 |
$version = time();
|
264 |
}
|
265 |
+
wp_enqueue_script(
|
266 |
+
'customsidebars-retirement-notice',
|
267 |
+
CSB_JS_URL . $file,
|
268 |
+
array(),
|
269 |
$version,
|
270 |
true
|
271 |
);
|
279 |
* @since 3.2.4
|
280 |
*/
|
281 |
public function can_user_see_notice() {
|
282 |
+
// for now we don't need this because WP 5.7 is not out
|
283 |
+
return false;
|
284 |
+
|
285 |
if ( is_null( $this->user_can_see_notice ) ) {
|
286 |
$this->user_can_see_notice = true;
|
287 |
|
288 |
+
if (
|
289 |
+
! current_user_can( 'edit_theme_options' ) ||
|
290 |
+
get_user_meta( get_current_user_id(), 'wpmudev_sc_dismissed_notice', true ) )
|
291 |
{
|
292 |
$this->user_can_see_notice = false;
|
293 |
}
|
315 |
public function admin_init() {
|
316 |
$plugin_title = 'Custom Sidebars';/*
|
317 |
end:free */
|
318 |
+
|
319 |
/**
|
320 |
* ID of the WP-Pointer used to introduce the plugin upon activation
|
321 |
*
|
1190 |
);
|
1191 |
}
|
1192 |
$url = 'https://wordpress.org/support/plugin/custom-sidebars';
|
1193 |
+
|
1194 |
$actions['support'] = sprintf(
|
1195 |
'<a href="%s">%s</a>',
|
1196 |
esc_url( $url ),
|
readme.txt
CHANGED
@@ -1,15 +1,18 @@
|
|
1 |
-
=== Custom Sidebars - Dynamic Widget Area Manager ===
|
2 |
-
Contributors:
|
3 |
-
Tags: sidebar, widget,
|
4 |
Requires at least: 4.6
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 3.
|
|
|
|
|
|
|
7 |
|
8 |
-
Flexible sidebars for custom widget configurations on
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
**
|
13 |
|
14 |
Make custom sidebar configurations and be able to choose what widgets display on each page or post of your site.
|
15 |
|
@@ -42,16 +45,6 @@ Every part of Custom Sidebars integrates seamlessly with the Widgets menu for si
|
|
42 |
>
|
43 |
> 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.
|
44 |
|
45 |
-
#### Custom Sidebars Is Fully-Loaded
|
46 |
-
|
47 |
-
If you run a design agency, or just want to get rid of the ads, checkout [Custom Sidebars Pro](https://premium.wpmudev.org/project/custom-sidebars-pro):
|
48 |
-
|
49 |
-
* Ad free
|
50 |
-
* [24/7 support](https://premium.wpmudev.org/support/) for all things WordPress
|
51 |
-
* [Upfront themes, 100+ premium plugins and WPMU DEV services](http://premium.wpmudev.org/join/) – Including speed optimization, managed backups with 10GB cloud storage and security hardening
|
52 |
-
|
53 |
-
Get [Custom Sidebars Pro](https://premium.wpmudev.org/project/custom-sidebars-pro/) 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!
|
54 |
-
|
55 |
== Screenshots ==
|
56 |
|
57 |
1. Set custom sidebars for individual posts and pages or by category, post-type, or archive.
|
@@ -75,16 +68,10 @@ There are two ways of installing the plugin:
|
|
75 |
|
76 |
Once you have the plugin activated you will find all new features inside your "Widgets" screen! There you will be able to create and manage your own sidebars.
|
77 |
|
78 |
-
Find more usage information on the [Custom Sidebars Pro page](https://premium.wpmudev.org/project/custom-sidebars-pro/).
|
79 |
-
|
80 |
[youtube https://www.youtube.com/watch?v=q05O9OFEYHM]
|
81 |
|
82 |
== Frequently Asked Questions ==
|
83 |
|
84 |
-
= How do I begin working with this plugin? =
|
85 |
-
|
86 |
-
Please refer to [the usage section of Custom Sidebars Pro](https://premium.wpmudev.org/project/custom-sidebars-pro/#usage).
|
87 |
-
|
88 |
= Why can't I see a widget menu? =
|
89 |
|
90 |
This plugin requires your theme to have widget areas enabled, if you don't have widget areas enabled you probably need to use a different theme that does!
|
@@ -111,6 +98,11 @@ Custom Sidebars has the same license as WordPress, so you can use it wherever yo
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
|
|
114 |
= 3.2.4 =
|
115 |
* Added deprecation notice
|
116 |
|
@@ -484,7 +476,4 @@ This version adds several options for customize the sidebars by categories and r
|
|
484 |
|
485 |
== Contact and Credits ==
|
486 |
|
487 |
-
Custom sidebars is maintained and developed by [WPMU DEV](http://premium.wpmudev.org).
|
488 |
-
|
489 |
Original development completed by [Javier Marquez](http://marquex.es/).
|
490 |
-
|
1 |
+
=== Custom Sidebars - Dynamic Sidebar Widget Area Manager ===
|
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.6
|
6 |
+
Stable tag: 3.3
|
7 |
+
Requires PHP: 5.6
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Flexible sidebars for custom widget configurations on any page or post. Create custom sidebars with ease!
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
**Manage and replace sidebars and other widget areas on your site with Custom Sidebars, a flexible widget area manager.**
|
16 |
|
17 |
Make custom sidebar configurations and be able to choose what widgets display on each page or post of your site.
|
18 |
|
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
== Screenshots ==
|
49 |
|
50 |
1. Set custom sidebars for individual posts and pages or by category, post-type, or archive.
|
68 |
|
69 |
Once you have the plugin activated you will find all new features inside your "Widgets" screen! There you will be able to create and manage your own sidebars.
|
70 |
|
|
|
|
|
71 |
[youtube https://www.youtube.com/watch?v=q05O9OFEYHM]
|
72 |
|
73 |
== Frequently Asked Questions ==
|
74 |
|
|
|
|
|
|
|
|
|
75 |
= Why can't I see a widget menu? =
|
76 |
|
77 |
This plugin requires your theme to have widget areas enabled, if you don't have widget areas enabled you probably need to use a different theme that does!
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 3.3 =
|
102 |
+
* 2021-01-13
|
103 |
+
* Minor fixes
|
104 |
+
* WebFactory took over development
|
105 |
+
|
106 |
= 3.2.4 =
|
107 |
* Added deprecation notice
|
108 |
|
476 |
|
477 |
== Contact and Credits ==
|
478 |
|
|
|
|
|
479 |
Original development completed by [Javier Marquez](http://marquex.es/).
|
|