Changeset 6475 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/section.php
- Timestamp:
- 01/30/2018 10:13:50 PM (7 years ago)
- 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 8 8 */ 9 9 10 global $section, $section_slug, $section_content , $section_read_more;10 global $section, $section_slug, $section_content; 11 11 12 12 $prefix = in_array( $section_slug, array( 'screenshots', 'faq' ), true ) ? '' : 'tab-'; 13 13 14 14 $classes = [ 'plugin-' . $section_slug, 'section' ]; 15 if ( $section_read_more ) {16 $classes[] = 'read-more';17 }18 15 $classes = implode( ' ', $classes ); 19 16 ?> … … 23 20 <?php echo $section_content; ?> 24 21 </div> 25 <?php if ( $section_read_more ) : ?>26 <button27 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.