Changeset 3423 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support.php
- Timestamp:
- 06/18/2016 04:35:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support.php
r3344 r3423 9 9 class Support extends \WP_Widget { 10 10 11 /** 12 * Support constructor. 13 */ 11 14 public function __construct() { 12 15 parent::__construct( 'plugin_support', __( 'Plugin Support', 'wporg-plugins' ), array( … … 46 49 echo $args['before_title'] . $title . $args['after_title']; 47 50 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 ) : 58 52 ?> 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> 60 68 <?php endif; ?> 61 69 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> 64 73 65 74 <?php
Note: See TracChangeset
for help on using the changeset viewer.