Changeset 1383
- Timestamp:
- 03/06/2015 08:45:23 AM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php
r1361 r1383 31 31 </div> 32 32 <?php endif; ?> 33 34 <div class="theme-meta-info"> 35 <p class="updated"><?php printf( __( 'Last updated: %s', 'wporg-themes' ), '<strong>' . date_i18n( get_option( 'date_format' ), strtotime( $theme->last_updated ) ) . '</strong>' ); ?></p> 36 <?php 37 $theme_url = wporg_themes_get_version_meta( get_the_ID(), '_theme_url', $theme->version ); 38 if ( ! empty( $theme_url ) ) : 39 ?> 40 <a href="<?php echo esc_url( $theme_url ); ?>"><?php _e( 'Theme Homepage', 'wporg-themes' ); ?></a> 41 <?php endif; ?> 42 </div> 33 43 </div><!-- .theme-head --> 34 44 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r1375 r1383 39 39 wp_enqueue_style( 'ratings', '//wordpress.org/extend/themes-plugins/bb-ratings/bb-ratings.css', array(), '4' ); 40 40 wp_enqueue_style( 'themes-style', self_admin_url( 'css/themes.css' ) ); 41 wp_enqueue_style( 'wporg-themes-style', get_stylesheet_uri() );41 wp_enqueue_style( 'wporg-themes-style', get_stylesheet_uri(), array(), filemtime( __DIR__ . '/style.css' ) ); 42 42 43 43 wp_enqueue_script( 'google-jsapi', '//www.google.com/jsapi', array( 'jquery' ), null ); … … 136 136 'num_ratings' => true, 137 137 'parent' => true, 138 'theme_url' => true, 138 139 ) ); 139 140 … … 173 174 if ( in_array( $action, array( 'query_themes', 'theme_information' ) ) ) { 174 175 $args->per_page = 30; 175 $args->fields['parent'] = true; 176 $args->fields['ratings'] = true; 177 $args->fields['tags'] = true; 176 $args->fields['parent'] = true; 177 $args->fields['ratings'] = true; 178 $args->fields['tags'] = true; 179 $args->fields['theme_url'] = true; 178 180 } 179 181 … … 209 211 'num_ratings' => true, 210 212 'parent' => true, 213 'theme_url' => true, 211 214 ) ); 212 215 $args = wp_parse_args( $request, array( … … 247 250 'num_ratings' => true, 248 251 'parent' => true, 252 'theme_url' => true, 249 253 ) ); 250 254 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css
r1377 r1383 177 177 } 178 178 179 .theme-wrap .theme-meta-info { 180 margin: 1.5em 0 0; 181 } 182 183 .theme-wrap .theme-meta-info .updated { 184 margin: 0 0 0.5em; 185 } 186 187 .theme-wrap .theme-meta-info a:after { 188 content: '\2192'; 189 margin-left: 5px; 190 } 191 179 192 .theme-overlay .theme-description, 180 193 .theme-overlay .theme-tags { … … 184 197 185 198 .theme-wrap .theme-devs, 186 .theme-wrap .theme-support { 199 .theme-wrap .theme-support, 200 .theme-wrap .theme-meta-info { 187 201 font-size: 1.4em; 188 202 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php
r1377 r1383 29 29 </div> 30 30 <# } #> 31 32 <div class="theme-meta-info"> 33 <p class="updated"><?php printf( __( 'Last updated: %s', 'wporg-themes' ), '<strong>{{ new Date( data.last_updated ).toLocaleDateString() }}</strong>' ); ?></p> 34 <# if ( data.theme_url ) { #> 35 <a href="{{ data.theme_url }}"><?php _e( 'Theme Homepage', 'wporg-themes' ); ?></a> 36 <# } #> 37 </div> 31 38 </div><!-- .theme-head --> 32 39
Note: See TracChangeset
for help on using the changeset viewer.