Changeset 20940
- Timestamp:
- 05/26/2012 08:47:55 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/customize.php
r20899 r20940 61 61 </div> 62 62 63 <?php 64 $screenshot = $wp_customize->theme()->get_screenshot(); 65 $cannot_expand = ! ( $screenshot || $wp_customize->theme()->get('Description') ); 66 ?> 67 63 68 <div class="wp-full-overlay-sidebar-content"> 64 <div id="customize-info" class="customize-section ">69 <div id="customize-info" class="customize-section<?php if ( $cannot_expand ) echo ' cannot-expand'; ?>"> 65 70 <div class="customize-section-title"> 66 71 <span class="preview-notice"><?php _e('You are previewing'); ?></span> 67 72 <strong class="theme-name"><?php echo $wp_customize->theme()->display('Name'); ?></strong> 68 73 </div> 74 <?php if ( ! $cannot_expand ) : ?> 69 75 <div class="customize-section-content"> 70 <?php if ( $screenshot = $wp_customize->theme()->get_screenshot()) : ?>76 <?php if ( $screenshot ) : ?> 71 77 <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" /> 72 78 <?php endif; ?> … … 76 82 <?php endif; ?> 77 83 </div> 84 <?php endif; ?> 78 85 </div> 79 86 -
trunk/wp-includes/css/customize-controls.dev.css
r20936 r20940 27 27 -moz-user-select: none; 28 28 user-select: none; 29 } 30 31 .cannot-expand .customize-section-title { 32 cursor: auto; 29 33 } 30 34 … … 83 87 right: 20px; 84 88 z-index: 1; 89 } 90 91 .cannot-expand .customize-section-title:after { 92 display: none; 85 93 } 86 94 -
trunk/wp-includes/js/customize-controls.dev.js
r20936 r20940 595 595 596 596 // Temporary accordion code. 597 $('.customize-section-title').click( function( ) {597 $('.customize-section-title').click( function( event ) { 598 598 var clicked = $( this ).parents( '.customize-section' ); 599 600 if ( clicked.hasClass('cannot-expand') ) 601 return; 602 599 603 $( '.customize-section' ).not( clicked ).removeClass( 'open' ); 600 604 clicked.toggleClass( 'open' ); 601 return false;605 event.preventDefault(); 602 606 }); 603 607
Note: See TracChangeset
for help on using the changeset viewer.