Making WordPress.org


Ignore:
Timestamp:
03/06/2015 08:45:23 AM (10 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/content-single.php

    r1361 r1383  
    3131            </div>
    3232            <?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>
    3343        </div><!-- .theme-head -->
    3444
Note: See TracChangeset for help on using the changeset viewer.