Changeset 1274 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content.php
- Timestamp:
- 02/17/2015 11:18:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content.php
r1265 r1274 1 1 <?php 2 global $theme;3 $theme = wporg_themes_photon_screen_shot( $theme);2 $post = get_post(); 3 $theme = new WPORG_Themes_Repo_Package( $post ); 4 4 ?> 5 <article id="post-<?php echo $ theme->slug; ?>" class="theme hentry">6 <a class="url" href="<?php echo esc_url( home_url( $theme->slug . '/' ) ); ?>" rel="bookmark" tabindex="-1">5 <article id="post-<?php echo $post->post_name; ?>" class="theme hentry"> 6 <a class="url" href="<?php the_permalink(); ?>" rel="bookmark"> 7 7 <div class="theme-screenshot"> 8 < img src="<?php echo esc_url( $theme->screenshot_url . '?w=572&strip=all' ); ?>" alt="">8 <?php the_post_thumbnail( '572' ); ?> 9 9 </div> 10 10 <span class="more-details"><?php _ex( 'More Info', 'theme' ); ?></span> 11 <div class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">' . $theme->author . '</span>' ); ?></div> 12 <h3 class="theme-name entry-title"><?php echo $theme->name; ?></h3> 11 <div class="theme-author"> 12 <?php printf( _x( 'By %s', 'post author', 'wporg-themes' ), '<span class="author vcard">' . esc_html( get_the_author() ) . '</span>' ); ?> 13 </div> 14 <h3 class="theme-name entry-title"><?php the_title(); ?></h3> 13 15 14 16 <div class="theme-actions"> 15 <a class="button button-primary preview install-theme-preview" href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $ theme->slug . '.' . $theme->version. '.zip' ); ?>"><?php esc_html_e( 'Download' ); ?></a>17 <a class="button button-primary preview install-theme-preview" href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $post->post_name . '.' . $theme->latest_version() . '.zip' ); ?>"><?php esc_html_e( 'Download' ); ?></a> 16 18 </div> 17 19 </a>
Note: See TracChangeset
for help on using the changeset viewer.