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/content.php

    r1001 r1006  
    1 <?php global $theme; ?>
    2 <article class="theme">
     1<?php global $theme; var_dump($theme);?>
     2<article id="post-<?php echo $theme->slug; ?>" class="theme hentry">
    33    <div class="theme-screenshot">
    44        <img src="<?php echo esc_url( $theme->screenshot_url ); ?>" alt="">
    55    </div>
    6     <a href="/<?php echo $theme->slug; ?>" class="more-details"><?php _ex( 'More Info', 'theme' ); ?></a>
    7     <div class="theme-author"><?php printf( __( 'By %s' ), $theme->author ); ?></div>
    8     <h3 class="theme-name"><?php echo $theme->name; ?></h3>
     6    <a class="more-details url" href="/<?php echo $theme->slug; ?>" rel="bookmark"><?php _ex( 'More Info', 'theme' ); ?></a>
     7    <div class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">' . $theme->author . '</span>' ); ?></div>
     8    <h3 class="theme-name entry-title"><?php echo $theme->name; ?></h3>
    99
    1010    <div class="theme-actions">
Note: See TracChangeset for help on using the changeset viewer.