Ticket #12809: pressthis-catbox-002.diff
| File pressthis-catbox-002.diff, 7.7 KB (added by duck_, 3 years ago) |
|---|
-
wp-admin/css/colors-fresh.dev.css
492 492 /* Because we don't want visited on these links */ 493 493 body.press-this .tabs a, 494 494 body.press-this .tabs a:hover { 495 background-color: #fff;496 495 border-color: #c6d9e9; 497 496 border-bottom-color: #fff; 498 497 color: #d54e21; -
wp-admin/css/press-this.dev.css
1 2 1 body { 3 2 font: 13px "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; 4 3 color: #333; … … 115 114 } 116 115 117 116 #tagsdiv-post_tag h3, 118 .categorydiv h3 {117 #categorydiv h3 { 119 118 cursor: pointer; 120 119 } 121 120 … … 146 145 border-radius: 6px; 147 146 } 148 147 148 .postbox:hover .handlediv, 149 149 .stuffbox:hover .handlediv { 150 150 background: transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -111px; 151 151 } … … 308 308 display: none; 309 309 } 310 310 311 .category-adder { 312 padding: 4px 0; 313 } 311 /* Categories */ 314 312 315 .category-adder h4 {316 margin: 0 0 8px;317 }318 319 313 .category-add input { 320 314 width: 94%; 321 font-family: Verdana,Arial,Helvetica,sans-serif;322 font-size: 1 3px;315 font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; 316 font-size: 12px; 323 317 margin: 1px; 324 318 padding: 3px; 325 319 } 326 320 327 321 .category-add select { 328 width: 70%;322 width: 100%; 329 323 -x-system-font: none; 330 324 border-style: solid; 331 325 border-width: 1px; 332 326 font-family: "Lucida Grande","Bitstream Vera Sans",Verdana,Arial,sans-serif; 333 font-size: 1 2px;327 font-size: 11px; 334 328 height: 2em; 335 329 line-height: 20px; 336 330 padding: 2px; … … 338 332 vertical-align: top; 339 333 } 340 334 341 .category-add input, 342 .category-add-sumbit { 335 .category-add input.category-add-sumbit { 343 336 width: auto; 344 337 } 345 338 346 /* Categories */ 339 .categorydiv div.tabs-panel, 340 #linkcategorydiv div.tabs-panel { 341 height: 100px; 342 overflow: auto; 343 padding: 0.5em 0.9em; 344 border-style: solid; 345 border-width: 1px; 346 } 347 348 .category-tabs li { 349 display: inline; 350 padding-right: 8px; 351 } 352 353 .category-tabs a { 354 text-decoration: none; 355 } 356 347 357 .categorydiv ul, 348 358 #linkcategorydiv ul { 349 359 list-style: none; … … 351 361 margin: 0; 352 362 } 353 363 354 .categorydiv ul.categorychecklist ul { 364 .inline-editor ul.cat-checklist ul, 365 .categorydiv ul.categorychecklist ul, 366 #linkcategorydiv ul.categorychecklist ul { 355 367 margin-left: 18px; 356 368 } 357 369 358 .categorydiv div.tabs-panel {359 height: 140px;360 overflow: auto;361 }362 363 370 ul.categorychecklist li { 364 371 margin: 0; 365 372 padding: 0; 366 373 line-height: 19px; 367 374 } 368 375 376 .categorydiv .tabs-panel { 377 border-width: 3px; 378 border-style: solid; 379 } 380 381 ul.category-tabs { 382 margin-top: 12px; 383 margin-bottom: 6px; 384 } 385 386 ul.category-tabs li.tabs { 387 border-style: solid solid none; 388 border-width: 1px 1px 0; 389 } 390 391 ul.category-tabs li { 392 padding: 5px 8px; 393 -moz-border-radius: 3px 3px 0 0; 394 -webkit-border-top-left-radius: 3px; 395 -webkit-border-top-right-radius: 3px; 396 -khtml-border-top-left-radius: 3px; 397 -khtml-border-top-right-radius: 3px; 398 border-top-left-radius: 3px; 399 border-top-right-radius: 3px; 400 } 401 369 402 /* Tags */ 370 403 .screen-reader-text { 371 404 display: none; … … 583 616 584 617 input.newtag:focus ~ div.taghint { 585 618 visibility: hidden; 586 } 619 } 620 No newline at end of file -
wp-admin/press-this.php
480 480 </div> 481 481 </div> 482 482 483 <div id="categorydiv" class="stuffbox"> 484 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"> 485 <br/> 486 </div> 487 <h3><?php _e('Categories') ?></h3> 483 <?php $tax = get_taxonomy( 'category' ); ?> 484 <div id="categorydiv" class="postbox"> 485 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br /></div> 486 <h3 class="hndle"><?php _e('Categories') ?></h3> 488 487 <div class="inside"> 488 <div id="taxonomy-category" class="categorydiv"> 489 490 <ul id="category-tabs" class="category-tabs"> 491 <li class="tabs"><a href="#category-all" tabindex="3"><?php printf( __( 'All %s' ), $tax->label ); ?></a></li> 492 <li class="hide-if-no-js"><a href="#category-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 493 </ul> 489 494 490 <div id="categories-all" class="tabs-panel"> 495 <div id="category-pop" class="tabs-panel" style="display: none;"> 496 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" > 497 <?php $popular_ids = wp_popular_terms_checklist( 'category' ); ?> 498 </ul> 499 </div> 491 500 501 <div id="category-all" class="tabs-panel"> 492 502 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 493 <?php wp_ category_checklist($post_ID, false) ?>503 <?php wp_terms_checklist($post_ID, array( 'taxonomy' => 'category', 'popular_cats' => $popular_ids ) ) ?> 494 504 </ul> 495 505 </div> 496 506 497 <div id="category-adder" class="wp-hidden-children"> 498 <a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a> 499 <p id="category-add" class="wp-hidden-child"> 500 <label class="screen-reader-text" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" tabindex="3" aria-required="true"/> 501 <label class="screen-reader-text" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 502 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php esc_attr_e( 'Add' ); ?>" tabindex="3" /> 503 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> 504 <span id="category-ajax-response"></span> 505 </p> 506 </div> 507 <?php if ( !current_user_can($tax->assign_cap) ) : ?> 508 <p><em><?php _e('You cannot modify this Taxonomy.'); ?></em></p> 509 <?php endif; ?> 510 <?php if ( current_user_can($tax->edit_cap) ) : ?> 511 <div id="category-adder" class="wp-hidden-children"> 512 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php printf( __( '+ Add New %s' ), $tax->singular_label ); ?></a></h4> 513 <p id="category-add" class="category-add wp-hidden-child"> 514 <label class="screen-reader-text" for="newcategory"><?php printf( __( 'Add New %s' ), $tax->singular_label ); ?></label><input type="text" name="newcategory" id="newcategory" class="form-required form-input-tip" value="<?php echo esc_attr( sprintf( 'New %s Name', $tax->singular_label ) ); ?>" tabindex="3" aria-required="true"/> 515 <label class="screen-reader-text" for="newcategory_parent"><?php printf( __('Parent %s'), $tax->singular_label ); ?>:</label><?php wp_dropdown_categories( array( 'taxonomy' => 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => sprintf( __('— Parent %s —'), $tax->singular_label ), 'tab_index' => 3 ) ); ?> 516 <input type="button" id="category-add-submit" class="add:categorychecklist:category-add button category-add-sumbit" value="<?php esc_attr_e( 'Add' ); ?>" tabindex="3" /> 517 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> 518 <span id="category-ajax-response"></span> 519 </p> 520 </div> 521 <?php endif; ?> 507 522 </div> 523 </div> 508 524 </div> 509 525 510 526 <div id="tagsdiv-post_tag" class="stuffbox" >
