Changeset 4410 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/section.php
- Timestamp:
- 11/24/2016 01:38:06 AM (8 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
r4387 r4410 8 8 */ 9 9 10 global $section, $section_slug, $section_content; 10 global $section, $section_slug, $section_content, $section_read_more; 11 11 12 ?> 12 13 13 <div id="<?php echo esc_attr( $section_slug ); ?>" class="read-more" aria-expanded="false"> 14 <div 15 id="<?php echo esc_attr( $section_slug ); ?>" 16 <?php if ( $section_read_more ) : ?> 17 class="section read-more" 18 aria-expanded="false" 19 <?php else: ?> 20 class="section" 21 <?php endif; ?> 22 > 14 23 <h2><?php echo $section['title']; ?></h2> 15 24 <?php echo $section_content; ?> 16 25 </div> 26 <?php if ( $section_read_more ) : ?> 17 27 <button 18 28 type="button" … … 22 32 data-read-more="<?php esc_attr_e( 'Read more', 'wporg-plugins' ); ?>" 23 33 ><?php _e( 'Read more', 'wporg-plugins' ); ?></button> 34 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.