Making WordPress.org


Ignore:
Timestamp:
07/03/2019 03:48:18 AM (6 years ago)
Author:
dd32
Message:

Plugin Directory: Show the review date for reviews.

Props ck3lee, mapk, philclothier.
Fixes #3717.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php

    r9016 r9019  
    4343                    </div><div class="review">
    4444                        <header>
    45                             <h3 class="review-title"><a class="url" href="<?php echo esc_url( 'https://wordpress.org/support/topic/' . $review->post_name . '/' ); ?>"><?php echo get_the_title( $review ); ?></a></h3>
    46                             <?php echo Template::dashicons_stars( $review->post_rating ); ?>
    47                             <span class="review-author author vcard"><?php the_author_posts_link(); ?></span>
     45                            <div class="header-top">
     46                                <?php echo Template::dashicons_stars( $review->post_rating ); ?>
     47                                <h3 class="review-title"><a class="url" href="<?php echo esc_url( 'https://wordpress.org/support/topic/' . $review->post_name . '/' ); ?>"><?php echo get_the_title( $review ); ?></a></h3>
     48                            </div>
     49                            <div class="header-bottom">
     50                                <span class="review-author author vcard"><?php the_author_posts_link(); ?></span>
     51                                <span class="review-date"><?php echo date_i18n( 'F j, Y', strtotime( $review->post_modified ) ); ?></span>
     52                            </div>
    4853                        </header>
    4954                        <div class="review-content"><?php echo wp_strip_all_tags(get_the_content()); ?></div>
Note: See TracChangeset for help on using the changeset viewer.