Making WordPress.org

Changeset 4263


Ignore:
Timestamp:
10/19/2016 06:23:13 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Add no-js handling for JS-only sections and add the start of the admin sidebars.

See #2111

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
5 added
9 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r4260 r4263  
    340340         */
    341341        public function register_widgets() {
    342                 register_widget( __NAMESPACE__ . '\Widgets\Donate'  );
    343                 register_widget( __NAMESPACE__ . '\Widgets\Meta'    );
    344                 register_widget( __NAMESPACE__ . '\Widgets\Ratings' );
    345                 register_widget( __NAMESPACE__ . '\Widgets\Support' );
     342                register_widget( __NAMESPACE__ . '\Widgets\Donate'        );
     343                register_widget( __NAMESPACE__ . '\Widgets\Meta'          );
     344                register_widget( __NAMESPACE__ . '\Widgets\Ratings'       );
     345                register_widget( __NAMESPACE__ . '\Widgets\Support'       );
     346                register_widget( __NAMESPACE__ . '\Widgets\Committers'    );
     347                register_widget( __NAMESPACE__ . '\Widgets\Contributors'  );
     348                register_widget( __NAMESPACE__ . '\Widgets\Plugin_Review' );
    346349        }
    347350
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r3935 r4263  
    176176
    177177                                case 'developers':
    178                                         $title = _x( 'Contributors & Developers', 'plugin tab title', 'wporg-plugins' );
     178                                        $title = _x( 'Authors', 'plugin tab title', 'wporg-plugins' );
    179179                                        $url   = trailingslashit( $permalink ) . '/' . $section_slug . '/';
    180180                                        break;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/developers/index.jsx

    r4223 r4263  
    1010                        <div>
    1111                                <div id="developers" className="read-more" aria-expanded="false">
    12                                         <h2>Contributors & Developers</h2>
     12                                        <h2>Authors</h2>
    1313                                        <DeveloperList contributors={ this.props.contributors } />
    1414
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/faq/style.scss

    r4223 r4263  
    5050        }
    5151}
     52
     53.no-js .plugin-faqs dd {
     54        display: block;
     55}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/style.scss

    r4223 r4263  
    5252}
    5353
     54.no-js .read-more {
     55        overflow: auto;
     56        max-height: none;
     57}
     58
    5459.section-toggle {
    5560        color: $color__link;
     
    7075        }
    7176}
     77
     78.no-js .section-toggle {
     79        display: none;
     80}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css

    r4224 r4263  
    21992199}
    22002200
     2201.no-js .plugin-faqs dd {
     2202        display: block;
     2203}
     2204
    22012205.plugin-reviews {
    22022206  list-style-type: none;
     
    24702474}
    24712475
     2476.no-js .read-more,
    24722477.read-more#reviews {
    24732478  max-height: none;
     
    25382543.toggled + .section-toggle:after {
    25392544  content: "\f343";
     2545}
     2546
     2547.no-js .section-toggle {
     2548        display: none;
    25402549}
    25412550
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css

    r4224 r4263  
    21992199}
    22002200
     2201.no-js .plugin-faqs dd {
     2202        display: block;
     2203}
     2204
    22012205.plugin-reviews {
    22022206  list-style-type: none;
     
    24702474}
    24712475
     2476.no-js .read-more,
    24722477.read-more#reviews {
    24732478  max-height: none;
     
    25382543.toggled + .section-toggle:after {
    25392544  content: "\f343";
     2545}
     2546
     2547.no-js .section-toggle {
     2548        display: none;
    25402549}
    25412550
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r4260 r4263  
    143143
    144144
     145function custom_body_class( $classes ) {
     146        $classes[] = 'no-js';
     147        return $classes;
     148}
     149add_filter( 'body_class', __NAMESPACE__ . '\custom_body_class' );
     150
    145151/**
    146152 * Adds hreflang link attributes to plugin pages.
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r4260 r4263  
    1515
    1616$content = Plugin_Directory::instance()->split_post_content_into_pages( get_the_content() );
    17 
    18 $widget_args = array(
    19         'before_title' => '<h4 class="widget-title">',
    20         'after_title'  => '</h4>',
    21 );
    2217
    2318?><article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    144139        <div class="entry-meta">
    145140                <?php
    146                 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta',    array(), $widget_args );
    147                 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args );
    148                 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Support', array(), $widget_args );
    149                 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Donate',  array(), $widget_args );
     141                get_template_part( 'template-parts/plugin-sidebar', ( get_query_var( 'plugin_admin' ) ? 'admin' : '' ) );
    150142                ?>
    151143        </div><!-- .entry-meta -->
Note: See TracChangeset for help on using the changeset viewer.