Make WordPress Core


Ignore:
Timestamp:
04/27/2007 12:51:19 AM (18 years ago)
Author:
rob1n
Message:

Widgets RTL CSS, and a few little widget bugfixes. Props Sewar. fixes #4185

File:
1 edited

Legend:

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

    r5316 r5324  
    1515    define( 'WP_WIDGETS_HEIGHT', 35 * ( count( $wp_registered_widgets ) ) );
    1616?>
     17    <link rel="stylesheet" href="widgets.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    1718    <style type="text/css">
    18     <?php include dirname( __FILE__ ) . '/widgets.css'; ?>
     19        .dropzone ul { height: <?php echo constant( 'WP_WIDGETS_HEIGHT' ); ?>px; }
     20        #sbadmin #zones { width: <?php echo constant( 'WP_WIDGETS_WIDTH' ); ?>px; }
    1921    </style>
    20 <?php
     22<?php if ( ('rtl' == get_bloginfo('text_direction')) ) : ?>
     23    <link rel="stylesheet" href="widgets-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
     24<?php
     25    endif;
    2126}
    2227
     
    220225            <?php foreach ( $wp_registered_widget_controls as $name => $widget ) { ?>
    221226                <div class="hidden" id="<?php echo $widget['id']; ?>control">
    222                     <span class="controlhandle"><?php echo $name; ?></span>
     227                    <span class="controlhandle"><?php echo $widget['name']; ?></span>
    223228                    <span id="<?php echo $widget['id']; ?>closer" class="controlcloser">&#215;</span>
    224229                    <div class="controlform">
Note: See TracChangeset for help on using the changeset viewer.