WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/03/2009 05:27:13 AM (11 years ago)
Author:
azaozz
Message:

Widgets UI styling, see #9511

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/widgets.php

    r11150 r11160  
    256256
    257257        <form action="widgets.php" method="post">
    258         <div class="widget-control">
     258        <div class="widget-inside">
    259259<?php   call_user_func_array( $control_callback, $control['params'] ); ?>
    260260        </div>
    261261
     262        <p class="describe"><?php _e('Select both the sidebar for this widget and the position of the widget in that sidebar.'); ?></p>
    262263        <div class="widget-position">
    263264        <table class="widefat"><thead><tr><th><?php _e('Sidebar'); ?></th><th><?php _e('Position'); ?></th></tr></thead><tbody>
     
    300301        <input type="hidden" name="multi_number" class="multi_number" value="<?php echo attr($multi_number); ?>" />
    301302<?php   wp_nonce_field("save-delete-widget-$widget_id"); ?>
     303        <br class="clear" />
    302304        </div>
    303305        </form>
     
    342344    </div>
    343345
    344     <div id="wp_inactive_widgets" class="widgets-holder-wrap">
     346    <div class="widgets-holder-wrap">
    345347        <h3 class="sidebar-name"><?php _e('Inactive Widgets'); ?>
    346348        <span><img src="images/wpspin.gif" class="ajax-feedback" title="" alt="" /></span></h3>
    347         <p class="description"><?php _e('Drag widgets here to remove them from the web site but keep their settings.'); ?></p>
     349        <div class="widget-holder inactive">
     350        <p class="description"><?php _e('Drag widgets here to remove them from the sidebar but keep their settings.'); ?></p>
    348351        <?php wp_list_widget_controls('wp_inactive_widgets'); ?>
    349352        <br class="clear" />
     353        </div>
    350354    </div>
    351355</div>
     
    353357
    354358<div class="widget-liquid-right">
     359<div id="widgets-right">
    355360<?php
    356361$i = 0;
    357362foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {
    358363    if ( 'wp_inactive_widgets' == $sidebar )
    359         continue; ?>
    360     <div id="<?php echo attr( $sidebar ); ?>" class="widgets-holder-wrap">
     364        continue;
     365    $closed = $i ? ' closed' : ''; ?>
     366    <div class="widgets-holder-wrap<?php echo $closed; ?>">
    361367    <h3 class="sidebar-name"><?php echo wp_specialchars( $registered_sidebar['name'] ); ?>
    362368    <span><img src="images/wpspin.gif" class="ajax-feedback" title="" alt="" /></span></h3>
    363     <?php wp_list_widget_controls( $sidebar, $i ); // Show the control forms for each of the widgets in this sidebar ?>
     369    <?php wp_list_widget_controls( $sidebar ); // Show the control forms for each of the widgets in this sidebar ?>
    364370    </div>
    365371<?php
    366372    $i++;
    367373} ?>
     374</div>
    368375</div>
    369376<form action="" method="post">
Note: See TracChangeset for help on using the changeset viewer.