Making WordPress.org


Ignore:
Timestamp:
06/18/2016 04:35:50 AM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Design updates to closer reflect the details mockup.

  • Version number and top margin for meta widget.
  • "Loading" bar for resolved support threads.
  • Circular avatars.

See #1719.

File:
1 edited

Legend:

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

    r3344 r3423  
    99class Support extends \WP_Widget {
    1010
     11    /**
     12     * Support constructor.
     13     */
    1114    public function __construct() {
    1215        parent::__construct( 'plugin_support', __( 'Plugin Support', 'wporg-plugins' ), array(
     
    4649        echo $args['before_title'] . $title . $args['after_title'];
    4750
    48         if ( $resolutions ) : ?>
    49         <p>
    50             <?php
    51             /* translators: 1: Number of resolved threads; 2: Number of all threads; */
    52             printf( _n(
    53                 '%1$s support thread (of %2$s) in the last two months has been marked resolved.',
    54                 '%1$s support threads (of %2$s) in the last two months have been marked resolved.',
    55                 $resolved,
    56                 'wporg-plugins'
    57             ), $resolved, $threads );
     51        if ( $resolutions ) :
    5852            ?>
    59         </p>
     53            <p class="aside"><?php _e( 'Issues resolved in last two months:', 'wporg-plugins' ); ?></p>
     54            <p class="counter-container">
     55                <span class="counter-back">
     56                    <span class="counter-bar" style="width: <?php echo esc_attr( 100 * $resolved / $threads ); ?>%;"></span>
     57                </span>
     58                <span class="counter-count">
     59                    <?php
     60                    /* Translators: 1: AMount of resolved threads; 2: Amount of total threads; */
     61                    printf( __( '%1$s out of %2$s'), $resolved, $threads );
     62                    ?>
     63                </span>
     64            </p>
     65
     66        <?php else: ?>
     67            <p><?php _e( 'Got something to say? Need help?', 'wporg-plugins' ); ?></p>
    6068        <?php endif; ?>
    6169
    62         <p><?php _e( 'Got something to say? Need help?', 'wporg-plugins' ); ?></p>
    63         <p><a class="button" href="<?php echo esc_url( $support_url ); ?>"><?php _e( 'View support forum', 'wporg-plugins' ); ?></a></p>
     70        <p>
     71            <a class="button" href="<?php echo esc_url( $support_url ); ?>"><?php _e( 'View support forum', 'wporg-plugins' ); ?></a>
     72        </p>
    6473
    6574        <?php
Note: See TracChangeset for help on using the changeset viewer.