Making WordPress.org


Ignore:
Timestamp:
02/16/2015 11:10:16 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Don't prevent opening themes in new tabs.

Wrapps the anchor around all child elements of .theme to allow users to
either right-click and choose to open the link in a new tab, or click the link
with a meta modifier key pressed (command/Ctrl).

Fixes #844.

File:
1 edited

Legend:

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

    r1239 r1265  
    44?>
    55<article id="post-<?php echo $theme->slug; ?>" class="theme hentry">
    6     <div class="theme-screenshot">
    7         <img src="<?php echo esc_url( $theme->screenshot_url . '?w=572&strip=all' ); ?>" alt="">
    8     </div>
    9     <a class="more-details url" href="<?php echo esc_url( home_url( $theme->slug . '/' ) ); ?>" rel="bookmark"><?php _ex( 'More Info', 'theme' ); ?></a>
    10     <div class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">' . $theme->author . '</span>' ); ?></div>
    11     <h3 class="theme-name entry-title"><?php echo $theme->name; ?></h3>
     6    <a class="url" href="<?php echo esc_url( home_url( $theme->slug . '/' ) ); ?>" rel="bookmark" tabindex="-1">
     7        <div class="theme-screenshot">
     8            <img src="<?php echo esc_url( $theme->screenshot_url . '?w=572&strip=all' ); ?>" alt="">
     9        </div>
     10        <span class="more-details"><?php _ex( 'More Info', 'theme' ); ?></span>
     11        <div class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">' . $theme->author . '</span>' ); ?></div>
     12        <h3 class="theme-name entry-title"><?php echo $theme->name; ?></h3>
    1213
    13     <div class="theme-actions">
    14         <a class="button button-primary preview install-theme-preview" href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $theme->slug . '.' . $theme->version . '.zip' ); ?>"><?php esc_html_e( 'Download' ); ?></a>
    15     </div>
     14        <div class="theme-actions">
     15            <a class="button button-primary preview install-theme-preview" href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $theme->slug . '.' . $theme->version . '.zip' ); ?>"><?php esc_html_e( 'Download' ); ?></a>
     16        </div>
     17    </a>
    1618</article>
Note: See TracChangeset for help on using the changeset viewer.