Making WordPress.org


Ignore:
Timestamp:
11/25/2014 08:49:42 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Make theme previews work.

  • Consolidates data handling for index and single.
  • Makes Previews play nicely with Modals.
  • Streamlines some UI aspects between Previews and Modals.
File:
1 edited

Legend:

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

    r1001 r1006  
    33    <div class="theme-wrap">
    44        <div class="theme-header">
     5            <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span></button>
    56            <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
    67            <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
    7             <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span></button>
    88        </div>
    99        <div class="theme-about">
     
    1616            </div>
    1717
    18             <div class="theme-info">
    19                 <h3 class="theme-name">
    20                     {{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{{ data.version }}}' ); ?></span>
    21                 </h3>
    22                 <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></h4>
     18            <div class="theme-info hentry">
     19                <h3 class="theme-name entry-title">{{{ data.name }}}</h3>
     20                <span class="theme-version"><?php printf( __( 'Version: %s' ), '{{{ data.version }}}' ); ?></span>
     21                <h4 class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">{{{ data.author }}}</span>' ); ?></h4>
    2322
    24                 <p class="theme-description">{{{ data.description }}}</p>
     23                <p class="theme-description entry-summary">{{{ data.description }}}</p>
    2524
    2625                <div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
     
    3534
    3635                <div class="theme-stats">
    37                     <div><strong><?php _e( 'Last updated:' ); ?></strong> {{ data.last_updated }}</div>
     36                    <div><strong><?php _e( 'Last updated:' ); ?></strong> <span class="updated">{{ data.last_updated }}</span></div>
    3837                    <div><strong><?php _e( 'Downloads:' ); ?></strong> {{ data.downloaded }}</div>
    3938                    <div><a href="{{ data.homepage }}"><?php _e( 'Theme Homepage &raquo;' ); ?></a></div>
     
    4443                    <span><?php _e( 'Tags:' ); ?></span>
    4544                    <# _.each( data.tags, function( tag ) { #>
    46                         {{{ tag }}}
     45                        <a href="">{{{ tag }}}</a>
    4746                    <# }); #>
    4847                </p>
Note: See TracChangeset for help on using the changeset viewer.