Archived
Updates bonanza
This commit is contained in:
1 parent
d26191c9f8
commit
9d480fc3c5
1366 files changed
+220321
-90180
No files matched your search
@@ -58,27 +58,40 @@ function _sort_name_callback( $a, $b ) {
|
||||
|
||||
/**
|
||||
* Show the widgets and their settings for a sidebar.
|
||||
* Used in the the admin widget config screen.
|
||||
* Used in the admin widget config screen.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param string $sidebar id slug of the sidebar
|
||||
* @param string optional $sidebar_name Include the HTML for the sidebar name
|
||||
*/
|
||||
function wp_list_widget_controls( $sidebar ) {
|
||||
function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) {
|
||||
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 ) ) {
|
||||
echo "<div class='sidebar-description'>\n";
|
||||
echo "\t<p class='description'>$description</p>";
|
||||
echo "</div>\n";
|
||||
echo '<div id="' . esc_attr( $sidebar ) . '" class="widgets-sortables">';
|
||||
|
||||
if ( $sidebar_name ) {
|
||||
?>
|
||||
<div class="sidebar-name">
|
||||
<div class="sidebar-name-arrow"><br /></div>
|
||||
<h3><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h3>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
echo '<div class="sidebar-description">';
|
||||
|
||||
if ( ! empty( $description ) ) {
|
||||
echo '<p class="description">' . $description . '</p>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
||||
dynamic_sidebar( $sidebar );
|
||||
echo "</div>\n";
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -224,5 +237,6 @@ function wp_widget_control( $sidebar_args ) {
|
||||
</div>
|
||||
<?php
|
||||
echo $sidebar_args['after_widget'];
|
||||
|
||||
return $sidebar_args;
|
||||
}
|
||||
Reference in new issue
Block a user