Changeset 3411
- Timestamp:
- 06/17/2016 12:33:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
r3405 r3411 44 44 <div class="entry-content"> 45 45 <?php 46 foreach ( Template::get_plugin_sections() as $section ) : 47 if ( ! array_key_exists( $section['slug'], $content ) || in_array( $section['slug'], array( 'installation', 'other_notes' ) ) ) : 46 $plugin_sections = Template::get_plugin_sections(); 47 foreach ( array( 'description', 'screenshots', 'faq', 'reviews' ) as $section_slug ) : 48 if ( ! array_key_exists( $section_slug, $content ) || in_array( $section_slug, array( 'installation', 'other_notes' ) ) ) : 48 49 continue; 49 50 endif; 51 $section = wp_list_filter( $plugin_sections, array( 'slug' => $section_slug ) ); 52 $section = array_pop( $section ); 50 53 ?> 51 54 52 <div id="<?php echo esc_attr( $section ['slug']); ?>" class="read-more" aria-expanded="false">55 <div id="<?php echo esc_attr( $section_slug ); ?>" class="read-more" aria-expanded="false"> 53 56 <h2><?php echo $section['title']; ?></h2> 54 <?php echo apply_filters( 'the_content', $content[ $section ['slug'] ], $section['slug']); ?>57 <?php echo apply_filters( 'the_content', $content[ $section_slug ], $section_slug ); ?> 55 58 </div> 56 <button type="button" class="button-link section-toggle" aria-controls="<?php echo esc_attr( $section ['slug']); ?>"><?php _e( 'Read more', 'wporg-plugins' ); ?></button>59 <button type="button" class="button-link section-toggle" aria-controls="<?php echo esc_attr( $section_slug ); ?>"><?php _e( 'Read more', 'wporg-plugins' ); ?></button> 57 60 <?php endforeach; ?> 58 61 </div><!-- .entry-content --> … … 64 67 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta', array(), $widget_args ); 65 68 ?> 66 67 69 </div><!-- .entry-meta --> 68 70 </article><!-- #post-## -->
Note: See TracChangeset
for help on using the changeset viewer.