Ticket #4185: 4185.2.diff
File 4185.2.diff, 2.9 KB (added by , 17 years ago) |
---|
-
wp-admin/widgets-rtl.css
1 #sbreset, #lastmodule, #palettediv .module, .dropzone, .dropzone ul { float: right; } 2 3 * .module, #lastmodule { text-align: right; } 4 5 * html #palettediv ul { padding: 0 10px 0 0; } 6 7 #palettediv ul { padding: 0 10px 0 0; } 8 9 * .handle, #lastmodule span { 10 border-right: 1px solid #f2f2f2; 11 border-left: 1px solid #e8e8e8; 12 } 13 14 #sbadmin p.submit { 15 padding-right: 0; 16 padding-left: 10px; 17 clear: right; 18 } 19 20 #palettediv .module, #lastmodule, .dropzone { 21 margin-right: auto; 22 margin-left: 10px; 23 } 24 25 * .popper { 26 right: auto; 27 left: 3px; 28 background-position: 5px 0; 29 } 30 31 .controlcloser { 32 right: auto; 33 left: 8px; 34 } 35 36 #shadow { 37 left: auto; 38 right: 0px; 39 } 40 No newline at end of file -
wp-admin/widgets.css
3 3 } 4 4 5 5 #sbadmin #zones { 6 width: <?php echo constant( 'WP_WIDGETS_WIDTH' ); ?>px;7 6 -moz-user-select: none; 8 7 -khtml-user-select: none; 9 8 user-select: none; … … 30 29 .dropzone ul { 31 30 list-style-type: none; 32 31 width: 240px; 33 height: <?php echo constant( 'WP_WIDGETS_HEIGHT' ); ?>px;34 32 float: left; 35 33 margin: 0; 36 34 padding: 0; -
wp-admin/widgets.php
14 14 define( 'WP_WIDGETS_WIDTH', 1 + 262 * ( count( $wp_registered_sidebars ) ) ); 15 15 define( 'WP_WIDGETS_HEIGHT', 35 * ( count( $wp_registered_widgets ) ) ); 16 16 ?> 17 <link rel="stylesheet" href="widgets.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 17 18 <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; } 19 21 </style> 22 <?php if ( ('rtl' == get_bloginfo('text_direction')) ) : ?> 23 <link rel="stylesheet" href="widgets-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 20 24 <?php 25 endif; 21 26 } 22 27 23 28 add_action( 'admin_head', 'wp_widgets_admin_head' ); … … 219 224 <div id="controls"> 220 225 <?php foreach ( $wp_registered_widget_controls as $name => $widget ) { ?> 221 226 <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> 223 228 <span id="<?php echo $widget['id']; ?>closer" class="controlcloser">×</span> 224 229 <div class="controlform"> 225 230 <?php call_user_func_array( $widget['callback'], $widget['params'] ); ?>