Changeset 4278
- Timestamp:
- 10/21/2016 05:57:46 AM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php
r4223 r4278 18 18 19 19 if ( $contributors = get_the_terms( $post->ID, 'plugin_contributors' ) ) { 20 $contributors = wp_list_pluck( $contributors, ' slug' );20 $contributors = wp_list_pluck( $contributors, 'name' ); 21 21 } else { 22 22 $contributors = array(); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-committers.php
r4263 r4278 2 2 namespace WordPressdotorg\Plugin_Directory\Widgets; 3 3 use WordPressdotorg\Plugin_Directory\Template; 4 use WordPressdotorg\Plugin_Directory\Tools; 4 5 5 6 /** … … 29 30 $post = get_post(); 30 31 32 $committers = Tools::get_plugin_committers( $post->post_name ); 33 $committers = array_map( function( $user_login ) { 34 return get_user_by( 'login', $user_login ); 35 }, $committers ); 36 31 37 echo $args['before_widget']; 32 38 ?> 39 <style> 40 <?php // TODO: Yes, these need to be moved into the CSS somewhere. ?> 41 h3 a.addnew:before { 42 content: '+'; 43 } 44 ul.committer-list { 45 list-style: none; 46 margin: 0; 47 font-size: 0.9em; 48 } 49 ul.committer-list li { 50 clear: both; 51 padding-bottom: 0.5em; 52 } 53 ul.committer-list a.remove { 54 color: red; 55 visibility: hidden; 56 } 57 ul.committer-list li:hover a.remove { 58 visibility: visible; 59 } 60 </style> 61 <h3><?php _e( 'Committers', 'wporg-plugins' ); ?> <a href="#" class="addnew"><?php _e( 'Add', 'wporg-plugins' ); ?></button></h3> 33 62 34 <h3 class="screen-reader-text"><?php echo apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Committers', 'wporg-plugins' ) : $instance['title'], $instance, $this->id_base ); ?></h3> 63 <ul class="committer-list"> 64 <?php foreach ( $committers as $committer ) { 65 echo '<li>' . 66 get_avatar( $committer->ID, 32 ) . 67 '<a href="' . esc_url( 'https://profiles.wordpress.org/' . $committer->user_nicename ) . '">' . Template::encode( $committer->display_name ) . '</a>' . 68 '<br><small>' . esc_html( $committer->user_email ) . ' ' . 69 '<a href="#" class="remove">' . __( 'Remove', 'wporg-plugins' ) . '</a>' . 70 '</small>' . 71 '</li>'; 72 } ?> 73 </ul> 35 74 36 75 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-contributors.php
r4263 r4278 29 29 $post = get_post(); 30 30 31 $contributors = (array) wp_list_pluck( (array)get_the_terms( $post, 'plugin_contributors' ), 'name' ); 32 $contributors = array_map( function( $user_nicename ) { 33 return get_user_by( 'slug', $user_nicename ); 34 }, $contributors ); 35 31 36 echo $args['before_widget']; 32 37 ?> 38 <style> 39 <?php // TODO: Yes, these need to be moved into the CSS somewhere. ?> 40 ul.contributors-list { 41 list-style: none; 42 margin: 0; 43 font-size: 0.9em; 44 } 45 ul.contributors-list li { 46 padding-bottom: 0.5em; 47 } 48 </style> 49 <h3><?php _e( 'Contributors', 'wporg-plugins' ); ?></h3> 50 <p class="widget-subnav"><small><a href="#"><?php _e( 'View the capabilities these users have', 'wporg-plugins' ); ?></a></small></p> 33 51 34 <h3 class="screen-reader-text"><?php echo apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Committers', 'wporg-plugins' ) : $instance['title'], $instance, $this->id_base ); ?></h3> 35 52 <ul id="contributors-list" class="contributors-list read-more" aria-expanded="false"> 53 <?php foreach ( $contributors as $contributor ) { 54 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>'; 55 } ?> 56 </ul> 57 <button type="button" class="button-link section-toggle" aria-controls="contributors-list"><?php _e( 'View more', 'wporg-plugins' ); ?></button> 36 58 37 59 <?php -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-plugin-review.php
r4263 r4278 32 32 ?> 33 33 34 <h3 class="screen-reader-text"><?php echo apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Committers', 'wporg-plugins' ) : $instance['title'], $instance, $this->id_base); ?></h3>34 <h3><?php _e( 'Plugin Review', 'wporg-plugins' ); ?></h3> 35 35 36 36 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/styles/modules/_accessibility.scss
r4223 r4278 31 31 outline: 0; 32 32 } 33 34 /* hide elements if JS isn't available. */ 35 .no-js .hide-if-no-js { 36 display: none; 37 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css
r4263 r4278 1373 1373 #content[tabindex="-1"]:focus { 1374 1374 outline: 0; 1375 } 1376 1377 /* hide elements if JS isn't available. */ 1378 .no-js .hide-if-no-js { 1379 display: none; 1375 1380 } 1376 1381 … … 2200 2205 2201 2206 .no-js .plugin-faqs dd { 2202 2207 display: block; 2203 2208 } 2204 2209 … … 2474 2479 } 2475 2480 2476 .no-js .read-more,2477 2481 .read-more#reviews { 2478 2482 max-height: none; … … 2524 2528 } 2525 2529 2530 .no-js .read-more { 2531 overflow: auto; 2532 max-height: none; 2533 } 2534 2526 2535 .section-toggle { 2527 2536 color: #0073aa; … … 2546 2555 2547 2556 .no-js .section-toggle { 2548 2557 display: none; 2549 2558 } 2550 2559 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css
r4263 r4278 1373 1373 #content[tabindex="-1"]:focus { 1374 1374 outline: 0; 1375 } 1376 1377 /* hide elements if JS isn't available. */ 1378 .no-js .hide-if-no-js { 1379 display: none; 1375 1380 } 1376 1381 … … 2200 2205 2201 2206 .no-js .plugin-faqs dd { 2202 2207 display: block; 2203 2208 } 2204 2209 … … 2474 2479 } 2475 2480 2476 .no-js .read-more,2477 2481 .read-more#reviews { 2478 2482 max-height: none; … … 2524 2528 } 2525 2529 2530 .no-js .read-more { 2531 overflow: auto; 2532 max-height: none; 2533 } 2534 2526 2535 .section-toggle { 2527 2536 color: #0073aa; … … 2546 2555 2547 2556 .no-js .section-toggle { 2548 2557 display: none; 2549 2558 } 2550 2559 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
r4263 r4278 86 86 <?php if ( current_user_can( 'plugin_admin_view', get_post() ) ) : ?> 87 87 <br> 88 <a class="plugin-edit " href="<?php echo esc_url( get_permalink() . 'admin/' ); ?>"><?php _e( 'Edit Plugin', 'wporg-plugins' ); ?></a>88 <a class="plugin-edit hide-if-no-js" href="<?php echo esc_url( get_permalink() . 'admin/' ); ?>"><?php _e( 'Edit Plugin', 'wporg-plugins' ); ?></a> 89 89 <?php endif; ?> 90 90 </div>
Note: See TracChangeset
for help on using the changeset viewer.