WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/07/2008 09:57:54 PM (14 years ago)
Author:
ryan
Message:

Widget interface updates from mdawaffe. see #5583

File:
1 edited

Legend:

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

    r6726 r6754  
    22
    33require_once( 'admin.php' );
     4require_once(ABSPATH . 'wp-admin/includes/widgets.php');
    45
    56if ( ! current_user_can('switch_themes') )
     
    147148));
    148149*/
    149 $page_links = false;
     150$page_links = ' ';
    150151
    151152// Unsanitized!
     
    181182    <p id="widget-search">
    182183        <input type="text" id="widget-search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" />
    183         <input type="submit" value="<?php _e( 'Search Widgets' ); ?>" />
     184        <input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" />
    184185    </p>
    185186
     
    187188    <div id="available-widgets-filter" class="widget-liquid-left">
    188189        <h3><?php printf( __('Available Widgets %s'), '<a href="#help:avaliable-widgets" class="wp-context-help">?</a>' ); ?></h3>
    189         <p>
     190        <div class="nav">
    190191            <select name="show">
    191192<?php foreach ( $show_values as $show_value => $show_text ) : $show_value = attribute_escape( $show_value ); ?>
     
    194195            </select>
    195196            <input type="submit" value="<?php _e('Show' ); ?>" />
    196         </p>
    197 <?php if ( $page_links ) : ?>
    198         <p class="pagenav">
    199             <?php echo $page_links; ?>
    200 
    201         </p>
    202 <?php endif; ?>
     197            <p class="pagenav">
     198                <?php echo $page_links; ?>
     199            </p>
     200        </div>
    203201    </div>
    204202    </div>
     
    207205        <h3><?php printf( __('Current Widgets %s'), '<a href="#help:current-widgets" class="wp-context-help">?</a>' ); ?></h3>
    208206
    209 <?php if ( 1 < $sidebars_count ) : ?>
    210 
    211         <p>
     207        <div class="nav">
    212208            <select id="sidebar-selector" name="sidebar">
    213209<?php foreach ( $wp_registered_sidebars as $sidebar_id => $registered_sidebar ) : $sidebar_id = attribute_escape( $sidebar_id ); ?>
     
    216212            </select>
    217213            <input type="submit" value="<?php _e('Go' ); ?>" />
    218         </p>
    219 
    220 <?php endif; ?>
     214        </div>
    221215
    222216    </div>
     
    230224            <?php wp_list_widgets( $show, $widget_search ); // This lists all the widgets for the query ( $show, $search ) ?>
    231225
    232 <?php if ( $page_links ) : ?>
    233             <p class="pagenav">
    234                 <?php echo $page_links; ?>
    235 
    236             </p>
    237 <?php endif; ?>
    238 
     226            <div class="nav">
     227                <p class="pagenav">
     228                    <?php echo $page_links; ?>
     229                </p>
     230            </div>
    239231        </div>
    240232    </div>
     
    260252        </div>
    261253    </div>
     254
     255    <br class="clear" />
    262256
    263257    <p class="submit">
Note: See TracChangeset for help on using the changeset viewer.