Making WordPress.org

Ticket #3717: 3717.diff

File 3717.diff, 2.9 KB (added by ck3lee, 6 years ago)
  • wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php

    diff --git wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php
    index ad8d449a6..0efe25c3d 100644
    class Reviews { 
    3636                                                <?php echo get_avatar( get_the_author_meta( 'ID' ), 60 ); ?>
    3737                                        </div><div class="review">
    3838                                                <header>
    39                                                         <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>
    40                                                         <?php echo Template::dashicons_stars( $review->post_rating ); ?>
    41                                                         <span class="review-author author vcard"><?php the_author_posts_link(); ?></span>
     39                                                        <div class="header-top">
     40                                                                <?php echo Template::dashicons_stars( $review->post_rating ); ?>
     41                                                                <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>
     42                                                        </div>
     43                                                        <div class="header-bottom">
     44                                                                <span class="review-author author vcard"><?php the_author_posts_link(); ?></span>
     45                                                                <span class="review-date"><?php echo gmdate( 'F j, Y', strtotime( $review->post_modified ) ); ?></span>
     46                                                        </div>
    4247                                                </header>
    4348                                                <div class="review-content"><?php echo wp_strip_all_tags(get_the_content()); ?></div>
    4449                                        </div>
  • wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/reviews/style.scss

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/reviews/style.scss wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/reviews/style.scss
    index a4323e2cf..59fa9a273 100644
     
    1111                &:first-child {
    1212                        margin-top: 0;
    1313                }
     14                .header-top {
     15                        display: flex;
     16                        .wporg-ratings {
     17                                flex-shrink: 0;
     18                        }
     19                }
     20
     21                .header-bottom {
     22                        display: flex;
     23                        margin-bottom: 12px;
     24                }
    1425        }
    1526
    1627        .review-avatar {
     
    3243                font-size: ms( 0 );
    3344                font-weight: 600;
    3445                letter-spacing: 0.01rem;
    35                 margin: 0 0 0.5rem;
     46                margin: 0 0 8px 12px;
    3647                text-transform: inherit;
     48                line-height: 1.25;
    3749        }
    3850
    39         .review-author {
     51        .review-date{
     52                margin-left: 12px;
     53                color: #999;
     54                font-size: 0.9em;
     55        }
     56
     57        .review-author, .review-date {
    4058                line-height: 1.25;
    41                 margin-left: 10px;
     59                font-size: 0.9em;
    4260        }
    4361
    4462        @media screen and ( min-width: $ms-breakpoint ) {
     
    5977                        margin: 0;
    6078                }
    6179
    62                 .review-author {
     80                .review-author, .review-date {
    6381                        line-height: 1;
    6482                }
    6583        }