Make WordPress Core

Ticket #16901: theme-install.patch

File theme-install.patch, 3.1 KB (added by Simek, 15 years ago)
  • wp-admin/css/wp-admin.dev.css

     
    36333633        margin: 15px 0 5px;
    36343634}
    36353635
     3636.available-theme p {
     3637        text-align: justify;
     3638}
     3639
    36363640#current-theme {
    36373641        margin: 1em 0 1.5em;
    36383642}
  • wp-admin/includes/theme-install.php

     
    160160<a href="#theme_detail" class="theme-detail hide-if-no-js" tabindex='4'><?php _e('Details') ?></a>
    161161<div class="themedetaildiv hide-if-js">
    162162<p><strong><?php _e('Version:') ?></strong> <?php echo wp_kses($theme->version, $themes_allowedtags) ?></p>
    163 <p><strong><?php _e('Author:') ?></strong> <?php echo wp_kses($theme->author, $themes_allowedtags) ?></p>
     163<p><strong><?php _e('Author:') ?></strong> <?php echo wp_kses($theme->author, $themes_allowedtags) ?>
    164164<?php if ( ! empty($theme->last_updated) ) : ?>
    165 <p><strong><?php _e('Last Updated:') ?></strong> <span title="<?php echo $theme->last_updated ?>"><?php printf( __('%s ago'), human_time_diff(strtotime($theme->last_updated)) ) ?></span></p>
    166 <?php endif; if ( ! empty($theme->requires) ) : ?>
     165<span class="description"><?php printf( __('updated %s ago'), human_time_diff(strtotime($theme->last_updated)) ) ?></span>
     166<?php endif; ?></p>
     167<?php if ( ! empty($theme->requires) ) : ?>
    167168<p><strong><?php _e('Requires WordPress Version:') ?></strong> <?php printf(__('%s or higher'), $theme->requires) ?></p>
    168169<?php endif; if ( ! empty($theme->tested) ) : ?>
    169170<p><strong><?php _e('Compatible up to:') ?></strong> <?php echo $theme->tested ?></p>
    170 <?php endif; if ( !empty($theme->downloaded) ) : ?>
     171<?php endif; if ( ! empty($theme->downloaded) ) : ?>
    171172<p><strong><?php _e('Downloaded:') ?></strong> <?php printf(_n('%s time', '%s times', $theme->downloaded), number_format_i18n($theme->downloaded)) ?></p>
    172173<?php endif; ?>
    173174<div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $theme->num_ratings), number_format_i18n($theme->num_ratings)) ?>">
    174175        <div class="star star-rating" style="width: <?php echo esc_attr($theme->rating) ?>px"></div>
    175         <div class="star star5"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('5 stars') ?>" /></div>
    176         <div class="star star4"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('4 stars') ?>" /></div>
    177         <div class="star star3"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('3 stars') ?>" /></div>
    178         <div class="star star2"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('2 stars') ?>" /></div>
    179         <div class="star star1"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php _e('1 star') ?>" /></div>
     176        <?php for ($i = 1; $i <= 5; $i++) { ?>
     177                <div class="star star<?php echo $i ?>"><img src="<?php echo admin_url('images/star.gif'); ?>" alt="<?php printf(_n('%s star', '%s stars', $i), $i) ?>" /></div>
     178        <?php } ?>
    180179</div>
    181180</div>
    182181<?php }