Making WordPress.org


Ignore:
Timestamp:
07/28/2016 10:55:18 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Restructure containers and components.

Merges containers with their components and adopts a folder hierarchy similar
to the actual element hierarchy. The exception to the rule are reusable
components.

This also adds support for displaying plugins in the plugin_section taxonomy.

See #1719.

File:
1 edited

Legend:

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

    r3695 r3734  
    1111
    1212namespace WordPressdotorg\Plugin_Directory\Theme;
    13 use WordPressdotorg\Plugin_Directory\Template;
    1413
    1514$menu_items = array(
     
    2625
    2726    <div id="content" class="site-content">
    28         <header id="masthead" class="site-header" role="banner">
     27        <header id="masthead" class="site-header <?php echo is_home() ? 'home' : ''; ?>" role="banner">
    2928            <div class="site-branding">
    30                 <?php if ( is_front_page() && is_home() ) : ?>
     29                <?php if ( is_home() ) : ?>
    3130                    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Plugins','Site title', 'wporg-plugins' ); ?></a></h1>
    32                 <?php else : ?>
    33                     <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Plugins','Site title', 'wporg-plugins' ); ?></a></p>
    34                 <?php endif; ?>
    3531
    36                 <?php if ( is_home() ) : ?>
    3732                    <p class="site-description">
    3833                        <?php
     
    4338                    <?php get_search_form(); ?>
    4439                <?php else : ?>
     40                    <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Plugins','Site title', 'wporg-plugins' ); ?></a></p>
     41
    4542                    <nav id="site-navigation" class="main-navigation" role="navigation">
    4643                        <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-plugins' ); ?>"></button>
Note: See TracChangeset for help on using the changeset viewer.