Making WordPress.org


Ignore:
Timestamp:
04/20/2017 04:12:08 PM (7 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/section.php

    r5394 r5399  
    1313
    1414<div
    15     id="<?php echo esc_attr( $section_slug ); ?>"
     15<?php if ( !in_array ( $section_slug, array( 'screenshots','faq' ) ) ) {
     16    $prefix = 'tab-';
     17} else {
     18    $prefix = '';
     19}
     20?>
     21    id="<?php echo esc_attr( $prefix.$section_slug ); ?>"
    1622    class="plugin-<?php echo esc_attr( $section_slug ); ?> section <?php if ( $section_read_more ) { echo 'read-more'; } ?>"
    1723>
     
    2329    type="button"
    2430    class="button-link section-toggle"
    25     aria-controls="<?php echo esc_attr( $section_slug ); ?>"
     31    aria-controls="<?php echo esc_attr( $prefix.$section_slug ); ?>"
    2632    aria-describedby="<?php echo esc_attr( $section_slug . '-header' ); ?>"
    2733    aria-expanded="false"
Note: See TracChangeset for help on using the changeset viewer.