Ticket #31791: 31791.diff
| File 31791.diff, 3.7 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/customize-controls.css
883 883 margin-bottom: 8px; 884 884 } 885 885 886 .wp-customizer .theme-browser .themes .more-details { 887 z-index: 1; 888 } 889 .wp-customizer .theme-browser .theme a:focus .more-details { 890 opacity: 1; 891 } 892 886 893 .wp-customizer .theme-browser .themes { 887 894 padding-bottom: 8px; 888 895 } -
src/wp-admin/js/customize-controls.js
639 639 section.closeDetails(); 640 640 }); 641 641 642 section.container.on( 'click keydown', '.theme-actions .button', function( event ) {643 if ( api.utils.isKeydownButNotEnterEvent( event ) ) {644 return;645 }646 647 $( '.wp-full-overlay' ).addClass( 'customize-loading' );648 });649 650 642 section.container.on( 'input', '#themes-filter', function( event ) { 651 643 var count, 652 644 term = event.currentTarget.value.toLowerCase().trim().replace( '-', ' ' ), … … 1854 1846 var control = this; 1855 1847 1856 1848 // Bind details view trigger. 1857 control.container.on( 'click keydown', '.theme ', function( event ) {1849 control.container.on( 'click keydown', '.theme-actions .button', function( event ) { 1858 1850 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 1859 1851 return; 1860 1852 } 1861 1853 1862 if ( 'button' === event.target.className ) {1863 return;1864 }1865 1866 1854 api.section( control.section() ).showDetails( control.params.theme ); 1867 1855 }); 1868 1856 1869 control.container.on( 'click keydown', '. theme-actions .button', function( event ) {1857 control.container.on( 'click keydown', '.preview-link', function( event ) { 1870 1858 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 1871 1859 return; 1872 1860 } -
src/wp-includes/class-wp-customize-control.php
1201 1201 */ 1202 1202 public function content_template() { 1203 1203 ?> 1204 <div class="theme<# if ( data.theme.active ) { #> active<# } #>" tabindex="0"aria-describedby="{{ data.theme.id }}-action {{ data.theme.id }}-name">1204 <div class="theme<# if ( data.theme.active ) { #> active<# } #>" aria-describedby="{{ data.theme.id }}-action {{ data.theme.id }}-name"> 1205 1205 <# if ( data.theme.screenshot[0] ) { #> 1206 1206 <div class="theme-screenshot"> 1207 <img src="{{ data.theme.screenshot[0] }}" alt="" /> 1207 <a class="preview-link" href="<?php echo add_query_arg( 'theme', '{{ data.theme.id }}', remove_query_arg( 'theme' ) ); ?>" target="_top"> 1208 <span class="more-details"><?php _e( 'Live Preview' ); ?></span> 1209 <img src="{{ data.theme.screenshot[0] }}" alt="{{ data.theme.name }}" /> 1210 </a> 1208 1211 </div> 1209 1212 <# } else { #> 1210 1213 <div class="theme-screenshot blank"></div> 1211 1214 <# } #> 1212 <span class="more-details" id="{{ data.theme.id }}-action"><?php _e( 'Theme Details' ); ?></span>1213 1215 <div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.theme.author }}' ); ?></div> 1214 1216 1215 1217 <# if ( data.theme.active ) { #> … … 1225 1227 1226 1228 <# if ( ! data.theme.active ) { #> 1227 1229 <div class="theme-actions"> 1228 < a class="button" href="<?php echo add_query_arg( 'theme', '{{ data.theme.id }}', remove_query_arg( 'theme' ) ); ?>" target="_top"><?php _e( 'Live Preview' ); ?></a>1230 <span class="button" tabindex="0" id="{{ data.theme.id }}-action"><?php _e( 'Theme Details' ); ?></span> 1229 1231 </div> 1230 1232 <# } #> 1231 1233 </div>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)