Ticket #6876: widgets-arrangement.patch
| File widgets-arrangement.patch, 5.9 kB (added by azaozz, 7 months ago) |
|---|
-
wp-admin/css/widgets-rtl.css
old new 38 38 left:1em; 39 39 } 40 40 41 li.widget-list-control-item div.widget-control {42 padding:0 0 0 10px;43 }44 41 ul.widget-control-list div.widget-control-actions { 45 42 margin-right:0; 46 43 margin-left:-10px; 47 44 } 48 ul.widget-control-list .widget-title { 49 text-align:right; 45 ul.widget-control-list h4.widget-title, 46 #dragHelper h4.widget-title { 47 text-align: right; 48 padding: 0.4em 0.8em 0.4em 2.5em; 50 49 } -
wp-admin/css/widgets.css
old new 74 74 font-size: 11px; 75 75 } 76 76 77 78 77 ul#widget-list li.widget-list-item ul.widget-control-info { 79 78 display: none; 80 79 } … … 91 90 padding: 0 1em; 92 91 } 93 92 94 ul.widget-control-list li {95 position: relative;96 }97 98 93 div#current-widgets p.submit { 99 94 padding: 1em; 100 95 } 101 96 102 97 li.widget-list-control-item { 103 margin: 0 0 1em;98 margin: 1em 0; 104 99 -moz-border-radius: 3px; 105 100 -khtml-border-radius: 3px; 106 101 -webkit-border-radius: 3px; 107 102 border-radius: 3px; 108 103 } 109 104 110 li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4, li.widget-sortable h4 { 105 li.widget-list-control-item h4, 106 #dragHelper li.widget-list-control-item h4, 107 li.widget-sortable h4 { 111 108 margin: 0; 112 padding: 0.4em 2.5em 0.4em 0.8em;113 109 cursor: move; 114 110 font-size: 13px; 111 padding: 0.4em 2.5em 0.4em 0.8em; 112 position: relative; 115 113 -moz-border-radius: 3px; 116 114 -khtml-border-radius: 3px; 117 115 -webkit-border-radius: 3px; … … 143 141 } 144 142 145 143 li.widget-list-control-item h4.widget-title a:hover { 146 147 144 text-decoration: none; 148 145 border-bottom: none; 149 146 } 150 147 151 148 li.widget-list-control-item div.widget-control { 152 149 display: none; 153 margin: 1em; 154 padding: 0 10px 0 7px; /* Correction for padding, margin, border of inputs */ 150 padding: 15px; 155 151 font-size: 11px; 152 position: relative; 153 background-color: #CFEBF7; 156 154 } 157 155 158 156 li.widget-list-control-item div.widget-control p { … … 161 159 } 162 160 163 161 ul.widget-control-list div.widget-control-actions { 164 margin-right: -10px; /* Correction for padding, margin, border of inputs */165 margin-left: -6px;166 162 border-top-width: 1px; 167 163 border-top-style: solid; 168 padding: 0.5em 0 0 .8em;164 padding: 0.5em 0 0; 169 165 } 170 166 171 ul.widget-control-list .widget-title {172 173 }174 175 167 .widget-control-edit { 176 168 font-size: 10px; 177 169 font-weight: normal; -
wp-admin/includes/widgets.php
old new 227 227 if ( empty($sidebar_args['_display']) || 'template' != $sidebar_args['_display'] ) 228 228 echo $sidebar_args['before_widget']; 229 229 ?> 230 <div class="widget-top"> 230 231 <h4 class="widget-title"><?php echo $widget_title ?> 231 232 232 233 <?php if ( $edit ) : ?> … … 239 240 240 241 <?php endif; ?> 241 242 242 </h4> 243 </h4></div> 243 244 244 245 <div class="widget-control"<?php if ( $edit ) echo ' style="display: block;"'; ?>> 245 246 -
wp-admin/js/widgets.js
old new 13 13 if ( t.is(':visible') ) { 14 14 if ( disableFields ) { t.find( ':input:enabled' ).not( '[name="widget-id[]"], [name*="[submit]"]' ).attr( 'disabled', 'disabled' ); } 15 15 li.css( 'marginLeft', 0 ); 16 t.siblings(' h4').children('a').text( widgetsL10n.edit );16 t.siblings('div').children('h4').children('a').text( widgetsL10n.edit ); 17 17 } else { 18 18 t.find( ':disabled' ).attr( 'disabled', '' ); // always enable on open 19 19 if ( width > 250 ) 20 20 li.css( 'marginLeft', ( width - 250 ) * -1 ); 21 t.siblings(' h4').children('a').text( widgetsL10n.cancel );21 t.siblings('div').children('h4').children('a').text( widgetsL10n.cancel ); 22 22 } 23 23 t.toggle(); 24 24 } : function() { … … 28 28 if ( disableFields ) { t.find( ':input:enabled' ).not( '[name="widget-id[]"], [name*="[submit]"]' ).attr( 'disabled', 'disabled' ); } 29 29 if ( width > 250 ) 30 30 li.animate( { marginLeft: 0 } ); 31 t.siblings(' h4').children('a').text( widgetsL10n.edit );31 t.siblings('div').children('h4').children('a').text( widgetsL10n.edit ); 32 32 } else { 33 33 t.find( ':disabled' ).attr( 'disabled', '' ); // always enable on open 34 34 if ( width > 250 ) 35 35 li.animate( { marginLeft: ( width - 250 ) * -1 } ); 36 t.siblings(' h4').children('a').text( widgetsL10n.cancel );36 t.siblings('div').children('h4').children('a').text( widgetsL10n.cancel ); 37 37 } 38 38 t.animate( { height: 'toggle' } ); 39 39 }; -
wp-admin/widgets.php
old new 134 134 135 135 <ul class="widget-control-list"> 136 136 <li class="widget-list-control-item"> 137 <div class="widget-top"> 137 138 <h4 class="widget-title"><?php echo $control['name']; ?></h4> 139 </div> 138 140 <div class="widget-control" style="display: block;"> 139 141 <?php 140 142 call_user_func_array( $control_callback, $control['params'] ); -
wp-includes/script-loader.php
old new 187 187 'saveText' => attribute_escape(__('Save »')), 188 188 'confirmText' => __("Are you sure you want to delete the file '%title%'?\nClick ok to delete or cancel to go back.") 189 189 ) ); 190 $this->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20080 407c' );190 $this->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20080503' ); 191 191 $this->localize( 'admin-widgets', 'widgetsL10n', array( 192 192 'add' => __('Add'), 193 193 'edit' => __('Edit'),
