WordPress.org

Make WordPress Core

Changeset 28780


Ignore:
Timestamp:
06/19/2014 04:46:40 AM (4 years ago)
Author:
nacin
Message:

Narrower screen when choosing a language. see #28577.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/install.css

    r28774 r28780  
    313313}
    314314
     315body.language-chooser {
     316    max-width: 450px;
     317}
     318
    315319.language-chooser select {
    316320    margin: 1px;
     
    339343}
    340344
    341 .wp-core-ui .language-chooser .button.button-hero {
     345.wp-core-ui.language-chooser .button.button-hero {
    342346    font-size: 30px;
    343347    line-height: 30px;
  • trunk/src/wp-admin/install.php

    r28779 r28780  
    7171 * @since 2.5.0
    7272 */
    73 function display_header() {
     73function display_header( $body_classes = '' ) {
    7474    header( 'Content-Type: text/html; charset=utf-8' );
     75    if ( is_rtl() ) {
     76        $body_classes .= 'rtl';
     77    }
     78    if ( $body_classes ) {
     79        $body_classes = ' ' . $body_classes;
     80    }
    7581?>
    7682<!DOCTYPE html>
     
    8490    ?>
    8591</head>
    86 <body class="wp-core-ui<?php if ( is_rtl() ) echo ' rtl'; ?>">
     92<body class="wp-core-ui<?php echo $body_classes ?>">
    8793<h1 id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></h1>
    8894
     
    196202    case 0: // Step 0
    197203        if ( $body = wp_get_available_translations() ) {
    198             display_header();
     204            display_header( 'language-chooser' );
    199205
    200206            echo '<form id="setup" method="post" action="install.php?step=1">';
    201             echo '<div class="language-chooser">';
    202207            echo '<select name="language" id="language-chooser" size="15">';
    203208            echo '<option selected="selected" value="">English (United States)</option>';
     
    207212            echo "</select>\n";
    208213            echo '<p class="step"><input type="submit" class="button button-primary button-hero" value="&raquo;" /></p>';
    209             echo '</div>';
    210214            echo '</form>';
    211215            break;
Note: See TracChangeset for help on using the changeset viewer.