Ticket #31336: 31336.5.diff
File 31336.5.diff, 25.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/customize-controls.css
50 50 overflow-x: hidden; 51 51 } 52 52 53 #customize- info {53 #customize-controls .customize-info { 54 54 border: none; 55 55 border-top: 1px solid #ddd; 56 border-bottom: 1px solid #ddd; 57 margin-bottom: 15px; 56 58 } 57 59 58 #customize- info .accordion-section-title {59 background -color: #fff;60 color: # 666666;60 #customize-controls .customize-info .accordion-section-title { 61 background: #fff; 62 color: #555; 61 63 border-left: none; 62 64 border-right: none; 63 border-bottom: 1px solid #eeeeee; 65 border-bottom: none; 66 cursor: default; 64 67 } 65 68 66 #customize- info.open .accordion-section-title:after,67 #customize- info .accordion-section-title:hover:after,68 #customize- info .accordion-section-title:focus:after {69 color: # 555555;69 #customize-controls .customize-info.open .accordion-section-title:after, 70 #customize-controls .customize-info .accordion-section-title:hover:after, 71 #customize-controls .customize-info .accordion-section-title:focus:after { 72 color: #333; 70 73 } 71 74 72 #customize-info .preview-notice { 75 #customize-controls .customize-info .accordion-section-title:after { 76 display: none; 77 } 78 79 #customize-controls .customize-info .preview-notice { 73 80 font-size: 13px; 74 81 line-height: 24px; 75 82 } 76 83 77 #customize-info .theme-name { 84 #customize-controls .control-section .customize-section-title, 85 #customize-controls .customize-info .panel-title { 78 86 font-size: 20px; 79 87 font-weight: 200; 80 88 line-height: 24px; 81 89 display: block; 90 overflow: hidden; 91 white-space: nowrap; 92 text-overflow: ellipsis; 82 93 } 83 94 84 #customize-info .theme-screenshot { 85 width: 258px; 95 #customize-controls .customize-info .customize-help-toggle { 96 position: absolute; 97 top: 4px; 98 right: 1px; 99 padding: 10px 8px 10px 10px; 100 cursor: pointer; 86 101 } 87 102 88 #customize-info .theme-description { 89 margin-top: 1em; 90 color: #666666; 91 line-height: 20px; 103 #customize-controls .customize-info.open .customize-help-toggle { 104 color: #0073aa; 92 105 } 93 106 107 #customize-controls .customize-info .customize-panel-description { 108 display: none; 109 background: #fff; 110 padding: 0 12px 16px 12px; 111 } 112 113 #customize-controls .customize-info .customize-panel-description p:first-child { 114 margin-top: 0; 115 } 116 117 #customize-controls .customize-info .customize-panel-description p:last-child { 118 margin-bottom: 0; 119 } 120 94 121 #customize-theme-controls .control-section { 95 122 border: none; 96 123 } … … 101 128 border-bottom: 1px solid #eeeeee; 102 129 } 103 130 131 #customize-theme-controls .accordion-section-title:after { 132 content: "\f345"; 133 } 134 135 .rtl #customize-theme-controls .accordion-section-title:after { 136 content: "\f341"; 137 } 138 104 139 #customize-theme-controls .accordion-section-content { 105 color: #555 555;106 background: #fff;140 color: #555; 141 background: transparent; 107 142 } 108 143 109 #customize-info.open .accordion-section-title, 110 #customize-info .accordion-section-title:hover, 111 #customize-info .accordion-section-title:focus, 112 #customize-theme-controls .control-section:hover > .accordion-section-title, 113 #customize-theme-controls .control-section .accordion-section-title:hover, 114 #customize-theme-controls .control-section.open .accordion-section-title, 115 #customize-theme-controls .control-section .accordion-section-title:focus { 116 color: #23282d; 117 background: #f5f5f5; 144 #customize-controls .control-section:hover > .accordion-section-title, 145 #customize-controls .control-section .accordion-section-title:hover, 146 #customize-controls .control-section.open .accordion-section-title, 147 #customize-controls .control-section .accordion-section-title:focus { 148 color: #fff; 149 background: #0073aa; 118 150 } 119 151 120 152 .js .control-section:hover .accordion-section-title, … … 128 160 #customize-theme-controls .control-section .accordion-section-title:hover:after, 129 161 #customize-theme-controls .control-section.open .accordion-section-title:after, 130 162 #customize-theme-controls .control-section .accordion-section-title:focus:after { 131 color: # 555;163 color: #fff; 132 164 } 133 165 134 #customize-info.open,135 166 #customize-theme-controls .control-section.open { 136 167 border-bottom: 1px solid #eeeeee; 137 168 } … … 145 176 border-bottom-color: #ddd; 146 177 } 147 178 148 #customize-theme-controls > ul, 179 #customize-theme-controls > ul { 180 margin: 0; 181 } 182 149 183 #customize-theme-controls .accordion-section-content { 150 184 margin: 0; 185 position: absolute; 186 left: 100%; 187 top: 0; 188 width: -webkit-calc(100% - 24px); 189 width: calc(100% - 24px); 190 padding: 12px; 151 191 } 152 192 193 .customize-section-description-container { 194 margin-bottom: 15px; 195 } 196 197 h3.customize-section-title { 198 margin: -12px -12px -12px 35px; 199 padding: 12px; 200 border-bottom: 1px solid #ddd; 201 border-left: 1px solid #ddd; 202 background: #fff; 203 color: #555; 204 cursor: pointer; 205 } 206 207 h3.customize-section-title:before { 208 font: normal 20px/72px dashicons; 209 content: "\f341"; 210 -webkit-font-smoothing: antialiased; 211 -moz-osx-font-smoothing: grayscale; 212 position: absolute; 213 top: 0; 214 left: 0; 215 width: 47px; 216 margin: 0; 217 text-align: center; 218 background: #fff; 219 border-bottom: 1px solid #ddd; 220 } 221 222 .rtl h3.customize-section-title:before { 223 content: "\f345"; 224 } 225 226 h3.customize-section-title:hover, 227 h3.customize-section-title:hover:before, 228 h3.customize-section-title:focus, 229 h3.customize-section-title:focus:before { 230 background: #0073aa; 231 color: #fff; 232 box-shadow: none; 233 outline: none; 234 } 235 236 #customize-theme-controls .control-section .accordion-section-content > li.customize-control:nth-child(2) { 237 margin-top: 12px; 238 } 239 240 #customize-theme-controls { 241 position: relative; 242 left: 0; 243 transition: .18s left ease-in-out; 244 } 245 246 .section-open #customize-info, 247 .section-open #customize-theme-controls { 248 left: -100%; 249 } 250 251 .section-open .control-panel-back { 252 display: none; 253 } 254 153 255 .control-section.control-panel > .accordion-section-title { 154 256 padding-right: 54px; 155 257 } … … 169 271 170 272 #customize-theme-controls .control-section.control-panel > h3.accordion-section-title:focus:after, 171 273 #customize-theme-controls .control-section.control-panel > h3.accordion-section-title:hover:after { 172 background: # ddd;173 color: # 000;274 background: #00a0d2; 275 color: #fff; 174 276 border: 1px solid #d9d9d9; 175 277 border-right: none; 176 278 margin-top: -12px; … … 184 286 left: 300px; 185 287 top: 0; 186 288 width: 300px; 187 border-top: 1px solid #ddd;188 289 -webkit-transition: left ease-in-out .18s; 189 290 transition: left ease-in-out .18s; 190 291 } … … 242 343 transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; 243 344 } 244 345 346 .customize-panel-back { 347 display: block; 348 float: left; 349 width: 45px; 350 height: 69px; 351 padding-right: 2px; 352 background: #fff; 353 border-right: 1px solid #ddd; 354 cursor: pointer; 355 -webkit-transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; 356 transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; 357 } 358 359 245 360 .ios .control-panel-back { 246 361 -webkit-transition: left 0s; 247 362 transition: left 0s; … … 251 366 display: none; 252 367 } 253 368 369 .panel-meta.customize-info .accordion-section-title { 370 margin-left: 48px; 371 } 372 373 #customize-controls .panel-meta.customize-info .accordion-section-title:hover { 374 background: #fff; 375 color: #555; 376 } 377 254 378 .customize-overlay-close:focus, 255 379 .customize-overlay-close:hover, 256 380 .customize-controls-close:focus, … … 267 391 box-shadow: none; 268 392 } 269 393 394 .customize-panel-back:hover, 395 .customize-panel-back:focus { 396 background: #0073aa; 397 border-color: #ccc; 398 color: #fff; 399 outline: none; 400 -webkit-box-shadow: none; 401 box-shadow: none; 402 } 403 270 404 .customize-overlay-close:before, 271 405 .customize-controls-close:before { 272 406 font: normal 22px/45px dashicons; … … 276 410 left: 13px; 277 411 } 278 412 413 .customize-panel-back:before { 414 font: normal 20px/69px dashicons; 415 content: "\f341"; 416 position: relative; 417 left: 13px; 418 } 419 279 420 .control-panel-back:before { 280 421 font: normal 20px/45px dashicons; 281 422 content: "\f341"; … … 285 426 } 286 427 287 428 .in-sub-panel .control-panel-back { 288 left: 0; 429 /* left: 0; @todo decide whether to bring back the back buttons in the header */ 289 430 } 290 431 291 432 .current-panel > .accordion-section-title { … … 345 486 transition: left 0s; 346 487 } 347 488 348 .control-section.control-panel .accordion-section-title .panel-title {349 font-size: 20px;350 font-weight: 200;351 line-height: 24px;352 display: block;353 border: none;354 }355 356 .control-section.control-panel .preview-notice {357 font-size: 13px;358 line-height: 24px;359 }360 361 489 p.customize-section-description { 362 490 font-style: normal; 491 margin-top: 22px; 492 margin-bottom: 0; 363 493 } 364 494 365 495 .customize-control { … … 366 496 width: 100%; 367 497 float: left; 368 498 clear: both; 369 margin-bottom: 8px;499 margin-bottom: 12px; 370 500 } 371 501 372 502 .customize-control select, … … 913 1043 padding-right: 100px; /* Space for the button */ 914 1044 } 915 1045 916 .control-section-themes .accordion-section-title span { 917 font-size: small; 1046 .control-section-themes .accordion-section-title span.customize-action, 1047 #customize-controls .customize-section-title span.customize-action { 1048 font-size: 13px; 918 1049 display: block; 919 1050 font-weight: 400; 920 1051 } … … 928 1059 font-weight: normal; 929 1060 } 930 1061 1062 .control-section-themes .accordion-section-title:before { 1063 display: none; 1064 } 1065 931 1066 .customize-themes-panel { 932 1067 display: none; 933 1068 padding: 0 8px; … … 938 1073 box-sizing: border-box; 939 1074 } 940 1075 1076 .customize-themes-panel .accordion-section-title:first-child { 1077 margin-top: 0; 1078 } 941 1079 1080 #customize-controls .customize-themes-panel .accordion-section-title:nth-child(2) { 1081 font-size: 14px; 1082 font-weight: 600; 1083 } 1084 942 1085 .customize-themes-panel > h2 { 943 1086 padding: 15px 8px 0 8px; 944 1087 } … … 956 1099 margin-bottom: 8px; 957 1100 } 958 1101 1102 #customize-theme-controls .themes.accordion-section-content { 1103 position: relative; 1104 left: 0; 1105 padding: 0; 1106 width: 100%; 1107 } 1108 959 1109 .wp-customizer .theme-browser .themes { 960 1110 padding-bottom: 8px; 961 1111 } … … 1170 1320 margin-bottom: 4px; 1171 1321 } 1172 1322 1173 .adding-widget #customize-header-actions .primary-actions {1174 display: none;1175 }1176 1177 .adding-widget #customize-header-actions .secondary-actions {1178 display: block;1179 }1180 1181 1323 #customize-header-actions .button-primary { 1182 1324 margin-top: 6px; 1183 1325 } -
src/wp-admin/css/customize-widgets.css
348 348 width: 300px; 349 349 margin: 0; 350 350 z-index: 1; 351 background: # fff!important;351 background: #eee !important; 352 352 -webkit-transition: all 0.2s; 353 353 transition: all 0.2s; 354 354 border-right: 1px solid #dddddd; … … 384 384 #available-widgets .widget-tpl { 385 385 position: relative; 386 386 padding: 20px 15px 20px 60px; 387 background: #fff; 387 388 border-bottom: 1px solid #e4e4e4; 388 389 cursor: pointer; 389 390 display: none; … … 391 392 392 393 #available-widgets .widget-tpl:hover, 393 394 #available-widgets .widget-tpl.selected { 394 background: #fafafa; 395 background: #eee; 396 border-bottom-color: #ccc; 395 397 } 396 398 397 399 #available-widgets .widget-top, … … 583 585 #available-widgets [class*="tweet"] .widget-title:before, 584 586 #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; } 585 587 588 #available-widgets .customize-section-title { 589 display: none; 590 } 586 591 587 592 @media screen and (max-height: 700px) and (min-width: 981px) { 588 .customize-control {593 .customize-control-widget { 589 594 margin-bottom: 0; 590 595 } 591 596 .widget-top { … … 628 633 width: 100%; 629 634 } 630 635 636 #available-widgets .customize-section-title { 637 margin: 0 0 0 47px; 638 font-size: 20px; 639 font-weight: 200; 640 line-height: 24px; 641 display: block; 642 overflow: hidden; 643 white-space: nowrap; 644 text-overflow: ellipsis; 645 } 646 647 #available-widgets .customize-section-title .customize-action { 648 font-size: 13px; 649 display: block; 650 font-weight: 400; 651 } 652 631 653 #available-widgets-filter { 632 654 position: static; 633 655 width: 100%; 634 656 height: auto; 635 657 } 658 659 #available-widgets-list { 660 top: 122px; 661 } 636 662 } -
src/wp-admin/customize.php
143 143 144 144 <div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat --> 145 145 <div class="wp-full-overlay-sidebar-content" tabindex="-1"> 146 <div id="customize-info" class="accordion-section ">147 <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>" tabindex="0">146 <div id="customize-info" class="accordion-section customize-info"> 147 <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>"> 148 148 <span class="preview-notice"><?php 149 echo sprintf( __( 'You are customizing %s' ), '<strong class=" theme-name site-title">' . get_bloginfo( 'name' ) . '</strong>' );149 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' ); 150 150 ?></span> 151 <span class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></span> 151 152 </div> 152 <div class=" accordion-section-content"><?php153 <div class="customize-panel-description"><?php 153 154 _e( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' ); 154 155 ?></div> 155 156 </div> -
src/wp-admin/js/customize-controls.js
446 446 var section = this; 447 447 448 448 // Expand/Collapse accordion sections on click. 449 section.container.find( '.accordion-section-title ' ).on( 'click keydown', function( event ) {449 section.container.find( '.accordion-section-title, .customize-section-title' ).on( 'click keydown', function( event ) { 450 450 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 451 451 return; 452 452 } … … 499 499 * @param {Object} args 500 500 */ 501 501 onChangeExpanded: function ( expanded, args ) { 502 var section = this, 502 var position, scroll, section = this, 503 container = section.container.closest( '.wp-full-overlay-sidebar-content' ), 503 504 content = section.container.find( '.accordion-section-content' ), 505 overlay = section.container.closest( '.wp-full-overlay' ), 504 506 expand; 505 507 506 if ( expanded ) {508 if ( expanded && ! section.container.hasClass( 'open' ) ) { 507 509 508 510 if ( args.unchanged ) { 509 511 expand = args.completeCallback; 510 512 } else { 513 container.scrollTop( 0 ); 511 514 expand = function () { 512 content.stop().slideDown( args.duration, args.completeCallback );513 515 section.container.addClass( 'open' ); 516 overlay.addClass( 'section-open' ); 517 position = content.offset().top; 518 scroll = container.scrollTop(); 519 content.css( 'margin-top', ( 45 - position - scroll ) ); 514 520 }; 515 521 } 516 522 … … 531 537 expand(); 532 538 } 533 539 534 } else {540 } else if ( section.container.hasClass( 'open' ) ) { 535 541 section.container.removeClass( 'open' ); 536 content.slideUp( args.duration, args.completeCallback ); 542 overlay.removeClass( 'section-open' ); 543 content.css( 'margin-top', 'inherit' ); 544 container.scrollTop( 0 ); 545 section.container.find( '.accordion-section-title' ).focus(); 537 546 } 538 547 } 539 548 }); … … 1012 1021 } 1013 1022 }); 1014 1023 1024 // Close panel. 1025 panel.container.find( '.customize-panel-back' ).on( 'click keydown', function( event ) { 1026 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 1027 return; 1028 } 1029 event.preventDefault(); // Keep this AFTER the key filter above 1030 1031 if ( panel.expanded() ) { 1032 panel.collapse(); 1033 } 1034 }); 1035 1015 1036 meta = panel.container.find( '.panel-meta:first' ); 1016 1037 1017 meta.find( '> .accordion-section-title ' ).on( 'click keydown', function( event ) {1038 meta.find( '> .accordion-section-title .customize-help-toggle' ).on( 'click keydown', function( event ) { 1018 1039 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 1019 1040 return; 1020 1041 } … … 1024 1045 return; 1025 1046 } 1026 1047 1027 var content = meta.find( '. accordion-section-content:first' );1048 var content = meta.find( '.customize-panel-description:first' ); 1028 1049 if ( meta.hasClass( 'open' ) ) { 1029 1050 meta.toggleClass( 'open' ); 1030 1051 content.slideUp( panel.defaultExpandedArguments.duration ); … … 1089 1110 // Note: there is a second argument 'args' passed 1090 1111 var position, scroll, 1091 1112 panel = this, 1092 section = panel.container.closest( '.accordion-section' ), 1113 section = panel.container.closest( '.accordion-section' ), // This is actually the panel. 1093 1114 overlay = section.closest( '.wp-full-overlay' ), 1094 1115 container = section.closest( '.wp-full-overlay-sidebar-content' ), 1095 1116 siblings = container.find( '.open' ), 1096 1117 topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ).add( '#customize-info > .accordion-section-title' ), 1097 backBtn = overlay.find( '.control-panel-back' ),1118 backBtn = section.find( '.customize-panel-back' ), 1098 1119 panelTitle = section.find( '.accordion-section-title' ).first(), 1099 1120 content = section.find( '.control-panel-content' ); 1100 1121 … … 2573 2594 var parent, topFocus, 2574 2595 body = $( document.body ), 2575 2596 overlay = body.children( '.wp-full-overlay' ), 2576 title = $( '#customize-info . theme-name.site-title' ),2597 title = $( '#customize-info .panel-title.site-title' ), 2577 2598 closeBtn = $( '.customize-controls-close' ), 2578 2599 saveBtn = $( '#save' ); 2579 2600 … … 2588 2609 }); 2589 2610 2590 2611 // Expand/Collapse the main customizer customize info. 2591 $( ' #customize-info' ).find( '> .accordion-section-title' ).on( 'click keydown', function( event ) {2612 $( '.customize-info' ).find( '> .accordion-section-title .customize-help-toggle' ).on( 'click keydown', function( event ) { 2592 2613 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 2593 2614 return; 2594 2615 } 2595 2616 event.preventDefault(); // Keep this AFTER the key filter above 2596 2617 2597 var section = $( this ). parent(),2598 content = section.find( '. accordion-section-content:first' );2618 var section = $( this ).closest( '.accordion-section' ), 2619 content = section.find( '.customize-panel-description:first' ); 2599 2620 2600 2621 if ( section.hasClass( 'cannot-expand' ) ) { 2601 2622 return; -
src/wp-admin/js/customize-widgets.js
176 176 177 177 // If the available widgets panel is open and the customize controls are 178 178 // interacted with (i.e. available widgets panel is blurred) then close the 179 // available widgets panel. 180 $( '#customize-controls, .customize-overlay-close ' ).on( 'click keydown', function( e ) {179 // available widgets panel. Also close on back button click. 180 $( '#customize-controls, .customize-overlay-close, #available-widgets .customize-section-title' ).on( 'click keydown', function( e ) { 181 181 var isAddNewBtn = $( e.target ).is( '.add-new-widget, .add-new-widget *' ); 182 182 if ( $( 'body' ).hasClass( 'adding-widget' ) && ! isAddNewBtn ) { 183 183 self.close(); … … 1270 1270 1271 1271 if ( expanded ) { 1272 1272 1273 self.expandControlSection(); 1273 if ( 'undefined' != typeof api.section( self.section ) && ! api.section( self.section ).expanded() ) { 1274 self.expandControlSection(); 1275 } 1274 1276 1275 1277 // Close all other widget controls before expanding this one 1276 1278 api.control.each( function( otherControl ) { -
src/wp-includes/class-wp-customize-panel.php
315 315 */ 316 316 protected function render_content() { 317 317 ?> 318 <li class="panel-meta accordion-section control-section<?php if ( empty( $this->description ) ) { echo ' cannot-expand'; } ?>"> 319 <div class="accordion-section-title" tabindex="0"> 318 <li class="panel-meta customize-info accordion-section <?php if ( empty( $this->description ) ) { echo ' cannot-expand'; } ?>"> 319 <span class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></span> 320 <div class="accordion-section-title"> 320 321 <span class="preview-notice"><?php 321 322 /* translators: %s is the site/panel title in the Customizer */ 322 323 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' ); 323 324 ?></span> 325 <span class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></span> 324 326 </div> 325 327 <?php if ( ! empty( $this->description ) ) : ?> 326 <div class=" accordion-section-contentdescription">328 <div class="description customize-panel-description"> 327 329 <?php echo $this->description; ?> 328 330 </div> 329 331 <?php endif; ?> -
src/wp-includes/class-wp-customize-section.php
305 305 <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>"> 306 306 <h3 class="accordion-section-title" tabindex="0"> 307 307 <?php echo esc_html( $this->title ); ?> 308 <span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span>308 <span class="screen-reader-text"><?php _e( 'Press return or enter to open' ); ?></span> 309 309 </h3> 310 310 <ul class="accordion-section-content"> 311 <?php if ( ! empty( $this->description ) ) : ?> 312 <li class="customize-section-description-container"> 311 <li class="customize-section-description-container"> 312 <h3 class="customize-section-title" tabindex="0"> 313 <span class="customize-action"><?php _e( 'Customizing' ); ?><?php if ( $this->panel ) { echo ' ▸ ' . esc_html( $this->manager->get_panel( $this->panel )->title ); } ?></span> 314 <?php echo esc_html( $this->title ); ?> 315 <span class="screen-reader-text"><?php _e( 'Press return or enter to close' ); ?></span> 316 </h3> 317 <?php if ( ! empty( $this->description ) ) : ?> 313 318 <p class="description customize-section-description"><?php echo $this->description; ?></p> 314 < /li>315 < ?php endif; ?>319 <?php endif; ?> 320 </li> 316 321 </ul> 317 322 </li> 318 323 <?php … … 353 358 <?php 354 359 if ( $this->manager->is_theme_active() ) { 355 360 /* translators: %s: theme name */ 356 printf( __( '<span >Active theme</span> %s' ), $this->title );361 printf( __( '<span class="customize-action">Active theme</span> %s' ), $this->title ); 357 362 } else { 358 363 /* translators: %s: theme name */ 359 printf( __( '<span >Previewing theme</span> %s' ), $this->title );364 printf( __( '<span class="customize-action">Previewing theme</span> %s' ), $this->title ); 360 365 } 361 366 ?> 362 367 … … 363 368 <button type="button" class="button change-theme"><?php _ex( 'Change', 'theme' ); ?></button> 364 369 </h3> 365 370 <div class="customize-themes-panel control-panel-content themes-php"> 366 <h2> 371 <h3 class="accordion-section-title customize-section-title"> 372 <span class="customize-action"><?php _e( 'Customizing' ); ?></span> 367 373 <?php _e( 'Themes' ); ?> 368 374 <span class="title-count theme-count"><?php echo count( $this->controls ) + 1 /* Active theme */; ?></span> 369 </h2> 370 375 </h3> 371 376 <h3 class="accordion-section-title customize-section-title"> 372 377 <?php 373 378 if ( $this->manager->is_theme_active() ) { 374 379 /* translators: %s: theme name */ 375 printf( __( '<span >Active theme</span> %s' ), $this->title );380 printf( __( '<span class="customize-action">Active theme</span> %s' ), $this->title ); 376 381 } else { 377 382 /* translators: %s: theme name */ 378 printf( __( '<span >Previewing theme</span> %s' ), $this->title );383 printf( __( '<span class="customize-action">Previewing theme</span> %s' ), $this->title ); 379 384 } 380 385 ?> 381 386 <button type="button" class="button customize-theme"><?php _e( 'Customize' ); ?></button> -
src/wp-includes/class-wp-customize-widgets.php
664 664 ?> 665 665 <div id="widgets-left"><!-- compatibility with JS which looks for widget templates here --> 666 666 <div id="available-widgets"> 667 <h3 class="customize-section-title" tabindex="0"> 668 <span class="customize-action"><?php _e( 'Customizing' ); echo ' ▸ '; _e( 'Widgets' ); ?></span> 669 <?php _e( 'Add a Widget' ); ?> 670 <span class="screen-reader-text"><?php _e( 'Press return or enter to close' ); ?></span> 671 </h3> 667 672 <div id="available-widgets-filter"> 668 673 <label class="screen-reader-text" for="widgets-search"><?php _e( 'Search Widgets' ); ?></label> 669 674 <input type="search" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets…' ) ?>" />