Make WordPress Core

Ticket #11651: 11651.7.three-col-break-below-badge.patch

File 11651.7.three-col-break-below-badge.patch, 9.4 KB (added by chexee, 13 years ago)

has columns break below badge and intro paragraph.

  • wp-admin/includes/dashboard.php

     
    12931293
    12941294                <h3><?php _e( 'Welcome to your new WordPress site! ' ); ?></h3>
    12951295                <p class="about-description"><?php _e( 'If you need help getting started, check out our documentation on <a href="http://codex.wordpress.org/First_Steps_With_WordPress">First Steps with WordPress</a>. If you&#8217;d rather dive right in, here are a few things most people do first when they set up a new WordPress site. If you need help, use the Help tabs in the upper right corner to get information on how to use your current screen and where to go for more assistance.' ); ?></p>
    1296 
    1297                 <div class="welcome-panel-column">
    1298                         <h4>
    1299                                 <span class="icon16 icon-settings"></span>
    1300                                 <?php _e( 'Basic Settings' ); ?>
    1301                         </h4>
    1302                         <p><?php _e( 'Here are a few easy things you can do to get your feet wet. Make sure to click Save on each Settings screen.' ); ?></p>
    1303                         <ul>
    1304                                 <li>
    1305                                         <?php echo sprintf(
    1306                                                 __( '<a href="%s">Choose your privacy setting</a>' ),
    1307                                                 esc_url( admin_url('options-privacy.php') )
    1308                                         ); ?>
    1309                                 </li>
    1310                                 <li>
    1311                                         <?php echo sprintf(
    1312                                                 __( '<a href="%s">Select your tagline and time zone</a>' ),
    1313                                                 esc_url( admin_url('options-general.php') )
    1314                                         ); ?>
    1315                                 </li>
    1316                                 <li>
    1317                                         <?php echo sprintf(
    1318                                                 __( '<a href="%s">Turn comments on or off</a>' ),
    1319                                                 esc_url( admin_url('options-discussion.php') )
    1320                                         ); ?>
    1321                                 </li>
    1322                                 <li>
    1323                                         <?php echo sprintf(
    1324                                                 __( '<a href="%s">Fill in your profile</a>' ),
    1325                                                 esc_url( admin_url('profile.php') )
    1326                                         ); ?>
    1327                                 </li>
    1328                         </ul>
    1329                 </div>
    1330                 <div class="welcome-panel-column">
    1331                         <h4>
    1332                                 <span class="icon16 icon-page"></span>
    1333                                 <?php _e( 'Add Real Content' ); ?>
    1334                         </h4>
    1335                         <p><?php _e( 'Check out the sample page & post editors to see how it all works, then delete the default content and write your own!' ); ?></p>
    1336                         <ul>
    1337                                 <li>
    1338                                         <?php echo sprintf(
    1339                                                 __( 'View the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>' ),
    1340                                                 esc_url( get_permalink( 2 ) ),
    1341                                                 esc_url( get_permalink( 1 ) )
    1342                                         ); ?>
    1343                                 </li>
    1344                                 <li>
    1345                                         <?php echo sprintf(
    1346                                                 __( 'Delete the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>' ),
    1347                                                 esc_url( admin_url('edit.php?post_type=page') ),
    1348                                                 esc_url( admin_url('edit.php') )
    1349                                         ); ?>
    1350                                 </li>
    1351                                 <li>
    1352                                         <?php echo sprintf(
    1353                                                 __( '<a href="%s">Create an About Me page</a>' ),
    1354                                                 esc_url( admin_url('edit.php?post_type=page') )
    1355                                         ); ?>
    1356                                 </li>
    1357                                 <li>
    1358                                         <?php echo sprintf(
    1359                                                 __( '<a href="%s">Write your first post</a>' ),
    1360                                                 esc_url( admin_url('post-new.php') )
    1361                                         ); ?>
    1362                                 </li>
    1363                         </ul>
    1364                 </div>
    1365                 <div class="welcome-panel-column">
    1366                         <h4>
    1367                                 <span class="icon16 icon-appearance"></span>
    1368                                 <?php _e( 'Customize Your Site' ); ?>
    1369                         </h4>
    1370                         <?php
    1371                         $ct = current_theme_info();
    1372                         if ( empty ( $ct->stylesheet_dir ) ) :
    1373                         echo '<p>';
    1374                         printf( __( '<a href="%s">Install a theme</a> to get started customizing your site.' ), esc_url( admin_url( 'themes.php' ) ) );
    1375                         echo '</p>';
    1376                         else:
    1377                         echo '<p>';
    1378                         printf( __( 'Use the current theme &mdash; %1$s &mdash; or <a href="%2$s">choose a new one</a>. If you stick with %3$s, here are a few ways to make your site look unique.' ), $ct->title, esc_url( admin_url( 'themes.php' ) ), $ct->title );
    1379                         echo '</p>';
    1380                         ?>
    1381                         <ul>
    1382                                 <?php if ( 'twentyeleven' == $ct->stylesheet ) : ?>
    1383                                 <li>
    1384                                         <?php echo sprintf(
    1385                                                 __( '<a href="%s">Choose light or dark</a>' ),
    1386                                                 esc_url( admin_url( 'themes.php?page=theme_options' ) )
    1387                                         ); ?>
    1388                                 </li>
     1296               
     1297                <div class="welcome-panel-column-container">
     1298                        <div class="welcome-panel-column">
     1299                                <h4>
     1300                                        <span class="icon16 icon-settings"></span>
     1301                                        <?php _e( 'Basic Settings' ); ?>
     1302                                </h4>
     1303                                <p><?php _e( 'Here are a few easy things you can do to get your feet wet. Make sure to click Save on each Settings screen.' ); ?></p>
     1304                                <ul>
     1305                                        <li>
     1306                                                <?php echo sprintf(
     1307                                                        __( '<a href="%s">Choose your privacy setting</a>' ),
     1308                                                        esc_url( admin_url('options-privacy.php') )
     1309                                                ); ?>
     1310                                        </li>
     1311                                        <li>
     1312                                                <?php echo sprintf(
     1313                                                        __( '<a href="%s">Select your tagline and time zone</a>' ),
     1314                                                        esc_url( admin_url('options-general.php') )
     1315                                                ); ?>
     1316                                        </li>
     1317                                        <li>
     1318                                                <?php echo sprintf(
     1319                                                        __( '<a href="%s">Turn comments on or off</a>' ),
     1320                                                        esc_url( admin_url('options-discussion.php') )
     1321                                                ); ?>
     1322                                        </li>
     1323                                        <li>
     1324                                                <?php echo sprintf(
     1325                                                        __( '<a href="%s">Fill in your profile</a>' ),
     1326                                                        esc_url( admin_url('profile.php') )
     1327                                                ); ?>
     1328                                        </li>
     1329                                </ul>
     1330                        </div>
     1331                        <div class="welcome-panel-column">
     1332                                <h4>
     1333                                        <span class="icon16 icon-page"></span>
     1334                                        <?php _e( 'Add Real Content' ); ?>
     1335                                </h4>
     1336                                <p><?php _e( 'Check out the sample page & post editors to see how it all works, then delete the default content and write your own!' ); ?></p>
     1337                                <ul>
     1338                                        <li>
     1339                                                <?php echo sprintf(
     1340                                                        __( 'View the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>' ),
     1341                                                        esc_url( get_permalink( 2 ) ),
     1342                                                        esc_url( get_permalink( 1 ) )
     1343                                                ); ?>
     1344                                        </li>
     1345                                        <li>
     1346                                                <?php echo sprintf(
     1347                                                        __( 'Delete the <a href="%1$s">sample page</a> and <a href="%2$s">post</a>' ),
     1348                                                        esc_url( admin_url('edit.php?post_type=page') ),
     1349                                                        esc_url( admin_url('edit.php') )
     1350                                                ); ?>
     1351                                        </li>
     1352                                        <li>
     1353                                                <?php echo sprintf(
     1354                                                        __( '<a href="%s">Create an About Me page</a>' ),
     1355                                                        esc_url( admin_url('edit.php?post_type=page') )
     1356                                                ); ?>
     1357                                        </li>
     1358                                        <li>
     1359                                                <?php echo sprintf(
     1360                                                        __( '<a href="%s">Write your first post</a>' ),
     1361                                                        esc_url( admin_url('post-new.php') )
     1362                                                ); ?>
     1363                                        </li>
     1364                                </ul>
     1365                        </div>
     1366                        <div class="welcome-panel-column">
     1367                                <h4>
     1368                                        <span class="icon16 icon-appearance"></span>
     1369                                        <?php _e( 'Customize Your Site' ); ?>
     1370                                </h4>
    13891371                                <?php
    1390                                 endif;
    1391                                 if ( current_theme_supports( 'custom-background' ) ) :
     1372                                $ct = current_theme_info();
     1373                                if ( empty ( $ct->stylesheet_dir ) ) :
     1374                                echo '<p>';
     1375                                printf( __( '<a href="%s">Install a theme</a> to get started customizing your site.' ), esc_url( admin_url( 'themes.php' ) ) );
     1376                                echo '</p>';
     1377                                else:
     1378                                echo '<p>';
     1379                                printf( __( 'Use the current theme &mdash; %1$s &mdash; or <a href="%2$s">choose a new one</a>. If you stick with %3$s, here are a few ways to make your site look unique.' ), $ct->title, esc_url( admin_url( 'themes.php' ) ), $ct->title );
     1380                                echo '</p>';
    13921381                                ?>
    1393                                 <li>
    1394                                         <?php echo sprintf(
    1395                                                 __( '<a href="%s">Set a background color</a>' ),
    1396                                                 esc_url( admin_url( 'themes.php?page=custom-background' ) )
    1397                                         ); ?>
    1398                                 </li>
    1399                                 <?php
    1400                                 endif;
    1401                                 if ( current_theme_supports( 'custom-header' ) ) :
    1402                                 ?>
    1403                                 <li>
    1404                                         <?php echo sprintf(
    1405                                                 __( '<a href="%s">Select a new header image</a>' ),
    1406                                                 esc_url( admin_url( 'themes.php?page=custom-header' ) )
    1407                                         ); ?>
    1408                                 </li>
    1409                                 <?php
    1410                                 endif;
    1411                                 if ( current_theme_supports( 'widgets' ) ) :
    1412                                 ?>
    1413                                 <li>
    1414                                         <?php echo sprintf(
    1415                                                 __( '<a href="%s">Add some widgets</a>' ),
    1416                                                 esc_url( admin_url( 'widgets.php' ) )
    1417                                         ); ?>
    1418                                 </li>
     1382                                <ul>
     1383                                        <?php if ( 'twentyeleven' == $ct->stylesheet ) : ?>
     1384                                        <li>
     1385                                                <?php echo sprintf(
     1386                                                        __( '<a href="%s">Choose light or dark</a>' ),
     1387                                                        esc_url( admin_url( 'themes.php?page=theme_options' ) )
     1388                                                ); ?>
     1389                                        </li>
     1390                                        <?php
     1391                                        endif;
     1392                                        if ( current_theme_supports( 'custom-background' ) ) :
     1393                                        ?>
     1394                                        <li>
     1395                                                <?php echo sprintf(
     1396                                                        __( '<a href="%s">Set a background color</a>' ),
     1397                                                        esc_url( admin_url( 'themes.php?page=custom-background' ) )
     1398                                                ); ?>
     1399                                        </li>
     1400                                        <?php
     1401                                        endif;
     1402                                        if ( current_theme_supports( 'custom-header' ) ) :
     1403                                        ?>
     1404                                        <li>
     1405                                                <?php echo sprintf(
     1406                                                        __( '<a href="%s">Select a new header image</a>' ),
     1407                                                        esc_url( admin_url( 'themes.php?page=custom-header' ) )
     1408                                                ); ?>
     1409                                        </li>
     1410                                        <?php
     1411                                        endif;
     1412                                        if ( current_theme_supports( 'widgets' ) ) :
     1413                                        ?>
     1414                                        <li>
     1415                                                <?php echo sprintf(
     1416                                                        __( '<a href="%s">Add some widgets</a>' ),
     1417                                                        esc_url( admin_url( 'widgets.php' ) )
     1418                                                ); ?>
     1419                                        </li>
     1420                                        <?php endif; ?>
     1421                                </ul>
    14191422                                <?php endif; ?>
    1420                         </ul>
    1421                         <?php endif; ?>
     1423                        </div>
    14221424                </div>
    14231425                <p class="welcome-panel-dismiss"><?php printf( __( 'Already know what you&#8217;re doing? <a href="%s">Dismiss this message</a>.' ), '#' ) ?></p>
    14241426                </div>
  • wp-admin/css/wp-admin.dev.css

    
            
     
    22092209
    22102210.welcome-panel .wp-badge {
    22112211        float: left;
     2212        margin-bottom: 20px;
    22122213}
    22132214
    2214 .welcome-panel-content {
     2215.welcome-panel-content .about-description,
     2216.welcome-panel h3 {
    22152217        margin-left: 190px;
     2218        max-width: 1000px;
    22162219}
    22172220
    22182221.welcome-panel p.welcome-panel-dismiss {
    22192222        clear: both;
    2220         padding: 1.5em 0 0 0;
     2223        padding: 1em 0 0 0;
    22212224}
    22222225
     2226.welcome-panel .welcome-panel-column-container {
     2227        clear:  both;
     2228}
     2229
    22232230.welcome-panel .welcome-panel-column {
    22242231        margin: 0 40px 0 24px;
    22252232        max-width: 270px;
    2226         min-width: 220px;
     2233        min-width: 190px;
    22272234        width: 25%;
    22282235        float: left;
    22292236}