WordPress.org

Making WordPress.org


Ignore:
Timestamp:
09/06/2017 10:13:34 PM (3 years ago)
Author:
obenland
Message:

WPorg/Main: First pass at blog-related templates.

See #2861.

File:
1 edited

Legend:

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

    r3879 r5892  
    11<?php
    22/**
    3  * The header for our theme.
     3 * The template for displaying all pages.
    44 *
    5  * This is the template that displays all of the <head> section and everything up until <div id="content">
     5 * This is the template that displays all pages by default.
     6 * Please note that this is the WordPress construct of pages
     7 * and that other 'pages' on your WordPress site may use a
     8 * different template.
    69 *
    7  * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
     10 * @link https://codex.wordpress.org/Template_Hierarchy
    811 *
    9  * @package WordPressdotorg\Theme
     12 * @package WordPressdotorg\Plugin_Directory\Theme
    1013 */
    1114
     
    1821
    1922    <div id="content" class="site-content">
    20         <header id="masthead" class="site-header" role="banner">
    21             <div class="site-branding">
    22                 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
    23 
    24                 <nav id="site-navigation" class="main-navigation" role="navigation">
    25                     <button class="menu-toggle dashicons dashicons-arrow-down-alt2" aria-controls="primary-menu" aria-expanded="false" aria-label="<?php esc_attr_e( 'Primary Menu', 'wporg' ); ?>"></button>
    26                     <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu', 'depth' => 1 ) ); ?>
    27                 </nav><!-- #site-navigation -->
    28             </div><!-- .site-branding -->
    29         </header><!-- #masthead -->
Note: See TracChangeset for help on using the changeset viewer.