├── assets ├── img │ ├── devman.png │ ├── heart.png │ ├── stripes.png │ ├── hand-with-heart.png │ └── metabox │ │ ├── blogpage-info.png │ │ ├── wooshop-info.png │ │ └── frontpage-info.png ├── sass │ ├── _mixins.scss │ ├── cs-scan.scss │ ├── cs-cloning.scss │ ├── _custom-sidebars-checkup.scss │ └── cs-visibility.scss ├── js │ ├── src │ │ ├── metabox-allow-entry-author.js │ │ ├── metabox-roles.js │ │ ├── metabox-custom-taxonomies.js │ │ ├── cs-visibility.js │ │ └── cs-cloning.js │ ├── cs-visibility.min.js │ ├── cs-cloning.min.js │ ├── cs-visibility.js │ ├── cs-cloning.js │ └── cs.min.js └── css │ ├── cs-scan.min.css │ ├── cs-cloning.min.css │ ├── cs-scan.css │ ├── cs-cloning.css │ ├── cs-visibility.min.css │ ├── cs-visibility.css │ └── cs.min.css ├── languages ├── custom-sidebars-cs_CZ.mo ├── custom-sidebars-da_DK.mo ├── custom-sidebars-de_DE.mo ├── custom-sidebars-en_EN.mo ├── custom-sidebars-es_ES.mo ├── custom-sidebars-fr_FR.mo ├── custom-sidebars-he_IL.mo ├── custom-sidebars-hu_HU.mo ├── custom-sidebars-it_IT.mo ├── custom-sidebars-nl_BE.mo ├── custom-sidebars-nl_NL.mo ├── custom-sidebars-pl_PL.mo └── custom-sidebars-pt_BR.mo ├── views ├── widgets-delete.php ├── quick-edit.php ├── bulk-edit.php ├── widgets-export.php ├── col-sidebars.php ├── widgets-editor.php ├── metabox.php ├── widgets.php ├── widgets-location.php └── import.php ├── inc ├── integrations │ ├── class-custom-sidebars-integration.php │ ├── class-custom-sidebars-integration-wpml.php │ ├── class-custom-sidebars-integration-wml.php │ └── class-custom-sidebars-integration-polylang.php ├── class-custom-sidebars-widgets.php ├── class-custom-sidebars-checkup-notification.php ├── class-custom-sidebars-explain.php └── class-custom-sidebars-cloning.php ├── customsidebars.php ├── README.md └── license.txt /assets/img/devman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/assets/img/devman.png -------------------------------------------------------------------------------- /assets/img/heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/assets/img/heart.png -------------------------------------------------------------------------------- /assets/img/stripes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/assets/img/stripes.png -------------------------------------------------------------------------------- /assets/img/hand-with-heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/assets/img/hand-with-heart.png -------------------------------------------------------------------------------- /assets/img/metabox/blogpage-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/assets/img/metabox/blogpage-info.png -------------------------------------------------------------------------------- /assets/img/metabox/wooshop-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/assets/img/metabox/wooshop-info.png -------------------------------------------------------------------------------- /languages/custom-sidebars-cs_CZ.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-cs_CZ.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-da_DK.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-da_DK.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-de_DE.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-en_EN.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-en_EN.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-es_ES.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-fr_FR.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-he_IL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-he_IL.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-hu_HU.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-hu_HU.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-it_IT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-it_IT.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-nl_BE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-nl_BE.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-nl_NL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-nl_NL.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-pl_PL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-pl_PL.mo -------------------------------------------------------------------------------- /languages/custom-sidebars-pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/languages/custom-sidebars-pt_BR.mo -------------------------------------------------------------------------------- /assets/img/metabox/frontpage-info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpmudev/custom-sidebars/master/assets/img/metabox/frontpage-info.png -------------------------------------------------------------------------------- /assets/sass/_mixins.scss: -------------------------------------------------------------------------------- 1 | $red: #a00; 2 | 3 | @mixin border-radius($radius) { 4 | -webkit-border-radius: $radius; 5 | -moz-border-radius: $radius; 6 | -ms-border-radius: $radius; 7 | border-radius: $radius; 8 | } 9 | @mixin box-shadow($args) { 10 | -webkit-box-shadow: $args; 11 | -moz-box-shadow: $args; 12 | box-shadow: $args; 13 | } 14 | -------------------------------------------------------------------------------- /assets/js/src/metabox-allow-entry-author.js: -------------------------------------------------------------------------------- 1 | /*global jQuery:false */ 2 | /*global console:false */ 3 | /*global document:false */ 4 | /*global ajaxurl:false */ 5 | (function($){ 6 | jQuery(document).ready( function($) { 7 | $('#screen-options-wrap .cs-allow-author input[type=checkbox]').on( 'change', function() { 8 | var data = { 9 | 'action': 'custom_sidebars_allow_author', 10 | '_wpnonce': $('#custom_sidebars_allow_author').val(), 11 | 'value': this.checked 12 | }; 13 | $.post( ajaxurl, data ); 14 | }); 15 | }); 16 | })(jQuery); 17 | -------------------------------------------------------------------------------- /assets/css/cs-scan.min.css: -------------------------------------------------------------------------------- 1 | .custom-sidebars-wp-checkup{border-radius:4px;-ms-flex-align:center;align-items:center;background:#fff url(../img/heart.png) no-repeat 0 50%;border:0;display:-ms-flexbox;display:flex;min-height:100px;padding-left:135px;-ms-flex-pack:justify;justify-content:space-between}.custom-sidebars-wp-checkup form{white-space:nowrap}.custom-sidebars-wp-checkup form input{border:0;border-radius:4px}.custom-sidebars-wp-checkup form input[type=text]{background-color:#f2f2f2;padding:15px 14px}.custom-sidebars-wp-checkup form input[type=submit]{background-color:#17a8e3;color:#fff;padding:15px 35px;text-transform:uppercase;margin-left:10px}.custom-sidebars-wp-checkup p{font-size:1.2em}.custom-sidebars-wp-checkup p b{color:#840006} -------------------------------------------------------------------------------- /views/widgets-delete.php: -------------------------------------------------------------------------------- 1 | 8 | 9 |
'; 89 | _e( 'Here you can replace the default sidebars. Simply select what sidebar you want to show for this post!', 'custom-sidebars' ); 90 | echo '
'; 91 | if ( ! empty( $sidebars ) ) { 92 | global $wp_registered_sidebars; 93 | $available = CustomSidebars::sort_sidebars_by_name( $wp_registered_sidebars ); 94 | foreach ( $sidebars as $s ) { ?> 95 | 96 |97 | 100 | 110 |
111 | '; 115 | printf( 116 | __( 'All sidebars have been locked, you cannot replace them. Go to the widgets page to unlock a sidebar.', 'custom-sidebars' ), 117 | admin_url( 'widgets.php' ) 118 | ); 119 | echo ''; 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /customsidebars.php: -------------------------------------------------------------------------------- 1 | 910520, 118 | 'name' => 'Custom Sidebars Pro', 119 | 'screens' => array( 120 | 'widgets', 121 | ), 122 | ); 123 | /* end:pro */ 124 | 125 | foreach ( $modules as $path ) { 126 | if ( file_exists( $path ) ) { require_once $path; } 127 | } 128 | 129 | // Register the current plugin, for pro and free plugins! 130 | do_action( 131 | 'wdev-register-plugin', 132 | /* Plugin ID */ plugin_basename( __FILE__ ), 133 | /* Plugin Title */ 'CustomSidebars', 134 | /* https://wordpress.org */ '/plugins/custom-sidebars/', 135 | /* Email Button CTA */ $cta_label, 136 | /* getdrip Plugin param */ $drip_param 137 | ); 138 | 139 | // Initialize the plugin 140 | CustomSidebars::instance(); 141 | } 142 | 143 | inc_sidebars_init(); 144 | 145 | if ( ! class_exists( 'CustomSidebarsEmptyPlugin' ) ) { 146 | class CustomSidebarsEmptyPlugin extends WP_Widget { 147 | public function __construct() { 148 | parent::__construct( false, $name = 'CustomSidebarsEmptyPlugin' ); 149 | } 150 | public function form( $instance ) { 151 | //Nothing, just a dummy plugin to display nothing 152 | } 153 | public function update( $new_instance, $old_instance ) { 154 | //Nothing, just a dummy plugin to display nothing 155 | } 156 | public function widget( $args, $instance ) { 157 | echo ''; 158 | } 159 | } //end class 160 | } //end if class exists 161 | 162 | 163 | // Translation. 164 | function inc_sidebars_init_translation() { 165 | load_plugin_textdomain( 'custom-sidebars', false, basename( dirname( __FILE__ ) ) . '/languages' ); 166 | } 167 | add_action( 'plugins_loaded', 'inc_sidebars_init_translation' ); 168 | -------------------------------------------------------------------------------- /views/widgets.php: -------------------------------------------------------------------------------- 1 | 8 | 9 |