WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/16/2012 02:02:28 PM (7 years ago)
Author:
koopersmith
Message:

Theme Customizer: Allow the customize iframe to be accessed directly (with full feature support). see #19910.

  • Move the 'Return to Manage Themes' and 'Collapse Sidebar' actions from themes.php to customize-controls.php.
  • Create a postMessage connection between themes.php and customize-controls.php.
  • Allow the theme customizer to be accessed directly (independent of themes.php and the customize loader).
  • Add wp_customize_href() and wp_customize_url().
  • Remove wp_customize_loader(). To include the loader, use wp_enqueue_script( 'customize-loader' ).
  • The theme customizer now requires postMessage browser support.
  • Add .hide-if-customize and .hide-if-no-customize CSS classes.
  • Clean up customize-preview.js.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/customize-controls.php

    r20404 r20476  
    5151        <input type="hidden" id="customize-stylesheet" name="stylesheet" value="<?php echo esc_attr( $theme['Stylesheet'] ); ?>" />
    5252
    53         <div id="customize-header-actions" class="customize-section wp-full-overlay-header">&nbsp;</div>
     53        <div id="customize-header-actions" class="customize-section wp-full-overlay-header">
     54            <a class="back" href="<?php echo esc_url( admin_url( 'themes.php' ) ); ?>">
     55                <?php printf( __( '&larr; Return to %s' ), __('Manage Themes') ); ?>
     56            </a>
     57        </div>
    5458
    5559        <div id="customize-info" class="customize-section">
     
    8084            submit_button( __( 'Save' ), 'primary', 'save', false );
    8185            ?>
     86            <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
     87                <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
     88                <span class="collapse-sidebar-arrow"></span>
     89            </a>
    8290        </div>
    8391    </form>
     
    96104        'controls' => array(),
    97105        'prefix'   => WP_Customize_Setting::name_prefix,
     106        'parent'   => esc_url( admin_url() ),
    98107    );
    99108
Note: See TracChangeset for help on using the changeset viewer.