Make WordPress Core

Changeset 5324


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

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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-admin/widgets.css

    r5298 r5324  
    44
    55#sbadmin #zones {
    6         width: <?php echo constant( 'WP_WIDGETS_WIDTH' ); ?>px;
    76        -moz-user-select: none;
    87        -khtml-user-select: none;
    … …  
    3130        list-style-type: none;
    3231        width: 240px;
    33         height: <?php echo constant( 'WP_WIDGETS_HEIGHT' ); ?>px;
    3432        float: left;
    3533        margin: 0;
  • branches/2.2/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">
  • trunk/wp-admin/widgets.css

    r5299 r5324  
    44
    55#sbadmin #zones {
    6         width: <?php echo constant( 'WP_WIDGETS_WIDTH' ); ?>px;
    76        -moz-user-select: none;
    87        -khtml-user-select: none;
    … …  
    3130        list-style-type: none;
    3231        width: 240px;
    33         height: <?php echo constant( 'WP_WIDGETS_HEIGHT' ); ?>px;
    3432        float: left;
    3533        margin: 0;
  • 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.