Changeset 5121 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-contributors.php
- Timestamp:
- 03/08/2017 12:06:02 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-contributors.php
r4468 r5121 38 38 } 39 39 40 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Contributors', 'wporg-plugins' ) : $instance['title'], $instance, $this->id_base ); 41 40 42 echo $args['before_widget']; 43 echo $args['before_title'] . $title . $args['after_title']; 41 44 ?> 42 <h3><?php _e( 'Contributors', 'wporg-plugins' ); ?></h3>43 45 44 <ul id="contributors-list" class="contributors-list read-more" aria-expanded="false"> 45 <?php foreach ( $contributors as $contributor ) { 46 echo '<li>' . get_avatar( $contributor->ID, 32 ) . '<a href="' . esc_url( 'https://profiles.wordpress.org/' . $contributor->user_nicename ) . '">' . Template::encode( $contributor->display_name ) . '</a></li>'; 47 } ?> 46 <ul id="contributors-list" class="contributors-list"> 47 <?php foreach ( $contributors as $contributor ) : ?> 48 <li> 49 <?php echo get_avatar( $contributor->ID, 32 ); ?> 50 <a href="<?php echo esc_url( 'https://profiles.wordpress.org/' . $contributor->user_nicename ); ?>"> 51 <?php echo Template::encode( $contributor->display_name ); ?> 52 </a> 53 </li> 54 <?php endforeach; ?> 48 55 </ul> 49 <button type="button" class="button-link section-toggle" aria-controls="contributors-list"><?php _e( 'View more', 'wporg-plugins' ); ?></button>50 56 51 57 <?php
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)