Make WordPress Core

Ticket #18785: revert-help-so-2.patch

File revert-help-so-2.patch, 8.5 KB (added by azaozz, 13 years ago)
  • wp-admin/admin-header.php

     
    119119
    120120do_action('all_admin_notices');
    121121
     122$current_screen->print_toggles();
     123
    122124if ( $parent_file == 'options-general.php' )
    123125        require(ABSPATH . 'wp-admin/options-head.php');
  • wp-admin/css/colors-classic.dev.css

     
    16181618#contextual-help-back {
    16191619        background-color: #EFF8FF;
    16201620        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);
    16241623}
    16251624
    16261625.contextual-help-tabs a:hover {
  • wp-admin/css/colors-fresh.dev.css

     
    784784#screen-meta {
    785785        background-color: #fff;
    786786}
     787
    787788#contextual-help-back {
    788789        background-color: #f1f1f1;
    789790        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);
    794793}
    795794
    796795.contextual-help-tabs a:hover {
  • wp-admin/css/wp-admin.dev.css

     
    393920.0 - Settings
    404021.0 - Admin Footer
    414122.0 - Misc
    42 23.0 - Dead
    4342
    4443------------------------------------------------------------------------*/
    4544
     
    606605
    607606.wrap h2 {
    608607        font-size: 23px;
    609         padding: 9px 15px 4px 0;
     608        padding: 9px 0 4px;
    610609        line-height: 29px;
    611610}
    612611
     
    13671366        padding: 8px 20px 12px;
    13681367        max-height: 300px;
    13691368        overflow: auto;
     1369        position: relative;
    13701370}
    13711371
    13721372#screen-meta .screen-reader-text {
     
    14281428}
    14291429
    14301430#contextual-help-wrap {
    1431         position: relative;
    14321431        padding: 0 0 0 4px;
    14331432        overflow: auto;
    14341433}
     
    46244623  22.0 - Misc
    46254624------------------------------------------------------------------------------*/
    46264625
    4627 #excerpt, .attachmentlinks {
     4626#excerpt,
     4627.attachmentlinks {
    46284628        margin: 0;
    46294629        height: 4em;
    46304630        width: 98%;
     
    47404740        padding: 0;
    47414741}
    47424742
    4743 #titlediv, #poststuff .postarea {
     4743#titlediv,
     4744#poststuff .postarea {
    47444745        margin-bottom: 20px;
    47454746}
    47464747
    4747 td.post-title strong, td.plugin-title strong {
     4748td.post-title strong,
     4749td.plugin-title strong {
    47484750        display: block;
    47494751        margin-bottom: .2em;
    47504752}
    47514753
    4752 td.post-title p, td.plugin-title p {
     4754td.post-title p,
     4755td.plugin-title p {
    47534756        margin: 6px 0;
    47544757}
    47554758
     
    48104813        display: none;
    48114814}
    48124815
    4813 .plugin-install #description, .plugin-install-network #description {
     4816.plugin-install #description,
     4817.plugin-install-network #description {
    48144818        width: 60%;
    48154819}
    48164820
     
    48304834        height: 98%;
    48314835}
    48324836
     4837.screen-meta-toggle {
     4838        font-size: 12px;
     4839        position: absolute;
     4840        right: 15px;
     4841        top: 20px;
     4842}
    48334843
     4844.screen-meta-toggle a {
     4845        text-decoration: none;
     4846}
     4847
    48344848/* - Only used once or twice in all of WP - deprecate for global style
    48354849------------------------------------------------------------------------------*/
    48364850td.media-icon {
  • wp-admin/includes/screen.php

     
    689689                        ) );
    690690                }
    691691
    692                 // Add screen options tab
    693                 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 
    703692                // Time to render!
    704693                ?>
    705                 <div id="screen-meta" class='metabox-prefs'>
     694                <div id="screen-meta" class="metabox-prefs">
    706695                        <div id="contextual-help-back"></div>
    707696                        <div id="contextual-help-wrap" class="hidden">
    708697                                <div class="contextual-help-tabs">
     
    748737                                        <?php endforeach; ?>
    749738                                </div>
    750739                        </div>
     740                <?php
     741                // Add screen options
     742                if ( $this->show_screen_options() )
     743                        $this->render_screen_options();
     744                ?>
    751745                </div>
    752746                <?php
    753747        }
     
    789783                $hidden  = get_hidden_columns( $this );
    790784
    791785                ?>
     786                <div id="screen-options-wrap" class="hidden">
    792787                <form id="adv-settings" action="" method="post">
    793788                <?php
    794789                if ( $this->get_option('overview') )
     
    840835                ?>
    841836                <div><?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?></div>
    842837                </form>
     838                </div>
    843839                <?php
    844840        }
    845841
     
    939935                </div>
    940936                <?php
    941937        }
    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

     
    9595        page:    null, // #wpcontent
    9696        padding: null, // the closed page padding-top property
    9797        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         },
    10298
    10399        init: function() {
    104100                screenMeta.element = $('#screen-meta');
    105                 screenMeta.toggles = $('.screen-meta-toggle');
     101                screenMeta.toggles = $('.screen-meta-toggle a');
    106102                screenMeta.page    = $('#wpcontent');
    107103
    108104                screenMeta.toggles.click( screenMeta.toggleEvent );
    109105        },
    110106
    111107        toggleEvent: function( e ) {
    112                 var panel;
     108                var panel = $( this.href.replace(/.+#/, '#') );
    113109                e.preventDefault();
    114110
    115                 // Check to see if we found a panel.
    116                 if ( ! screenMeta.map[ this.id ] )
     111                if ( !panel.length )
    117112                        return;
    118113
    119                 panel = $('#' + screenMeta.map[ this.id ]);
    120 
    121114                if ( panel.is(':visible') )
    122115                        screenMeta.close( panel, $(this) );
    123116                else
  • wp-includes/admin-bar.php

     
    633633}
    634634
    635635/**
    636  * Add help link.
    637  *
    638  * @since 3.3.0
    639  */
    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 /**
    652636 * Add search form.
    653637 *
    654638 * @since 3.3.0
  • wp-includes/class-wp-admin-bar.php

     
    201201                add_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 80 );
    202202                add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 90 );
    203203
    204                 if ( ! is_admin() ) {
     204                if ( ! is_admin() )
    205205                        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               
    210207                do_action( 'add_admin_bar_menus' );
    211208        }
    212209}
    213 ?>
    214  No newline at end of file
     210?>
  • wp-includes/css/admin-bar.dev.css

     
    178178}
    179179
    180180#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 {
    183182        background: #fff;
    184183}
    185184
    186185#wpadminbar.nojs .quicklinks .menupop:hover a,
    187186#wpadminbar.nojs .quicklinks .menupop:hover span,
    188187#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 {
    192189        color: #333;
    193190        text-shadow: none;
    194191}