<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[1021] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes: WP.org Themes: First pass at improved single theme page.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/1021">1021</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/1021","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>obenland</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2014-12-02 23:03:33 +0000 (Tue, 02 Dec 2014)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>WP.org Themes: First pass at improved single theme page.
* Synchronizes content between modal and single view.
* Displays a banner if the theme is outdated.
* Removes unused inline CSS for easier code scanning.
See <a href="http://meta.trac.wordpress.org/ticket/745">#745</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemescontentsinglephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesfunctionsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesheaderphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesindexphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesjsthemejs">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesstylecss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesviewtemplatesthemesinglephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemessinglephp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/single.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemescontentsinglephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php 2014-12-02 23:01:57 UTC (rev 1020)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php 2014-12-02 23:03:33 UTC (rev 1021)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,49 +1,173 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php global $theme; ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+include ABSPATH . 'wp-admin/includes/theme.php';
+$theme = themes_api( 'theme_information', array( 'slug' => get_post()->post_name ) );
+?>
+<div id="themes" class="wrap">
+ <div class="theme-wrap">
+ <div class="theme-about">
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<div class="theme-backdrop"></div>
-<div class="theme-wrap">
- <div class="theme-header">
- <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span></button>
- <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
- <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
- </div>
- <div class="theme-about">
- <div class="theme-screenshots">
- <div class="screenshot"><?php the_post_thumbnail(); ?></div>
- </div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php if ( strtotime( '-2 years' ) > strtotime( $theme->last_updated ) ) : ?>
+ <div class="theme-notice notice notice-warning">
+ <p><?php _e( 'This theme <strong>hasn’t been updated in over 2 years</strong>. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.', 'wporg-themes' ); ?></p>
+ </div><!-- .theme-info -->
+ <?php endif; ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="theme-info hentry">
- <h3 class="theme-name entry-title"><?php the_title(); ?></h3>
- <span class="theme-version"><?php printf( __( 'Version: %s' ), $theme->version ); ?></span>
- <h4 class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">' . $theme->author . '</span>' ); ?></h4>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="theme-info hentry">
+ <h3 class="theme-name entry-title"><?php the_title(); ?></h3>
+ <span class="theme-version">
+ <?php
+ printf( __( 'Version: %s' ),
+ sprintf( '<abbr title="%1$s">%2$s</abbr>',
+ esc_attr( sprintf( __( 'Last updated: %s' ), date_i18n( get_option( 'date_format' ), strtotime( $theme->last_updated ) ) ) ),
+ $theme->version
+ )
+ );
+ ?>
+ </span>
+ <h4 class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">' . $theme->author . '</span>' ); ?></h4>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <p class="theme-description entry-summary"><?php the_content(); ?></p>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="theme-description entry-summary"><?php the_content(); ?></div>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="rating rating-<?php echo round( $theme->rating, -1 ); ?>">
- <span class="one"></span>
- <span class="two"></span>
- <span class="three"></span>
- <span class="four"></span>
- <span class="five"></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php if ( ! empty( $theme->template ) ) : ?>
+ <div class="theme-notice notice notice-info">
+ <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), sprintf( '<a href="/%1$s">%2$s</a>', $theme->template, $theme->template ) ); ?></p>
+ </div>
+ <?php endif; ?>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <p class="votes"><?php printf( __( 'Based on %s ratings.' ), $theme->num_ratings ); ?></p>
- </div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <p class="theme-tags">
+ <span><?php _e( 'Tags:' ); ?></span>
+ <?php
+ foreach( $theme->tags as &$tag ) :
+ $tag = sprintf( '<a href="/tags/%1$s">%1$s</a>', $tag );
+ endforeach;
+ echo implode( ', ', $theme->tags );
+ ?>
+ </p>
+ </div><!-- .theme-info -->
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="theme-stats">
- <div><strong><?php _e( 'Last updated:' ); ?></strong> <span class="updated"><?php echo $theme->last_updated; ?></span></div>
- <div><strong><?php _e( 'Downloads:' ); ?></strong> <?php echo $theme->downloaded; ?></div>
- <div><a href="<?php echo esc_url( $theme->homepage ); ?>"><?php _e( 'Theme Homepage »' ); ?></a></div>
- </div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="theme-screenshots">
+ <div class="screenshot"><?php the_post_thumbnail(); ?></div>
+ </div><!-- .theme-screenshots -->
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <p class="theme-tags">
- <span><?php _e( 'Tags:' ); ?></span>
- <?php echo implode( ', ', $theme->tags ); ?>
- </p>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="theme-ratings" itemprop="aggregateRating" itemscope
+ itemtype="http://schema.org/AggregateRating">
+ <meta itemprop="ratingValue" content="<?php echo esc_attr( number_format_i18n( $theme->rating / 20, 1 ) ); ?>"/>
+ <meta itemprop="ratingCount" content="<?php echo esc_attr( $theme->num_ratings ); ?>"/>
+ <h4><?php _e( 'Ratings', 'wporg-themes' ); ?></h4>
+
+ <div class="star-holder">
+ <div class="star-rating" style="width: <?php echo esc_attr( number_format_i18n( $theme->rating, 1 ) ); ?>%">
+ <?php printf( __( '%d stars', 'wporg-themes' ), number_format_i18n( $theme->rating / 20 ) ); ?>
+ </div>
+ </div>
+ <span><?php printf( __( '%s out of 5 stars.', 'wporg-themes' ), number_format_i18n( $theme->rating / 20, 1 ) ); ?></span>
+ <?php
+ $ratingcount = array(); // TODO: Rating counts
+ foreach ( range( 1, 5 ) as $val ) {
+ if ( empty( $ratingcount[ $val ] ) ) {
+ $ratingcount[ $val ] = 0;
+ }
+ }
+ krsort( $ratingcount );
+ foreach ( $ratingcount as $key => $ratecount ) :
+ ?>
+ <div class="counter-container">
+ <a href="//wordpress.org/support/view/theme-reviews/<?php echo esc_attr( $theme->slug ); ?>?filter=<?php echo $key; ?>"
+ title="<?php printf( _n( 'Click to see reviews that provided a rating of %d star', 'Click to see reviews that provided a rating of %d stars', $key, 'wporg-themes' ), $key ); ?>">
+ <span class="counter-label" style="float:left; margin-right:5px;"><?php printf( __( '%d stars', 'wporg-themes' ), $key ); ?></span>
+ <span class="counter-back" style="height:17px;width:92px;background-color:#ececec;float:left;">
+ <span class="counter-bar" style="width: <?php echo 92 * ( $ratecount / count( 1 ) ); ?>px;height:17px;background-color:#fddb5a;float:left;"></span>
+ </span>
+ </a>
+ <span class="counter-count" style="margin-left:5px;"><?php echo $ratecount; ?></span>
+ </div>
+ <?php endforeach; ?>
+ </div><!-- .theme-rating -->
+
+ <div class="theme-devs">
+ <h4><?php _e( 'Developers', 'wporg-themes' ); ?></h4>
+ <h5><?php _e( 'Subscribe', 'wporg-themes' ); ?></h5>
+ <ul class="unmarked-list">
+ <li>
+ <a href="//themes.trac.wordpress.org/log/<?php echo esc_attr( $theme->slug ); ?>?limit=100&mode=stop_on_copy&format=rss">
+ <img src="//s.w.org/style/images/feedicon.png" style="vertical-align:text-top;"/>
+ <?php _e( 'Development Log', 'wporg' ); ?>
+ </a>
+ </li>
+ </ul>
+
+ <h5><?php _e( 'Browse the Code', 'wporg-themes' ); ?></h5>
+ <ul class="unmarked-list">
+ <li><a href="//themes.trac.wordpress.org/log/<?php echo esc_attr( $theme->slug ); ?>/" rel="nofollow"><?php _e( 'Development Log', 'wporg-themes' ); ?></a></li>
+ <li><a href="//themes.svn.wordpress.org/<?php echo esc_attr( $theme->slug ); ?>/" rel="nofollow"><?php _e( 'Subversion Repository', 'wporg-themes' ); ?></a></li>
+ <li><a href="//themes.trac.wordpress.org/browser/<?php echo esc_attr( $theme->slug ); ?>/" rel="nofollow"><?php _e( 'Browse in Trac', 'wporg-themes' ); ?></a></li>
+ </ul>
+ </div><!-- .theme-devs -->
+
+ <div class="theme-downloads">
+ <h4><?php _e( 'Downloads Per Day' ); ?></h4>
+
+ <div id="theme-download-stats-<?php echo esc_attr( $theme->slug ); ?>" class="chart"></div>
+ <script type="text/javascript">
+ google.load("visualization", "1", {packages:["corechart"]});
+ google.setOnLoadCallback(drawThemeDownloadsChart);
+
+ function drawThemeDownloadsChart() {
+ jQuery(document).ready(function($){
+ jQuery.getJSON('https://api.wordpress.org/stats/themes/1.0/downloads.php?slug=<?php echo $theme->slug; ?>&limit=267&callback=?', function (downloads) {
+ var data = new google.visualization.DataTable(),
+ count = 0,
+ sml;
+
+ data.addColumn('string', _wpThemeSettings.l10n.date);
+ data.addColumn('number', _wpThemeSettings.l10n.downloads);
+
+ $.each(downloads, function (key, value) {
+ data.addRow();
+ data.setValue(count, 0, new Date(key).toLocaleDateString() );
+ data.setValue(count, 1, Number(value));
+ count++;
+ });
+
+ sml = data.getNumberOfRows() < 225;
+
+ new google.visualization.ColumnChart(document.getElementById('theme-download-stats-<?php echo esc_attr( $theme->slug ); ?>')).draw(data, {
+ colors: ['#253578'],
+ legend: {
+ position: 'none'
+ },
+ titlePosition: 'in',
+ axisTitlesPosition: 'in',
+ chartArea: {
+ height: 280,
+ left: sml ? 30 : 0,
+ width: sml ? '80%' : '100%'
+ },
+ hAxis: {
+ textStyle: {color: 'black', fontSize: 9}
+ },
+ vAxis: {
+ format: '###,###',
+ textPosition: sml ? 'out' : 'in',
+ viewWindowMode: 'explicit',
+ viewWindow: {min: 0}
+ },
+ bar: {
+ groupWidth: ( data.getNumberOfRows() > 100 ) ? "100%" : null
+ },
+ height: 350
+ });
+ });
+ });
+ }
+ </script>
+ </div><!-- .theme-downloads -->
+
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- </div>
</del><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="theme-actions">
- <a href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $theme->slug . '.' . $theme->version . '.zip' ); ?>" class="button button-primary"><?php _e( 'Download' ); ?></a>
- <a href="<?php echo esc_url( $theme->preview_url ); ?>" class="button button-secondary"><?php _e( 'Preview' ); ?></a>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="theme-actions">
+ <a href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $theme->slug . '.' . $theme->version . '.zip' ); ?>" class="button button-primary"><?php _e( 'Download' ); ?></a>
+ <a href="<?php echo esc_url( $theme->preview_url ); ?>" class="button button-secondary"><?php _e( 'Preview' ); ?></a>
+ </div>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-</div>
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+</div>
</ins></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php 2014-12-02 23:01:57 UTC (rev 1020)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php 2014-12-02 23:03:33 UTC (rev 1021)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -103,7 +103,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $theme->author = wp_kses( $theme->author, $themes_allowedtags );
</span><span class="cx" style="display: block; padding: 0 10px"> $theme->version = wp_kses( $theme->version, $themes_allowedtags );
</span><span class="cx" style="display: block; padding: 0 10px"> $theme->description = wp_kses( $theme->description, $themes_allowedtags );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $theme->num_ratings = sprintf( _n( '(based on %s rating)', '(based on %s ratings)', $theme->num_ratings ), number_format_i18n( $theme->num_ratings ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $theme->num_ratings = number_format_i18n( $theme->num_ratings );
</ins><span class="cx" style="display: block; padding: 0 10px"> $theme->preview_url = set_url_scheme( $theme->preview_url );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesheaderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php 2014-12-02 23:01:57 UTC (rev 1020)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php 2014-12-02 23:03:33 UTC (rev 1021)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,214 +33,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </style>
</span><span class="cx" style="display: block; padding: 0 10px"> <![endif]-->
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
-<style type="text/css">
-h3.top {
- border-bottom: 1px solid #CCCCCC;
- margin-bottom: 20px;
-}
-div.plugin-block {
- margin-bottom: 20px;
-}
-.pending-theme {
- line-height: 200%;
-}
-span.button {
- padding: 3px;
-}
-.admin-message {
- background-color: #FFFBCC;
- border: 1px solid #E6DB55;
- padding: 4px;
- margin-bottom: 20px;
-}
-
-/* theme page (topic) */
-.block-content img.screenshot {
- border: 1px solid #cccccc;
- float: right;
- margin-left: 10px;
- margin-bottom: 10px;
- padding: 5px;
-}
-#plugin-tags,
-#theme-languages {
- padding-top: 5px;
- clear: both;
-}
-.col-3 p.button.preview-button {
- background: #4EAF21;
-}
-.col-3 p.button.preview-button a:hover {
- color: #ACFF90;
-}
-.col-3 p.button.parent-button {
- background: #4E21AF;
-}
-.col-3 p.button.parent-button a:hover {
- color: #AC90FF;
-}
-
-.postform {
- clear: both;
-}
-
-.float-it-left {
- float: left;
- margin-right: 15px;
-}
-
-.filter-tag {
- display: block;
-}
-</style>
-
</del><span class="cx" style="display: block; padding: 0 10px"> <meta name="generator" content="bbPress 1.1" />
</span><span class="cx" style="display: block; padding: 0 10px"> <link rel='stylesheet' id='forum-wp4-css' href='//s.w.org/style/forum-wp4.css?ver=11' type='text/css' media='' />
</span><span class="cx" style="display: block; padding: 0 10px"> <link rel='stylesheet' id='style-wp4-css' href='//s.w.org/bb-theme/plugins/style-wp4.css?ver=19' type='text/css' media='' />
</span><span class="cx" style="display: block; padding: 0 10px"> <!--[if IE 7]>
</span><span class="cx" style="display: block; padding: 0 10px"> <link rel='stylesheet' id='forum-ie7-css' href='//s.w.org/style/forum-ie7.css?ver=7' type='text/css' media='' />
</span><span class="cx" style="display: block; padding: 0 10px"> <![endif]-->
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <style type="text/css">
- #theme-contributors .theme-contributor {
- overflow: auto;
- margin: 2px 0;
- }
- #theme-contributors .theme-contributor-info.no-profile {
- line-height: 36px;
- }
- #theme-contributors .theme-contributor-gravatar img {
- vertical-align: bottom;
- margin-right: 8px;
- margin-top: 4px;
- border-radius: 3px;
- }
- #theme-contributors .theme-contributor-profile {
- float:left;
- }
- #theme-contributors .theme-contributor-gravatar {
- float:left;
- }
- #theme-contributors .theme-contributor-info {
- margin: 6px 0 0;
- line-height: 15px;
- }
- #theme-contributors .theme-contributor-links {
- margin-top: 2px;
- font-size: 11px;
- }
- #theme-contributors {
- margin: 6px 0;
- padding-bottom: 12px;
- position: relative;
- overflow: auto;
- }
- #theme-contributors h4.head {
- display: inline-block;
- float: left;
- margin-top: 4px;
- margin-right: 8px;
- }
- #theme-contributors .theme-authors {
- display: inline-block;
- float: left;
- width: 300px;
- }
- </style>
- <style type="text/css">
- div.theme-notice {
- border: 1px solid;
- padding: 4px 12px;
- margin-bottom: 20px;
- border-radius: 6px;
- overflow: auto;
- }
- div.theme-notice-approved {
- background-color: #DFF2BF;
- color: #4F8A10;
- }
- div.theme-notice-closed, div.theme-notice-disabled, div.theme-notice-rejected {
- background-color: #FFBABA;
- color: #D8000C;
- }
- div.theme-notice-open-old {
- background-color: #FEEFB3;
- color: #9F6000;
- }
- div.theme-notice-requested {
- background-color: #BDE5F8;
- color: #00529B;
- }
- div.theme-notice span:first-child {
- padding: 1px 10px 3px;
- border-radius: 25px;
- color: white;
- font-size: 18px;
- font-weight: bold;
- font-family: Verdana;
- float: left;
- margin: 0 8px 0 0;
- }
- div.theme-notice-approved span:first-child {
- background-color: #4F8A10;
- }
- div.theme-notice-closed span:first-child, div.theme-notice-disabled span:first-child, div.theme-notice-rejected span:first-child {
- background-color: #D8000C;
- }
- div.theme-notice-open-old span:first-child {
- background-color: #9F6000;
- }
- div.theme-notice-requested span:first-child {
- background-color: #00529B;
- }
- span.theme-notice-banner-msg {
- float: left;
- width: 95%;
- line-height: 1.3em;
- padding-top: 5px;
- }
-
- div.theme-notice-open-old {
- padding-top: 8px;
- padding-bottom: 8px;
- }
- div.theme-notice-open-old span.theme-notice-banner-msg {
- padding-top: 0;
- }
- </style>
- <style type="text/css">
- #pagebody .support-sidebox p {
- margin: 0 0 8px 0;
- }
- #theme-submit-support {
- text-align: center;
- }
- #theme-submit-support a {
- display: block;
- margin: 4px auto 2px;
- padding: 3px 6px;
- border-radius: 6px;
- border: 1px solid #000;
- background-color: #439e47;
- width: 60%;
- color: #fff;
- }
- #theme-submit-support a:hover {
- background-color: #218834;
- }
- div.support-sidebox {
- margin: 6px 0;
- padding-bottom: 12px;
- }
- div.support-sidebox h3.head {
- padding-left: 0;
- margin-bottom: 6px;
- }
- a.theme-support-link {
- display: block;
- text-align: center;
- }
- </style>
</del><span class="cx" style="display: block; padding: 0 10px"> <link rel='stylesheet' href='https://wordpress.org/extend/themes-plugins/bb-ratings/bb-ratings.css?4' type='text/css' />
</span><span class="cx" style="display: block; padding: 0 10px"> <link rel="alternate" type="application/rss+xml" title="Free WordPress Themes » Recent Posts" href="https://wordpress.org/themes/rss/" />
</span><span class="cx" style="display: block; padding: 0 10px"> <link rel="alternate" type="application/rss+xml" title="Free WordPress Themes » Recent Topics" href="https://wordpress.org/themes/rss/topics" /><script type="text/javascript" src="//s.w.org/wp-includes/js/jquery/jquery.js?v=1.10.2"></script>
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesindexphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php 2014-12-02 23:01:57 UTC (rev 1020)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php 2014-12-02 23:03:33 UTC (rev 1021)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -11,17 +11,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @package wporg-themes
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-$template_part = is_single() ? 'single' : 'index';
</del><span class="cx" style="display: block; padding: 0 10px"> include ABSPATH . 'wp-admin/includes/theme.php';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-if ( is_single() ) {
- $themes = themes_api( 'theme_information', array( 'slug' => get_post()->post_name ) );
-} else {
- $themes = themes_api( 'query_themes', array(
- 'per_page' => 15,
- 'browse' => get_query_var( 'attachment' ) ? get_query_var( 'attachment' ) : 'featured',
- 'fields' => 'tags',
- ) );
-}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+$themes = themes_api( 'query_themes', array(
+ 'per_page' => 15,
+ 'browse' => get_query_var( 'attachment' ) ? get_query_var( 'attachment' ) : 'featured',
+ 'fields' => 'tags',
+) );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> get_header();
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -29,7 +24,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <div id="themes" class="wrap">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wp-filter">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="filter-count">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <span class="count theme-count"></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <span class="count theme-count"><?php echo count( $themes->themes ); ?></span>
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <ul class="filter-links">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -75,7 +70,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! is_wp_error( $themes ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> foreach ( $themes->themes as $theme ) :
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- get_template_part( 'content', $template_part );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ get_template_part( 'content', 'index' );
</ins><span class="cx" style="display: block; padding: 0 10px"> endforeach;
</span><span class="cx" style="display: block; padding: 0 10px"> endif;
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesjsthemejs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js 2014-12-02 23:01:57 UTC (rev 1020)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/js/theme.js 2014-12-02 23:03:33 UTC (rev 1021)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -34,7 +34,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> render: function() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- var data = this.model.toJSON();
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ var data = this.model.toJSON(),
+ updated = new Date(data.last_updated);
+
+ // If last updated plus 2 years is in the past, it's outdated.
+ data.is_outdated = updated.setYear(updated.getYear() + 1902).valueOf() > new Date().valueOf();
+
</ins><span class="cx" style="display: block; padding: 0 10px"> this.$el.html( this.html( data ) );
</span><span class="cx" style="display: block; padding: 0 10px"> // Renders active theme styles
</span><span class="cx" style="display: block; padding: 0 10px"> this.activeTheme();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -247,7 +252,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return '/' + url;
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- themePath: 'themes/',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ themePath: '',
</ins><span class="cx" style="display: block; padding: 0 10px"> browsePath: 'browse/',
</span><span class="cx" style="display: block; padding: 0 10px"> searchPath: 'search.php?q='
</span><span class="cx" style="display: block; padding: 0 10px"> });
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemessinglephp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/single.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/single.php (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/single.php 2014-12-02 23:03:33 UTC (rev 1021)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,26 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * The main template file.
+ *
+ * This is the most generic template file in a WordPress theme
+ * and one of the two required files for a theme (the other being style.css).
+ * It is used to display a page when nothing more specific matches a query.
+ * E.g., it puts together the home page when no home.php file exists.
+ * Learn more: http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package wporg-themes
+ */
+
+get_header();
+
+if ( have_posts() ) :
+ while ( have_posts() ) :
+ the_post();
+
+ get_template_part( 'content', 'single' );
+ endwhile;
+else :
+ get_template_part( 'content', 'none' );
+endif;
+
+get_footer();
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/single.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesstylecss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css 2014-12-02 23:01:57 UTC (rev 1020)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css 2014-12-02 23:03:33 UTC (rev 1021)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -17,6 +17,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> overflow: hidden;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+p {
+ margin-bottom: 1.5em;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /* Assistive text */
</span><span class="cx" style="display: block; padding: 0 10px"> .screen-reader-text {
</span><span class="cx" style="display: block; padding: 0 10px"> clip: rect(1px, 1px, 1px, 1px);
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,34 +72,44 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.theme-overlay .theme-about > div {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-about > div:not(.notice) {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin-bottom: 75px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.theme-overlay .theme-info {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-info {
</ins><span class="cx" style="display: block; padding: 0 10px"> float: right;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ width: 40%;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.theme-overlay .theme-name {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-name {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: inline-block;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.theme-overlay .theme-screenshots {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-screenshots {
</ins><span class="cx" style="display: block; padding: 0 10px"> float: none;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.theme-overlay .theme-downloads,
-.theme-overlay .theme-devs {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-downloads {
</ins><span class="cx" style="display: block; padding: 0 10px"> width: 55%;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-devs,
+.theme-wrap .theme-ratings {
+ display: inline-block;
+ vertical-align: top;
+ width: 26%;
+}
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.theme-overlay .theme-devs {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-devs {
</ins><span class="cx" style="display: block; padding: 0 10px"> font-size: 1.4em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.theme-overlay .theme-devs h5 {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-ratings {
+ margin-right: 3%;
+}
+
+.theme-wrap .theme-devs h5 {
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 1em 0 0 0;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.theme-overlay .theme-devs li {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-wrap .theme-devs li {
</ins><span class="cx" style="display: block; padding: 0 10px"> line-height: 1.5;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -108,6 +122,133 @@
</span><span class="cx" style="display: block; padding: 0 10px"> transition: opacity 0.3s;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.theme-version abbr {
+ border-bottom: 1px dotted #666;
+ cursor: help;
+}
+
+/* Single View */
+.single .theme-wrap {
+ background: #fff;
+ box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1);
+ margin: 3% 0;
+ overflow: hidden;
+ padding: 2% 4%;
+}
+
+
+/**
+ * Theme heading information
+ */
+.single .theme-wrap .current-label {
+ background: #333;
+ color: #fff;
+ font-size: 11px;
+ display: inline-block;
+ padding: 2px 8px;
+ -webkit-border-radius: 2px;
+ border-radius: 2px;
+ margin: 0 0 -10px;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.single .theme-wrap .theme-name {
+ color: #222;
+ font-size: 32px;
+ font-weight: 100;
+ margin: 10px 0 0;
+ line-height: 1.3;
+}
+
+.single .theme-wrap .theme-version {
+ color: #999;
+ font-size: 13px;
+ font-weight: 400;
+ float: none;
+ display: inline-block;
+ margin-left: 10px;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.single .theme-wrap .theme-author {
+ color: #686868;
+ font-size: 16px;
+ font-weight: 400;
+ margin: 15px 0 25px;
+}
+
+.single .theme-wrap .theme-author a {
+ text-decoration: none;
+}
+
+.single .theme-wrap .theme-description {
+ color: #555;
+ font-size: 15px;
+ font-weight: 400;
+ line-height: 1.5;
+ margin: 30px 0 0 0;
+}
+
+.single .theme-wrap .theme-tags {
+ border-top: 3px solid #eee;
+ color: #888;
+ font-size: 13px;
+ font-weight: 400;
+ margin: 30px 0 0 0;
+ padding-top: 20px;
+}
+
+.single .theme-wrap .theme-tags span {
+ color: #444;
+ font-weight: bold;
+ margin-right: 5px;
+}
+
+.single .theme-wrap .theme-screenshots {
+ margin: 0 30px 0 0;
+ width: 55%;
+ max-width: 880px;
+ text-align: center;
+}
+.single .theme-wrap .screenshot {
+ border: 1px solid #fff;
+ box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
+ box-sizing: border-box;
+ overflow: hidden;
+ position: relative;
+}
+
+.single .theme-wrap .screenshot img {
+ height: auto;
+ vertical-align: middle;
+ width: 100%;
+}
+
+.single .theme-wrap .theme-actions {
+ background: #f3f3f3;
+ border-top: 1px solid #eee;
+ box-sizing: border-box;
+ margin: 0 -4.3% -2.1%;
+ padding: 10px 25px 5px;
+ text-align: center;
+}
+
+.ie8 .single .theme-wrap .theme-actions {
+ border: 1px solid #eee;
+}
+
+.single .theme-wrap .theme-actions a {
+ margin-right: 5px;
+ margin-bottom: 5px;
+}
+
+/* Spinner */
</ins><span class="cx" style="display: block; padding: 0 10px"> .spinner {
</span><span class="cx" style="display: block; padding: 0 10px"> background: url(/wp-admin/images/spinner.gif) no-repeat;
</span><span class="cx" style="display: block; padding: 0 10px"> -webkit-background-size: 20px 20px;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -230,7 +371,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-filter .search-form {
</span><span class="cx" style="display: block; padding: 0 10px"> float: right;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- margin-top: 9px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin: 12px 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-filter .search-form input[type="search"] {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -508,4 +649,41 @@
</span><span class="cx" style="display: block; padding: 0 10px"> box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 );
</span><span class="cx" style="display: block; padding: 0 10px"> color: #fff;
</span><span class="cx" style="display: block; padding: 0 10px"> text-decoration: none;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+}
+
+/* Theme notices */
+.notice {
+ background: #fff;
+ border: 1px solid #fff;
+ border-left-width: 5px;
+ box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
+ font-size: 13px;
+ margin: 5px 15px 2px;
+ padding: 1px 12px;
+}
+
+.notice p {
+ margin: 0.5em 0;
+ padding: 2px;
+}
+
+.notice-success {
+ border-color: #7ad03a;
+}
+
+.notice-warning {
+ border-color: #ffba00;
+}
+
+.notice-error {
+ border-color: #dd3d36;
+}
+
+.notice-info {
+ background: #f7fcfe;
+ border-color: #2ea2cc;
+}
+
+.wrap .notice {
+ margin: 5px 0 15px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgthemesviewtemplatesthemesinglephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php 2014-12-02 23:01:57 UTC (rev 1020)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php 2014-12-02 23:03:33 UTC (rev 1021)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,29 +7,25 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="theme-about">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <# if ( data.is_outdated ) { #>
+ <div class="theme-notice notice notice-warning">
+ <p><?php _e( 'This theme <strong>hasn’t been updated in over 2 years</strong>. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.', 'wporg-themes' ); ?></p>
+ </div><!-- .theme-notice -->
+ <# } #>
+
</ins><span class="cx" style="display: block; padding: 0 10px"> <div class="theme-info hentry">
</span><span class="cx" style="display: block; padding: 0 10px"> <h3 class="theme-name entry-title">{{{ data.name }}}</h3>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <span class="theme-version"><?php printf( __( 'Version: %s' ), '{{{ data.version }}}' ); ?></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <span class="theme-version">
+ <?php printf( __( 'Version: %s' ), sprintf( '<abbr title="%1$s">%2$s</abbr>', esc_attr( sprintf( __( 'Last updated: %s' ), '{{ new Date(data.last_updated).toLocaleDateString() }}' ) ), '{{{ data.version }}}' ) ); ?>
+ </span>
</ins><span class="cx" style="display: block; padding: 0 10px"> <h4 class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">{{{ data.author }}}</span>' ); ?></h4>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <p class="theme-description entry-summary">{{{ data.description }}}</p>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="rating rating-{{ Math.round( data.rating / 10 ) * 10 }}">
- <span class="one"></span>
- <span class="two"></span>
- <span class="three"></span>
- <span class="four"></span>
- <span class="five"></span>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <# if ( data.parent ) { #>
+ <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), '<strong>{{{ data.parent }}}</strong>' ); ?></p>
+ <# } #>
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <p class="votes"><?php printf( __( 'Based on %s ratings.' ), '{{{ data.num_ratings }}}' ); ?></p>
- </div>
-
- <div class="theme-stats">
- <div><strong><?php _e( 'Last updated:' ); ?></strong> <span class="updated">{{ data.last_updated }}</span></div>
- <div><strong><?php _e( 'Downloads:' ); ?></strong> {{ data.downloaded }}</div>
- <div><a href="{{ data.homepage }}"><?php _e( 'Theme Homepage »' ); ?></a></div>
- </div>
-
</del><span class="cx" style="display: block; padding: 0 10px"> <# if ( data.tags ) { #>
</span><span class="cx" style="display: block; padding: 0 10px"> <p class="theme-tags">
</span><span class="cx" style="display: block; padding: 0 10px"> <span><?php _e( 'Tags:' ); ?></span>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -48,10 +44,35 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <# } #>
</span><span class="cx" style="display: block; padding: 0 10px"> </div><!-- .theme-screenshot -->
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <div class="theme-downloads">
- <h4><?php _e( 'Downloads Per Day' ); ?></h4>
- <div id="theme-download-stats-{{data.id}}" class="chart"></div>
- </div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <div class="theme-ratings" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
+ <meta itemprop="ratingValue" content="{{ (data.rating/20).toFixed(1) }}"/>
+ <meta itemprop="ratingCount" content="{{ data.num_ratings }}"/>
+ <h4><?php _e( 'Ratings', 'wporg-themes' ); ?></h4>
+ <div class="star-holder">
+ <div class="star-rating" style="width: {{ (data.rating).toFixed(1) }}%"><?php printf( __( '%d stars', 'wporg-themes' ), '{{ Math.round( data.rating ) }}' ); ?></div>
+ </div>
+ <span><?php printf( __( '%s out of 5 stars.', 'wporg-themes' ), '{{ (data.rating/20).toFixed(1) }}' ); ?></span>
+ <?php
+ $ratingcount = array(); // TODO: Rating counts
+ foreach ( range( 1, 5 ) as $val ) {
+ if ( empty( $ratingcount[ $val ] ) ) {
+ $ratingcount[ $val ] = 0;
+ }
+ }
+ krsort( $ratingcount );
+ foreach ( $ratingcount as $key => $ratecount ) :
+ ?>
+ <div class="counter-container">
+ <a href="//wordpress.org/support/view/theme-reviews/{{ data.id }}?filter=<?php echo $key; ?>" title="<?php printf( _n( 'Click to see reviews that provided a rating of %d star', 'Click to see reviews that provided a rating of %d stars', $key, 'wporg-themes' ), $key ); ?>">
+ <span class="counter-label" style="float:left; margin-right:5px;"><?php printf( __( '%d stars', 'wporg-themes' ), $key ); ?></span>
+ <span class="counter-back" style="height:17px;width:92px;background-color:#ececec;float:left;">
+ <span class="counter-bar" style="width: <?php echo 92 * ( $ratecount / count( 1 ) ); ?>px;height:17px;background-color:#fddb5a;float:left;"></span>
+ </span>
+ </a>
+ <span class="counter-count" style="margin-left:5px;"><?php echo $ratecount; ?></span>
+ </div>
+ <?php endforeach; ?>
+ </div><!-- .theme-rating -->
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="theme-devs">
</span><span class="cx" style="display: block; padding: 0 10px"> <h4><?php _e( 'Developers', 'wporg-themes' ); ?></h4>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -67,11 +88,16 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <h5><?php _e( 'Browse the Code', 'wporg-themes' ); ?></h5>
</span><span class="cx" style="display: block; padding: 0 10px"> <ul class="unmarked-list">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <li><a href='//themes.trac.wordpress.org/log/{{data.id}}/' rel='nofollow'><?php _e( 'Development Log', 'wporg-themes' ); ?></a></li>
- <li><a href='//themes.svn.wordpress.org/{{data.id}}/' rel='nofollow'><?php _e( 'Subversion Repository', 'wporg-themes' ); ?></a></li>
- <li><a href='//themes.trac.wordpress.org/browser/{{data.id}}/' rel='nofollow'><?php _e( 'Browse in Trac', 'wporg-themes' ); ?></a></li>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <li><a href="//themes.trac.wordpress.org/log/{{data.id}}/" rel="nofollow"><?php _e( 'Development Log', 'wporg-themes' ); ?></a></li>
+ <li><a href="//themes.svn.wordpress.org/{{data.id}}/" rel="nofollow"><?php _e( 'Subversion Repository', 'wporg-themes' ); ?></a></li>
+ <li><a href="//themes.trac.wordpress.org/browser/{{data.id}}/" rel="nofollow"><?php _e( 'Browse in Trac', 'wporg-themes' ); ?></a></li>
</ins><span class="cx" style="display: block; padding: 0 10px"> </ul>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- </div>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ </div><!-- .theme-devs -->
+
+ <div class="theme-downloads">
+ <h4><?php _e( 'Downloads Per Day' ); ?></h4>
+ <div id="theme-download-stats-{{data.id}}" class="chart"></div>
+ </div><!-- .theme-downloads -->
</ins><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="theme-actions">
</span></span></pre>
</div>
</div>
</body>
</html>