Making WordPress.org


Ignore:
Timestamp:
01/30/2018 10:13:50 PM (7 years ago)
Author:
obenland
Message:

Plugins: Remove remaining read-more links.

Props SergeyBiryukov.
Fixes #3032.

File:
1 edited

Legend:

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

    r6296 r6475  
    88 */
    99
    10 global $section, $section_slug, $section_content, $section_read_more;
     10global $section, $section_slug, $section_content;
    1111
    1212$prefix = in_array( $section_slug, array( 'screenshots', 'faq' ), true ) ? '' : 'tab-';
    1313
    1414$classes = [ 'plugin-' . $section_slug, 'section' ];
    15 if ( $section_read_more ) {
    16     $classes[] = 'read-more';
    17 }
    1815$classes = implode( ' ', $classes );
    1916?>
     
    2320    <?php echo $section_content; ?>
    2421</div>
    25 <?php if ( $section_read_more ) : ?>
    26     <button
    27         type="button"
    28         class="button-link section-toggle"
    29         aria-controls="<?php echo esc_attr( $prefix . $section_slug ); ?>"
    30         aria-describedby="<?php echo esc_attr( $section_slug . '-header' ); ?>"
    31         aria-expanded="false"
    32         data-show-less="<?php esc_attr_e( 'Show less', 'wporg-plugins' ); ?>"
    33         data-read-more="<?php esc_attr_e( 'Read more', 'wporg-plugins' ); ?>"
    34     >
    35     <?php esc_html_e( 'Read more', 'wporg-plugins' ); ?>
    36     </button>
    37 <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.