Bring in the widgets component of MP6. See #25858.

* A cleaner UI, with a simpler design for available and inactive widgets, and more emphasis on your sidebars.
* Available widgets and sidebars expand to two columns at larger screen sizes making it easier to manage sites with lots of sidebars.
* New dropzone indicator for empty sidebars.

Props shaunandrews, joen, iammattthomas.



git-svn-id: https://develop.svn.wordpress.org/trunk@26140 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Thomas
2013-11-13 20:05:51 +00:00
parent 2e54579af7
commit e00060118b
3 changed files with 431 additions and 289 deletions
+1 -2
View File
@@ -67,8 +67,6 @@ function _sort_name_callback( $a, $b ) {
function wp_list_widget_controls( $sidebar ) {
add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' );
echo "<div id='$sidebar' class='widgets-sortables'>\n";
$description = wp_sidebar_description( $sidebar );
if ( !empty( $description ) ) {
@@ -77,6 +75,7 @@ function wp_list_widget_controls( $sidebar ) {
echo "</div>\n";
}
echo "<div id='$sidebar' class='widgets-sortables'>\n";
dynamic_sidebar( $sidebar );
echo "</div>\n";
}