Making WordPress.org


Ignore:
Timestamp:
06/18/2016 12:33:56 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Second pass at plugin reviews o plugin detail.

See #1719.`

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r3422 r3427  
    6161                <?php echo $section_content; ?>
    6262            </div>
     63                <?php if ( 'reviews' === $section_slug ) : ?>
     64                <a class="reviews-link" href="<?php echo esc_url( 'https://wordpress.org/support/view/plugin-reviews/' . get_post()->post_name . '/' ); ?>">
     65                    <?php printf( __( 'Read all %s reviews', 'wporg-plugins' ), get_post_meta( get_the_ID(), 'num_ratings', true ) ); ?>
     66                </a>
     67                <?php else : ?>
    6368            <button type="button" class="button-link section-toggle" aria-controls="<?php echo esc_attr( $section_slug ); ?>"><?php _e( 'Read more', 'wporg-plugins' ); ?></button>
     69                <?php endif; ?>
    6470        <?php endforeach; ?>
    6571    </div><!-- .entry-content -->
Note: See TracChangeset for help on using the changeset viewer.