public static function get_sidebars( $exclude = array() ) {
global $wp_registered_sidebars;
$result = array();
foreach( (array)$wp_registered_sidebars as $key => $sidebar ) {
if( empty($exclude) || ( $exclude && ! in_array( $key, $exclude ) ) ) {
$result[$key] = $sidebar['name'];
}
}
return $result;
}