Changeset 3825 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
- Timestamp:
- 08/18/2016 01:17:38 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/plugin-single.php
r3791 r3825 12 12 use WordPressdotorg\Plugin_Directory\Template; 13 13 use WordPressdotorg\Plugin_Directory\Tools; 14 global $section, $section_slug, $section_content; 14 15 15 16 $content = Plugin_Directory::instance()->split_post_content_into_pages( get_the_content() ); … … 79 80 $section = wp_list_filter( $plugin_sections, array( 'slug' => $section_slug ) ); 80 81 $section = array_pop( $section ); 82 83 get_template_part( 'template-parts/section', $section_slug ); 84 endforeach; 81 85 ?> 82 83 <div id="<?php echo esc_attr( $section_slug ); ?>" class="read-more" aria-expanded="false">84 <h2><?php echo $section['title']; ?></h2>85 <?php echo $section_content; ?>86 </div>87 <?php if ( 'reviews' === $section_slug ) : ?>88 <a class="reviews-link" href="<?php echo esc_url( 'https://wordpress.org/support/view/plugin-reviews/' . get_post()->post_name . '/' ); ?>">89 <?php printf( __( 'Read all %s reviews', 'wporg-plugins' ), array_sum( get_post_meta( get_the_ID(), 'ratings', true ) ) ); ?>90 </a>91 <?php else : ?>92 <button type="button" class="button-link section-toggle" aria-controls="<?php echo esc_attr( $section_slug ); ?>"><?php _e( 'Read more', 'wporg-plugins' ); ?></button>93 <?php endif; ?>94 <?php endforeach; ?>95 86 </div><!-- .entry-content --> 96 87
Note: See TracChangeset
for help on using the changeset viewer.