Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-ratings.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-ratings.php
r5457 r6287 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\Widgets; 3 3 4 use WordPressdotorg\Plugin_Directory\Template; 4 5 … … 36 37 echo $args['before_widget']; 37 38 echo $args['before_title'] . $title . $args['after_title']; 39 40 if ( $rating ) : 38 41 ?> 39 40 <?php if ( $rating ) : ?>41 42 <a class="reviews-link" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/' ); ?>"><?php _ex( 'See all', 'reviews', 'wporg-plugins' ); ?></a> 42 43 … … 46 47 47 48 <ul class="ratings-list"> 48 <?php foreach ( range( 5, 1 ) as $stars ) : 49 <?php 50 foreach ( range( 5, 1 ) as $stars ) : 49 51 $rating_bar_width = $num_ratings ? 100 * $ratings[ $stars ] / $num_ratings : 0; 50 52 ?> … … 67 69 </div> 68 70 69 <?php endif; // $rating 71 <?php endif; // $rating ?> 70 72 71 if ( is_user_logged_in() ) : ?>73 <?php if ( is_user_logged_in() ) : ?> 72 74 <div class="user-rating"> 73 75 <a class="button button-secondary" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/#new-post' ); ?>"><?php _e( 'Add my review', 'wporg-plugins' ); ?></a> 74 76 </div> 75 77 <?php 76 78 endif; 77 79
Note: See TracChangeset
for help on using the changeset viewer.