Make WordPress Core

Changeset 26317


Ignore:
Timestamp:
11/22/2013 04:02:37 AM (12 years ago)
Author:
dd32
Message:

Theme Installer: Fix the Theme Preview function, and bring the button handling/styling inline with the Customizer. Fixes #26129

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/wp-admin.css

    r26310 r26317  
    76907690    line-height: 24px;
    76917691    margin-bottom: 0;
     7692    margin-top: 0;
    76927693}
    76937694
     
    77167717    color: #777;
    77177718    line-height: 20px;
     7719}
     7720
     7721#theme-installer .wp-full-overlay-header {
     7722    margin-top: 9px;
     7723}
     7724
     7725#theme-installer .wp-full-overlay-header .theme-install {
     7726    float: right;
     7727    /* For when .theme-install is a span rather than a.button-primary (already installed theme) */
     7728    line-height: 26px;
     7729}
     7730
     7731#theme-installer .wp-full-overlay-sidebar {
     7732    background: #EEE;
     7733    border-right: 1px solid #DDD;
     7734}
     7735
     7736#theme-installer .wp-full-overlay-main {
     7737    background: #fff url('../images/spinner.gif') no-repeat fixed center center;
     7738    background-size: 20px 20px;
    77187739}
    77197740
     
    1072110742    .imgedit-wait,
    1072210743    .customize-loading #customize-container,
    10723     .revision-tick.completed-false {
     10744    .revision-tick.completed-false,
     10745    #theme-installer .wp-full-overlay-main {
    1072410746        background-image: url('../images/spinner-2x.gif');
    1072510747    }
  • trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php

    r26081 r26317  
    256256            <div class="wp-full-overlay-sidebar">
    257257                <div class="wp-full-overlay-header">
    258                     <a href="#" class="close-full-overlay"><?php _e( '&larr; Close' ); ?></a>
     258                    <a href="#" class="close-full-overlay button-secondary"><?php _e( 'Close' ); ?></a>
     259                    <span class="theme-install"></span>
    259260                </div>
    260261                <div class="wp-full-overlay-sidebar-content">
  • trunk/src/wp-admin/js/theme-install.js

    r26210 r26317  
    6161
    6262    var preview = $('#theme-installer'),
     63        header  = preview.find('.wp-full-overlay-header'),
    6364        info    = preview.find('.install-theme-info'),
    6465        panel   = preview.find('.wp-full-overlay-main'),
     
    8283
    8384        info.html( $(this).closest('.installable-theme').find('.install-theme-info').html() );
     85
     86        header.find( '.theme-install' ).replaceWith( info.find( '.theme-install' ) );
     87
    8488        src = info.find( '.theme-preview-url' ).val();
    8589        panel.html( '<iframe src="' + src + '" />');
Note: See TracChangeset for help on using the changeset viewer.