Making WordPress.org


Ignore:
Timestamp:
10/18/2018 01:53:33 AM (6 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Revamp the design of the homepage to match the redesign of other wp.org sites (support, plugins, main, etc).

Also changes dashicon used for theme handbook.

Props mapk, coffee2code.
Fixes #2459.
See #3377.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/header.php

    r6512 r7739  
    1313?>
    1414
    15 <header id="masthead" class="site-header" role="banner">
     15<header id="masthead" class="site-header<?php if ( is_front_page() ) { echo ' home'; } ?>" role="banner">
    1616    <?php if ( get_query_var( 'is_handbook' ) ) : ?>
    1717    <a href="#" id="secondary-toggle" onclick="return false;"><strong><?php _e( 'Menu', 'wporg' ); ?></strong></a>
    1818    <?php endif; ?>
    1919    <div class="site-branding">
    20         <?php $tag = is_front_page() ? 'span' : 'h1'; ?>
    21         <<?php echo $tag; ?> class="site-title">
     20        <h1 class="site-title">
    2221            <a href="<?php echo esc_url( DevHub\get_site_section_url() ); ?>" rel="home"><?php echo DevHub\get_site_section_title(); ?></a>
    23         </<?php echo $tag; ?>>
     22        </h1>
     23
     24        <?php if ( is_front_page() ) : ?>
     25        <p class="site-description"><?php _e( 'The freedom to build.', 'wporg' ); ?></p>
     26        <?php endif; ?>
    2427
    2528        <nav id="site-navigation" class="main-navigation" role="navigation">
Note: See TracChangeset for help on using the changeset viewer.