Changeset 5210
- Timestamp:
- 03/30/2017 03:57:21 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 2 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> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
r5036 r5210 95 95 </div> 96 96 <?php endif; ?> 97 <div>98 <a class="plugin-download button download-button button-large" href="<?php echo esc_url( Template::download_link() ); ?>" itemprop="downloadUrl"><?php _e( 'Download', 'wporg-plugins' ); ?></a>99 <?php if ( current_user_can( 'plugin_admin_view', get_post() ) ) : ?>100 <br>101 <a class="plugin-edit hide-if-no-js" href="<?php echo esc_url( get_permalink() . 'admin/' ); ?>"><?php _e( 'Admin', 'wporg-plugins' ); ?></a>102 <?php endif; ?>103 </div>104 97 98 <a class="plugin-download button download-button button-large" href="<?php echo esc_url( Template::download_link() ); ?>" itemprop="downloadUrl"><?php _e( 'Download', 'wporg-plugins' ); ?></a> 105 99 <meta itemprop="softwareVersion" content="<?php echo esc_attr( get_post_meta( get_the_ID(), 'version', true ) ); ?>"> 106 100 <meta itemprop="fileFormat" content="application/zip">
Note: See TracChangeset
for help on using the changeset viewer.