Changeset 5210 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
- Timestamp:
- 03/30/2017 03:57:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
r5001 r5210 46 46 <li><?php printf( __( 'Designed to work with: %s', 'wporg-plugins' ), $built_for ); ?></li> 47 47 <?php endif; ?> 48 48 49 <li><?php printf( __( 'Version: %s', 'wporg-plugins' ), '<strong>' . get_post_meta( $post->ID, 'version', true ) . '</strong>' ); ?></li> 49 50 <li> … … 56 57 </li> 57 58 <li><?php printf( __( 'Active installs: %s', 'wporg-plugins' ), '<strong>' . Template::active_installs( false ) . '</strong>' ); ?></li> 58 <?php if ( $tested_up_to = (string) get_post_meta( $post->ID, 'tested', true ) ) { ?> 59 60 <?php if ( $tested_up_to = (string) get_post_meta( $post->ID, 'tested', true ) ) : ?> 59 61 <li><?php printf( __( 'Tested up to: %s', 'wporg-plugins' ), '<strong>' . $tested_up_to . '</strong>' ); ?></li> 60 <?php } ?> 62 <?php endif; ?> 63 61 64 <?php if ( $tags = get_the_term_list( $post->ID, 'plugin_tags', '<div class="tags">', '', '</div>' ) ) : ?> 62 <li ><?php65 <li class="clear"><?php 63 66 $terms = get_the_terms( $post, 'plugin_tags' ); 64 if ( 1 == count( $terms ) ) {67 if ( 1 == count( $terms ) ) : 65 68 printf( __( 'Tag: %s', 'wporg-plugins' ), $tags ); 66 } else {69 else : 67 70 printf( __( 'Tags: %s', 'wporg-plugins' ), $tags ); 68 }71 endif; 69 72 ?></li> 73 <?php endif; ?> 74 75 <?php if ( current_user_can( 'plugin_admin_view', $post ) ) : ?> 76 <li class="hide-if-no-js"> 77 <?php 78 printf( __( 'Admin access: %s', 'wporg-plugins' ), 79 sprintf( '<strong><a class="plugin-admin" href="%s">%s</a></strong>', esc_url( get_permalink() . 'admin/' ), __( 'View Admin', 'wporg-plugins' ) ) 80 ); 81 ?> 82 </li> 70 83 <?php endif; ?> 71 84 </ul>
Note: See TracChangeset
for help on using the changeset viewer.