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.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/site-header
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/client/components/site-header/site-header.jsx

    r3733 r3734  
    11import React from 'react';
    22
     3/**
     4 * Internal dependencies.
     5 */
     6import SearchForm from 'components/search-form';
     7import SiteDescription from './site-description';
    38import SiteTitle from './site-title';
    4 import SiteDescription from './site-description';
    59import MainNavigation from './main-navigation';
    6 import SearchForm from './search-form';
    710
    811export default React.createClass( {
     
    1013
    1114    render() {
     15        const classes = ['site-header'];
     16        classes.push( this.props.isHome ? 'home' : '' );
     17
    1218        return (
    13             <header id="masthead" className="site-header" role="banner">
     19            <header id="masthead" className={ classes.join( ' ' ) } role="banner">
    1420                <div className="site-branding">
    1521                    <SiteTitle isHome={ this.props.isHome } />
Note: See TracChangeset for help on using the changeset viewer.