Making WordPress.org


Ignore:
Timestamp:
05/30/2019 05:42:25 AM (6 years ago)
Author:
dd32
Message:

Theme Directory: Expose the PHP & WordPress version requirements within wordpress.org/themes based on the data extracted from readme.txt.

Props flixos90 for initial work, dd32.
See #3718.

File:
1 edited

Legend:

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

    r7996 r8895  
    4141                    <p class="updated"><?php printf( __( 'Last updated: %s', 'wporg-themes' ), '<strong>{{ data.last_updated }}</strong>' ); ?></p>
    4242                    <p class="active_installs"><?php printf( __( 'Active Installations: %s', 'wporg-themes' ), '<strong>{{ data.active_installs }}</strong>' ); ?></p>
     43                    <# if ( data.requires ) { #>
     44                    <p class="requires"><?php printf( __( 'WordPress Version: %s', 'wporg-themes' ), '<strong>' . sprintf( __( '%s or higher', 'wporg-themes' ), '{{ data.requires }}' ) . '</strong>' ); ?></p>
     45                    <# } #>
     46                    <# if ( data.requires_php ) { #>
     47                    <p class="requires_php"><?php printf( __( 'PHP Version: %s', 'wporg-themes' ), '<strong>' . sprintf( __( '%s or higher', 'wporg-themes' ), '{{ data.requires_php }}' ) . '</strong>' ); ?></p>
     48                    <# } #>
    4349                    <# if ( data.theme_url ) { #>
    44                     <a href="{{ data.theme_url }}"><?php _e( 'Theme Homepage', 'wporg-themes' ); ?></a>
     50                    <p class="theme_homepage"><a href="{{ data.theme_url }}"><?php _e( 'Theme Homepage', 'wporg-themes' ); ?></a></p>
    4551                    <# } #>
    4652                </div>
Note: See TracChangeset for help on using the changeset viewer.