Ticket #18785: revert-help-so-2.patch
File revert-help-so-2.patch, 8.5 KB (added by , 13 years ago) |
---|
-
wp-admin/admin-header.php
119 119 120 120 do_action('all_admin_notices'); 121 121 122 $current_screen->print_toggles(); 123 122 124 if ( $parent_file == 'options-general.php' ) 123 125 require(ABSPATH . 'wp-admin/options-head.php'); -
wp-admin/css/colors-classic.dev.css
1618 1618 #contextual-help-back { 1619 1619 background-color: #EFF8FF; 1620 1620 border-color: #D1E5EE; 1621 -webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 ); 1622 -moz-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 ); 1623 box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 ); 1621 -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); 1622 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); 1624 1623 } 1625 1624 1626 1625 .contextual-help-tabs a:hover { -
wp-admin/css/colors-fresh.dev.css
784 784 #screen-meta { 785 785 background-color: #fff; 786 786 } 787 787 788 #contextual-help-back { 788 789 background-color: #f1f1f1; 789 790 border-color: #ccc; 790 791 -webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 ); 792 -moz-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 ); 793 box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.05 ); 791 -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); 792 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); 794 793 } 795 794 796 795 .contextual-help-tabs a:hover { -
wp-admin/css/wp-admin.dev.css
39 39 20.0 - Settings 40 40 21.0 - Admin Footer 41 41 22.0 - Misc 42 23.0 - Dead43 42 44 43 ------------------------------------------------------------------------*/ 45 44 … … 606 605 607 606 .wrap h2 { 608 607 font-size: 23px; 609 padding: 9px 15px 4px 0;608 padding: 9px 0 4px; 610 609 line-height: 29px; 611 610 } 612 611 … … 1367 1366 padding: 8px 20px 12px; 1368 1367 max-height: 300px; 1369 1368 overflow: auto; 1369 position: relative; 1370 1370 } 1371 1371 1372 1372 #screen-meta .screen-reader-text { … … 1428 1428 } 1429 1429 1430 1430 #contextual-help-wrap { 1431 position: relative;1432 1431 padding: 0 0 0 4px; 1433 1432 overflow: auto; 1434 1433 } … … 4624 4623 22.0 - Misc 4625 4624 ------------------------------------------------------------------------------*/ 4626 4625 4627 #excerpt, .attachmentlinks { 4626 #excerpt, 4627 .attachmentlinks { 4628 4628 margin: 0; 4629 4629 height: 4em; 4630 4630 width: 98%; … … 4740 4740 padding: 0; 4741 4741 } 4742 4742 4743 #titlediv, #poststuff .postarea { 4743 #titlediv, 4744 #poststuff .postarea { 4744 4745 margin-bottom: 20px; 4745 4746 } 4746 4747 4747 td.post-title strong, td.plugin-title strong { 4748 td.post-title strong, 4749 td.plugin-title strong { 4748 4750 display: block; 4749 4751 margin-bottom: .2em; 4750 4752 } 4751 4753 4752 td.post-title p, td.plugin-title p { 4754 td.post-title p, 4755 td.plugin-title p { 4753 4756 margin: 6px 0; 4754 4757 } 4755 4758 … … 4810 4813 display: none; 4811 4814 } 4812 4815 4813 .plugin-install #description, .plugin-install-network #description { 4816 .plugin-install #description, 4817 .plugin-install-network #description { 4814 4818 width: 60%; 4815 4819 } 4816 4820 … … 4830 4834 height: 98%; 4831 4835 } 4832 4836 4837 .screen-meta-toggle { 4838 font-size: 12px; 4839 position: absolute; 4840 right: 15px; 4841 top: 20px; 4842 } 4833 4843 4844 .screen-meta-toggle a { 4845 text-decoration: none; 4846 } 4847 4834 4848 /* - Only used once or twice in all of WP - deprecate for global style 4835 4849 ------------------------------------------------------------------------------*/ 4836 4850 td.media-icon { -
wp-admin/includes/screen.php
689 689 ) ); 690 690 } 691 691 692 // Add screen options tab693 if ( $this->show_screen_options() ) {694 $this->add_help_tab( array(695 'id' => 'screen-options',696 'title' => __('Screen Options'),697 'callback' => array( $this, 'render_screen_options' ),698 ) );699 $_options_tab = array_pop( $this->_help_tabs );700 array_unshift( $this->_help_tabs, $_options_tab );701 }702 703 692 // Time to render! 704 693 ?> 705 <div id="screen-meta" class= 'metabox-prefs'>694 <div id="screen-meta" class="metabox-prefs"> 706 695 <div id="contextual-help-back"></div> 707 696 <div id="contextual-help-wrap" class="hidden"> 708 697 <div class="contextual-help-tabs"> … … 748 737 <?php endforeach; ?> 749 738 </div> 750 739 </div> 740 <?php 741 // Add screen options 742 if ( $this->show_screen_options() ) 743 $this->render_screen_options(); 744 ?> 751 745 </div> 752 746 <?php 753 747 } … … 789 783 $hidden = get_hidden_columns( $this ); 790 784 791 785 ?> 786 <div id="screen-options-wrap" class="hidden"> 792 787 <form id="adv-settings" action="" method="post"> 793 788 <?php 794 789 if ( $this->get_option('overview') ) … … 840 835 ?> 841 836 <div><?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?></div> 842 837 </form> 838 </div> 843 839 <?php 844 840 } 845 841 … … 939 935 </div> 940 936 <?php 941 937 } 942 } 943 No newline at end of file 938 939 public function print_toggles() { 940 echo ' <div class="screen-meta-toggle">'; 941 942 if ( $this->show_screen_options() ) 943 echo '<a href="#screen-options-wrap">' . __('Screen Options') . '</a> |'; 944 945 echo ' <a href="#contextual-help-wrap">' . __('Help') . '</a></div>'; 946 } 947 } -
wp-admin/js/common.dev.js
95 95 page: null, // #wpcontent 96 96 padding: null, // the closed page padding-top property 97 97 top: null, // the closed element top property 98 map: {99 'wp-admin-bar-screen-options': 'screen-options-wrap',100 'wp-admin-bar-help': 'contextual-help-wrap'101 },102 98 103 99 init: function() { 104 100 screenMeta.element = $('#screen-meta'); 105 screenMeta.toggles = $('.screen-meta-toggle ');101 screenMeta.toggles = $('.screen-meta-toggle a'); 106 102 screenMeta.page = $('#wpcontent'); 107 103 108 104 screenMeta.toggles.click( screenMeta.toggleEvent ); 109 105 }, 110 106 111 107 toggleEvent: function( e ) { 112 var panel ;108 var panel = $( this.href.replace(/.+#/, '#') ); 113 109 e.preventDefault(); 114 110 115 // Check to see if we found a panel. 116 if ( ! screenMeta.map[ this.id ] ) 111 if ( !panel.length ) 117 112 return; 118 113 119 panel = $('#' + screenMeta.map[ this.id ]);120 121 114 if ( panel.is(':visible') ) 122 115 screenMeta.close( panel, $(this) ); 123 116 else -
wp-includes/admin-bar.php
633 633 } 634 634 635 635 /** 636 * Add help link.637 *638 * @since 3.3.0639 */640 function wp_admin_bar_help_menu( $wp_admin_bar ) {641 $wp_admin_bar->add_menu( array(642 'id' => 'help',643 'title' => __('Help'),644 'href' => '#',645 'meta' => array(646 'class' => 'screen-meta-toggle hide-if-no-js',647 ),648 ) );649 }650 651 /**652 636 * Add search form. 653 637 * 654 638 * @since 3.3.0 -
wp-includes/class-wp-admin-bar.php
201 201 add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 80 ); 202 202 add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 90 ); 203 203 204 if ( ! is_admin() ) {204 if ( ! is_admin() ) 205 205 add_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 100 ); 206 } else { 207 add_action( 'admin_bar_menu', 'wp_admin_bar_help_menu', 90 ); 208 } 209 206 210 207 do_action( 'add_admin_bar_menus' ); 211 208 } 212 209 } 213 ?> 214 No newline at end of file 210 ?> -
wp-includes/css/admin-bar.dev.css
178 178 } 179 179 180 180 #wpadminbar.nojs .ab-top-menu > li.menupop:hover, 181 #wpadminbar .ab-top-menu li.menupop.hover, 182 #wpadminbar .ab-top-menu .selected.screen-meta-toggle { 181 #wpadminbar .ab-top-menu li.menupop.hover { 183 182 background: #fff; 184 183 } 185 184 186 185 #wpadminbar.nojs .quicklinks .menupop:hover a, 187 186 #wpadminbar.nojs .quicklinks .menupop:hover span, 188 187 #wpadminbar .quicklinks .menupop.hover a, 189 #wpadminbar .quicklinks .menupop.hover span, 190 #wpadminbar .ab-top-menu .selected.screen-meta-toggle a, 191 #wpadminbar .ab-top-menu .selected.screen-meta-toggle span { 188 #wpadminbar .quicklinks .menupop.hover span { 192 189 color: #333; 193 190 text-shadow: none; 194 191 }