Making WordPress.org


Ignore:
Timestamp:
08/26/2016 07:58:01 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: React components for single plugin view.

Adds a React version of the single plugin page. Still needs more work around
certain plugin sections, like showing different links based on whether a user
is logged in or not.
Moves over the last component-based sass files into the component structure.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/widget-area/index.jsx

    r3771 r3862  
    55
    66    render() {
     7        let classNames = [ 'widget-area' ];
     8
     9        if ( this.props.router.isActive( '/', true ) ) {
     10            classNames.push( 'home' );
     11        }
     12
    713        return (
    8             <aside id="secondary" className="widget-area" role="complementary">
     14            <aside id="secondary" className={ classNames.join( ' ' ) } role="complementary">
    915                { this.props.children }
    1016            </aside>
Note: See TracChangeset for help on using the changeset viewer.