Ticket #5583: 5583d.diff
File 5583d.diff, 15.1 KB (added by , 17 years ago) |
---|
-
wp-admin/wp-admin.css
268 268 font: 12px Georgia, "Times New Roman", Times, serif; 269 269 } 270 270 271 .submit { 272 margin: 1.5em 0; 273 } 274 271 275 .submit input, .submit input:focus, .button, .button:focus { 272 276 color: #246; 273 277 padding: 2px; 274 278 } 275 279 276 . submit, .editform th, #postcustomsubmit {280 .editform th, #postcustomsubmit { 277 281 text-align: right; 278 282 } 279 283 … … 731 735 } 732 736 733 737 738 div.nav { 739 background-color: #eaf3fa; 740 padding: 0.7em 1em; 741 margin: .7em 0; 742 } 743 734 744 .page-numbers { 735 745 padding: 4px 7px; 736 746 border: 1px solid #fff; … … 750 760 font-weight: bold; 751 761 } 752 762 763 p.pagenav { 764 margin: 0; 765 display: inline; 766 } 767 753 768 .pagenav span { 754 769 font-weight: bold; 755 770 margin: 0 6px; -
wp-admin/includes/widgets.php
205 205 <?php 206 206 } 207 207 208 function temp_widget_css() { 209 ?> 210 211 <style type="text/css"> 212 /* 2 column liquid layout */ 213 div.widget-liquid-left-holder { 214 float: left; 215 clear: left; 216 width: 100%; 217 margin-right: -310px; 208 function widget_css() { 209 wp_admin_css( 'css/widgets' ); 218 210 } 219 211 220 div.widget-liquid-left { 221 margin-right: 310px; 222 } 212 add_action( 'admin_head', 'widget_css' ); 223 213 224 div.widget-liquid-right {225 float: right;226 clear: right;227 width: 300px;228 }229 230 p.submit {231 clear: both;232 }233 234 /* pasitioning etc. */235 form#widgets-filter {236 position: relative;237 }238 239 p#widget-search {240 position: absolute;241 right: 0;242 top: 0;243 margin: 0;244 }245 246 ul#widget-list {247 list-style: none;248 margin: 0;249 padding: 0;250 }251 252 ul#widget-list li.widget-list-item {253 padding: .7em 1em;254 margin: 0;255 border-top: 1px solid #ccc;256 border-bottom: 1px solid #ccc;257 background-color: transparent;258 line-height: 1;259 }260 261 ul#widget-list li.widget-list-item h4.widget-title {262 position: relative;263 margin: 0;264 padding: .5em 1em;265 width: 200px;266 float: left;267 background-color: #ccc;268 color: #000;269 }270 271 #dragHelper h4.widget-title {272 color: #fff;273 background-color: #2683ae;274 padding: .5em 1em;275 margin: 0;276 }277 278 ul#widget-list li.widget-list-item div.widget-description {279 display: block;280 margin: 0 0 0 200px;281 padding: 0 0 0 4em;282 }283 284 285 ul#widget-list li.widget-list-item ul.widget-control-info {286 display: none;287 }288 289 div#sidebar-info {290 padding: 0 1em;291 margin-bottom: 1em;292 }293 294 ul.widget-control-list {295 list-style: none;296 margin: 0;297 padding: 0 1em;298 }299 300 li.widget-list-control-item {301 background-color: #eaf3fa;302 margin: 0 0 1em;303 }304 305 li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 {306 position: relative;307 margin: 0;308 background-color: #2683ae;309 padding: .5em 1em;310 color: #fff;311 }312 313 div.widget-control a.widget-action, div.widget-control a.widget-action:hover {314 padding: .5em 1em;315 }316 317 h4.widget-title a {318 position: absolute;319 right: 1em;320 text-decoration: underline;321 border-bottom: none;322 }323 324 li.widget-list-control-item h4.widget-title a, li.widget-list-control-item h4.widget-title a:visited {325 color: #fff;326 }327 328 li.widget-list-control-item h4.widget-title a:hover {329 color: #fff;330 text-decoration: none;331 border-bottom: none;332 }333 334 li.widget-list-control-item div.widget-control {335 display: none;336 margin: 1em;337 padding: 0 10px 0 0; /* Correction for padding, margin, border of inputs */338 }339 340 li.widget-list-control-item div.widget-control p {341 margin: 0 0 1em;342 padding: 0;343 }344 345 ul.widget-control-list div.widget-control-actions {346 margin-right: -10px; /* Correction for padding, margin, border of inputs */347 padding: 0 0 1em;348 }349 350 ul.widget-control-list .sorthelper {351 background-color: #ccf3fa;352 353 }354 355 #current-widgets .drop-widget-here {356 background-color: #ffc357 }358 359 ul.widget-control-list select option {360 }361 </style>362 363 <?php364 }365 366 add_action( 'admin_head', 'temp_widget_css' );367 368 214 ?> -
wp-admin/includes/admin.php
14 14 require_once(ABSPATH . 'wp-admin/includes/theme.php'); 15 15 require_once(ABSPATH . 'wp-admin/includes/user.php'); 16 16 require_once(ABSPATH . 'wp-admin/includes/update.php'); 17 require_once(ABSPATH . 'wp-admin/includes/widgets.php');18 17 19 18 require_once(ABSPATH . WPINC . '/registration.php'); 20 19 -
wp-admin/css/widgets-rtl.css
1 .dropzone, 2 #palettediv, 3 .handle, 4 .controlform { 5 direction: rtl; 6 text-align: justify; 7 } 8 .dropzone { 1 div.widget-liquid-left-holder { 9 2 float: right; 10 margin-left: 10px; 11 margin-right: auto; 12 width: 240px; 13 } 14 * html .dropzone ul { 3 clear: right; 4 margin-left: -310px; 15 5 margin-right: 0; 16 } 17 * .handle, #lastmodule span { 18 border-left: 1px solid #e8e8e8; 19 border-right: 1px solid #f2f2f2; 20 } 21 * .popper { 6 } 7 8 div.widget-liquid-left { 9 margin-right: 0; 10 margin-left: 310px; 11 } 12 13 div.widget-liquid-right { 14 float: left; 15 clear: left; 16 } 17 18 p#widget-search { 19 left: 0; 22 20 right: auto; 23 left: 3px; 24 } 25 #palettediv .module, #lastmodule { 26 margin-right: auto; 27 margin-left: 10px; 21 } 22 23 ul#widget-list li.widget-list-item h4.widget-title { 28 24 float: right; 29 } 30 #palettediv ul { 31 padding: 0 10px 0 0; 25 } 26 27 ul#widget-list li.widget-list-item div.widget-description { 28 margin: 0 200px 0 0; 29 padding: 0 4em 0 0; 30 } 31 32 h4.widget-title a { 33 left: 1em; 34 right: auto; 35 } 36 37 li.widget-list-control-item div.widget-control { 38 padding: 0 0 0 10px; 39 } 40 41 ul.widget-control-list div.widget-control-actions { 42 margin-left: -10px; 32 43 margin-right: 0; 33 width: 100%; 34 } 35 .placemat { 36 margin-right: 0; 37 float: right; 38 } 39 No newline at end of file 44 } -
wp-admin/css/widgets.css
1 body { 2 height: 100%; 3 } 4 5 #sbadmin #zones { 6 -moz-user-select: none; 7 -khtml-user-select: none; 8 user-select: none; 9 } 10 11 #sbreset { 1 /* 2 column liquid layout */ 2 div.widget-liquid-left-holder { 12 3 float: left; 13 margin: 1px 0; 4 clear: left; 5 width: 100%; 6 margin-right: -310px; 14 7 } 15 8 16 .dropzone { 17 border: 1px solid #bbb; 18 float: left; 19 margin-right: 10px; 20 padding: 5px; 21 background-color: #f0f8ff; 9 div.widget-liquid-left { 10 margin-right: 310px; 22 11 } 23 12 24 .dropzone h3 { 25 text-align: center; 26 color: #333; 13 div.widget-liquid-right { 14 float: right; 15 clear: right; 16 width: 300px; 27 17 } 28 18 29 .dropzone input { 30 display: none; 31 } 32 33 .dropzone ul { 34 float: left; 35 list-style-type: none; 36 width: 240px; 37 margin: 0; 38 min-height: 200px; 39 padding: 0; 40 display: block; 41 } 42 43 * .module { 44 width: 238px; 45 padding: 0; 46 margin: 5px 0; 47 cursor: move; 48 display: block; 49 border: 1px solid #ccc; 50 background-color: #fbfbfb; 19 /* pasitioning etc. */ 20 form#widgets-filter { 51 21 position: relative; 52 text-align: left;53 line-height: 25px;54 22 } 55 23 56 * .handle { 57 display: block; 58 width: 216px; 59 padding: 0 10px; 60 position: relative; 61 border-top: 1px solid #f2f2f2; 62 border-right: 1px solid #e8e8e8; 63 border-bottom: 1px solid #e8e8e8; 64 border-left: 1px solid #f2f2f2; 24 div#available-widgets-filter { 25 border-bottom: 1px solid #ccc; 65 26 } 66 27 67 * .popper { 68 margin: 0; 69 display: inline; 28 p#widget-search { 70 29 position: absolute; 71 top: 3px; 72 right: 3px; 73 overflow: hidden; 74 text-align: center; 75 height: 16px; 76 font-size: 18px; 77 line-height: 14px; 78 cursor: pointer; 79 padding: 0 3px 1px; 80 border-top: 4px solid #6da6d1; 81 background: url( ../images/fade-butt.png ) -5px 0px; 30 right: 0; 31 top: 0; 32 margin: 0; 82 33 } 83 34 84 * html .popper { 85 padding: 1px 6px 0; 86 font-size: 16px; 87 } 35 div#widget-content { 36 border-bottom: 1px solid #ccc; 37 } 88 38 89 #sbadmin p.submit { 90 padding-right: 10px; 91 clear: left; 92 } 93 94 .placemat { 95 cursor: default; 39 ul#widget-list { 40 list-style: none; 96 41 margin: 0; 97 42 padding: 0; 98 position: relative;99 43 } 100 44 101 .placemat h4 { 102 text-align: center; 45 ul#widget-list li.widget-list-item { 46 padding: .7em 1em; 47 margin: 0; 48 border-bottom: 1px solid #ccc; 49 background-color: transparent; 50 line-height: 1; 103 51 } 104 52 105 .placemat span { 106 background-color: #ffe; 107 border: 1px solid #ccc; 108 padding: 0 10px 10px; 109 position: absolute; 110 text-align: justify; 53 ul#widget-list li.widget-list-item h4.widget-title { 54 position: relative; 55 margin: 0; 56 padding: .5em 1em; 57 width: 200px; 58 float: left; 59 background-color: #f0f0f0; 60 color: #000; 111 61 } 112 62 113 #palettediv { 114 border: 1px solid #bbb; 115 background-color: #f0f8ff; 116 height:auto; 117 margin-top: 10px; 118 padding-bottom: 10px; 63 #dragHelper h4.widget-title { 64 color: #fff; 65 background-color: #2683ae; 66 padding: .5em 1em; 67 margin: 0; 119 68 } 120 69 121 #palettediv:after, #zones:after, .dropzone:after { 122 content: "."; 70 ul#widget-list li.widget-list-item div.widget-description { 123 71 display: block; 124 height: 0; 125 clear: both; 126 visibility: hidden; 72 margin: 0 0 0 200px; 73 padding: 0 0 0 4em; 127 74 } 128 75 129 #palettediv, #zones, .dropzone {130 display: block;131 min-height: 1px;132 }133 76 134 * html #palettediv, * html #zones, * html .dropzone{135 height: 1%;77 ul#widget-list li.widget-list-item ul.widget-control-info { 78 display: none; 136 79 } 137 80 138 #palettediv h3 { 139 text-align: center; 140 color: #333; 141 min-height: 1px; 81 div#sidebar-info { 82 padding: 0 1em; 83 margin-bottom: 1em; 142 84 } 143 85 144 #palettediv ul { 145 padding: 0 0 0 10px; 86 ul.widget-control-list { 87 list-style: none; 88 margin: 0; 89 padding: 0 1em; 146 90 } 147 91 148 #palettediv .module { 149 margin-right: 10px; 150 float: left; 151 width: 120px; 92 li.widget-list-control-item { 93 background-color: #eaf3fa; 94 margin: 0 0 1em; 152 95 } 153 96 154 #palettediv .handle { 155 height: 40px; 156 font-size: 90%; 157 width: 110px; 158 padding: 0 5px; 159 } 160 161 #palettediv .popper { 162 visibility: hidden; 163 } 164 165 * html #palettediv ul { 97 li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 { 98 position: relative; 166 99 margin: 0; 167 padding: 0 0 0 10px; 100 background-color: #2683ae; 101 padding: .5em 1em; 102 color: #fff; 168 103 } 169 104 170 #controls{171 height: 0px;105 div.widget-control a.widget-action, div.widget-control a.widget-action:hover { 106 padding: .5em 1em; 172 107 } 173 108 174 .control{109 h4.widget-title a { 175 110 position: absolute; 176 display: block;177 background: #f9fcfe;178 padding: 0;111 right: 1em; 112 text-decoration: underline; 113 border-bottom: none; 179 114 } 180 115 181 .controlhandle { 182 cursor: move; 183 background-color: #6da6d1; 184 border-bottom: 2px solid #448abd; 185 color: #333; 186 display: block; 187 margin: 0 0 5px; 188 padding: 4px; 189 font-size: 120%; 116 li.widget-list-control-item h4.widget-title a, li.widget-list-control-item h4.widget-title a:visited { 117 color: #fff; 190 118 } 191 119 192 .controlcloser { 193 cursor: pointer; 194 font-size: 120%; 195 display: block; 196 position: absolute; 197 top: 2px; 198 right: 8px; 199 padding: 0 3px; 200 font-weight: bold; 120 li.widget-list-control-item h4.widget-title a:hover { 121 color: #fff; 122 text-decoration: none; 123 border-bottom: none; 201 124 } 202 125 203 .controlform { 204 margin: 20px 30px; 126 li.widget-list-control-item div.widget-control { 127 display: none; 128 margin: 1em; 129 padding: 0 10px 0 0; /* Correction for padding, margin, border of inputs */ 205 130 } 206 131 207 .controlform p { 208 text-align: center; 132 li.widget-list-control-item div.widget-control p { 133 margin: 0 0 1em; 134 padding: 0; 209 135 } 210 136 211 .control .checkbox{212 border: none;213 background: transparent;137 ul.widget-control-list div.widget-control-actions { 138 margin-right: -10px; /* Correction for padding, margin, border of inputs */ 139 padding: 0 0 1em; 214 140 } 215 141 216 .hidden { 217 display: none; 218 } 142 ul.widget-control-list .sorthelper { 143 background-color: #ccf3fa; 219 144 220 #shadow {221 background: black;222 display: none;223 position: absolute;224 top: 0px;225 left: 0px;226 width: 100%;227 145 } 228 146 229 #dragHelper { 230 position: absolute; 147 div#current-widgets { 148 padding-top: 1em; 149 border-top: 1px solid #ccc; 150 border-bottom: 1px solid #ccc; 231 151 } 232 152 233 #dragHelper li.module { 234 display: block; 235 float: left; 153 #current-widgets .drop-widget-here { 154 background-color: #ffc 236 155 } -
wp-admin/widgets.php
1 1 <?php 2 2 3 3 require_once( 'admin.php' ); 4 require_once(ABSPATH . 'wp-admin/includes/widgets.php'); 4 5 5 6 if ( ! current_user_can('switch_themes') ) 6 7 wp_die( __( 'Cheatin’ uh?' )); … … 146 147 'current' => $page 147 148 )); 148 149 */ 149 $page_links = false;150 $page_links = ' '; 150 151 151 152 // Unsanitized! 152 153 $widget_search = isset($_GET['s']) ? $_GET['s'] : false; … … 180 181 <h2><?php _e( 'Widgets' ); ?></h2> 181 182 <p id="widget-search"> 182 183 <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' ); ?>" /> 184 185 </p> 185 186 186 187 <div class="widget-liquid-left-holder"> 187 188 <div id="available-widgets-filter" class="widget-liquid-left"> 188 189 <h3><?php printf( __('Available Widgets %s'), '<a href="#help:avaliable-widgets" class="wp-context-help">?</a>' ); ?></h3> 189 < p>190 <div class="nav"> 190 191 <select name="show"> 191 192 <?php foreach ( $show_values as $show_value => $show_text ) : $show_value = attribute_escape( $show_value ); ?> 192 193 <option value='<?php echo $show_value; ?>'<?php selected( $show_value, $show ); ?>><?php echo wp_specialchars( $show_text ); ?></option> 193 194 <?php endforeach; ?> 194 195 </select> 195 196 <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> 203 201 </div> 204 202 </div> 205 203 206 204 <div id="available-sidebars" class="widget-liquid-right"> 207 205 <h3><?php printf( __('Current Widgets %s'), '<a href="#help:current-widgets" class="wp-context-help">?</a>' ); ?></h3> 208 206 209 <?php if ( 1 < $sidebars_count ) : ?> 210 211 <p> 207 <div class="nav"> 212 208 <select id="sidebar-selector" name="sidebar"> 213 209 <?php foreach ( $wp_registered_sidebars as $sidebar_id => $registered_sidebar ) : $sidebar_id = attribute_escape( $sidebar_id ); ?> 214 210 <option value='<?php echo $sidebar_id; ?>'<?php selected( $sidebar_id, $sidebar ); ?>><?php echo wp_specialchars( $registered_sidebar['name'] ); ?></option> 215 211 <?php endforeach; ?> 216 212 </select> 217 213 <input type="submit" value="<?php _e('Go' ); ?>" /> 218 </ p>214 </div> 219 215 220 <?php endif; ?>221 222 216 </div> 223 217 224 218 </form> … … 229 223 230 224 <?php wp_list_widgets( $show, $widget_search ); // This lists all the widgets for the query ( $show, $search ) ?> 231 225 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> 239 231 </div> 240 232 </div> 241 233 … … 260 252 </div> 261 253 </div> 262 254 255 <br class="clear" /> 256 263 257 <p class="submit"> 264 258 <input type="hidden" id="generated-time" name="generated-time" value="<?php echo time(); ?>" /> 265 259 <input type="submit" name="save-widgets" value="<?php _e( 'Save Changes' ); ?>" />