Making WordPress.org


Ignore:
Timestamp:
04/20/2017 04:12:08 PM (8 years ago)
Author:
Otto42
Message:

Plugin Directory: The return of tabs.

Change single-plugin view to have tabbed design. Eliminates read-more on all sections except developers and changelog, adds tabs back to interface using CSS to switch between them. Tabs control both main display as well as widgets.

Known issues: Changelog read-more not working (js issue), developers section is currently split using CSS, future change will split this section into two separate sections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar.php

    r4466 r5399  
    1717the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta',    array(), $widget_args );
    1818the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args );
     19the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors', array(), array(
     20    'before_title' => '<h4 class="widget-title">',
     21    'after_title'  => '</h4>',
     22    'before_widget' => '<div id="plugin-contributors" class="widget plugin-contributors read-more" aria-expanded="false">',
     23    'after_widget' => sprintf( '</div><button type="button" class="button-link section-toggle" aria-controls="plugin-contributors">%s</button>', __( 'View more', 'wporg-plugins' ) ),
     24) );
    1925the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Support', array(), $widget_args );
    2026the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Donate',  array(), $widget_args );
Note: See TracChangeset for help on using the changeset viewer.