WordPress.org

Making WordPress.org


Ignore:
Timestamp:
03/06/2015 08:45:23 AM (4 years ago)
Author:
obenland
Message:

WP.org Themes: Add last_updated and theme_url to single themes.

Is in need of a design upgrade.

See #908, #953.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r1377 r1383  
    2929                </div>
    3030                <# } #>
     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>
    3138            </div><!-- .theme-head -->
    3239
Note: See TracChangeset for help on using the changeset viewer.