Ticket #20757: 20757.diff
File 20757.diff, 2.5 KB (added by , 12 years ago) |
---|
-
wp-includes/js/customize-controls.dev.js
593 593 $('.customize-section-title').click( function() { 594 594 var clicked = $( this ).parents( '.customize-section' ); 595 595 $( '.customize-section' ).not( clicked ).removeClass( 'open' ); 596 clicked.toggleClass( 'open' ); 596 if ( ! clicked.hasClass('cannot-expand') ) 597 clicked.toggleClass( 'open' ); 597 598 return false; 598 599 }); 599 600 -
wp-includes/css/customize-controls.dev.css
28 28 user-select: none; 29 29 } 30 30 31 .cannot-expand .customize-section-title { 32 cursor: auto; 33 } 34 31 35 .customize-section-content { 32 36 display: none; 33 37 padding: 10px 20px 15px; … … 84 88 z-index: 1; 85 89 } 86 90 91 .cannot-expand .customize-section-title:after { 92 display: none; 93 } 94 87 95 .customize-section.open .customize-section-title:after { 88 96 margin-top: -1px; 89 97 border-width: 0 6px 6px; -
wp-admin/customize.php
60 60 </a> 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; ?> 73 79 … … 75 81 <div class="theme-description"><?php echo $wp_customize->theme()->display('Description'); ?></div> 76 82 <?php endif; ?> 77 83 </div> 84 <?php endif; ?> 78 85 </div> 79 86 80 87 <div id="customize-theme-controls"><ul>