Ticket #31336: 31336.8.diff
File 31336.8.diff, 27.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: 20px 20px 10px 10px; 100 width: 20px; 101 height: 20px; 102 cursor: pointer; 103 box-shadow: none; 104 -webkit-appearance: none; 105 background: transparent; 106 color: #555; 107 border: none; 86 108 } 87 109 88 #customize- info .theme-description{89 margin-top: 1em;90 color: #666666;91 l ine-height: 20px;110 #customize-controls .customize-info .customize-help-toggle:before { 111 position: absolute; 112 top: 5px; 113 left: 5px; 92 114 } 93 115 116 #customize-controls .customize-info.open .customize-help-toggle, 117 #customize-controls .customize-info .customize-help-toggle:focus, 118 #customize-controls .customize-info .customize-help-toggle:hover { 119 color: #0073aa; 120 } 121 122 #customize-controls .customize-info .customize-panel-description { 123 display: none; 124 background: #fff; 125 padding: 12px 15px; 126 border-top: 1px solid #ddd; 127 } 128 129 #customize-controls .customize-info .customize-panel-description p:first-child { 130 margin-top: 0; 131 } 132 133 #customize-controls .customize-info .customize-panel-description p:last-child { 134 margin-bottom: 0; 135 } 136 94 137 #customize-theme-controls .control-section { 95 138 border: none; 96 139 } … … 101 144 border-bottom: 1px solid #eeeeee; 102 145 } 103 146 147 #customize-theme-controls .accordion-section-title:after { 148 content: "\f345"; 149 } 150 151 .rtl #customize-theme-controls .accordion-section-title:after { 152 content: "\f341"; 153 } 154 104 155 #customize-theme-controls .accordion-section-content { 105 color: #555 555;106 background: #fff;156 color: #555; 157 background: transparent; 107 158 } 108 159 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; 160 #customize-controls .control-section:hover > .accordion-section-title, 161 #customize-controls .control-section .accordion-section-title:hover, 162 #customize-controls .control-section.open .accordion-section-title, 163 #customize-controls .control-section .accordion-section-title:focus { 164 color: #fff; 165 background: #0073aa; 118 166 } 119 167 120 168 .js .control-section:hover .accordion-section-title, … … 128 176 #customize-theme-controls .control-section .accordion-section-title:hover:after, 129 177 #customize-theme-controls .control-section.open .accordion-section-title:after, 130 178 #customize-theme-controls .control-section .accordion-section-title:focus:after { 131 color: # 555;179 color: #fff; 132 180 } 133 181 134 #customize-info.open,135 182 #customize-theme-controls .control-section.open { 136 183 border-bottom: 1px solid #eeeeee; 137 184 } … … 145 192 border-bottom-color: #ddd; 146 193 } 147 194 148 #customize-theme-controls > ul, 195 #customize-theme-controls > ul { 196 margin: 0; 197 } 198 149 199 #customize-theme-controls .accordion-section-content { 150 200 margin: 0; 201 position: absolute; 202 left: 100%; 203 top: 0; 204 width: -webkit-calc(100% - 24px); 205 width: calc(100% - 24px); 206 padding: 12px; 151 207 } 152 208 209 .customize-section-description-container { 210 margin-bottom: 15px; 211 } 212 213 h3.customize-section-title { 214 margin: -12px -12px -12px 35px; 215 padding: 12px; 216 border-bottom: 1px solid #ddd; 217 border-left: 1px solid #ddd; 218 background: #fff; 219 color: #555; 220 cursor: pointer; 221 } 222 223 h3.customize-section-title:before { 224 font: normal 20px/72px dashicons; 225 content: "\f341"; 226 -webkit-font-smoothing: antialiased; 227 -moz-osx-font-smoothing: grayscale; 228 position: absolute; 229 top: 0; 230 left: 0; 231 width: 47px; 232 margin: 0; 233 text-align: center; 234 background: #fff; 235 border-bottom: 1px solid #ddd; 236 } 237 238 .rtl h3.customize-section-title:before { 239 content: "\f345"; 240 } 241 242 h3.customize-section-title:hover, 243 h3.customize-section-title:hover:before, 244 h3.customize-section-title:focus, 245 h3.customize-section-title:focus:before { 246 background: #0073aa; 247 color: #fff; 248 box-shadow: none; 249 outline: none; 250 } 251 252 #customize-theme-controls .control-section .accordion-section-content > li.customize-control:nth-child(2) { 253 margin-top: 12px; 254 } 255 256 #customize-theme-controls { 257 position: relative; 258 left: 0; 259 transition: .18s left ease-in-out; 260 } 261 262 .section-open #customize-info, 263 .section-open #customize-theme-controls { 264 left: -100%; 265 } 266 267 .section-open .control-panel-back { 268 display: none; 269 } 270 153 271 .control-section.control-panel > .accordion-section-title { 154 272 padding-right: 54px; 155 273 } … … 169 287 170 288 #customize-theme-controls .control-section.control-panel > h3.accordion-section-title:focus:after, 171 289 #customize-theme-controls .control-section.control-panel > h3.accordion-section-title:hover:after { 172 background: # ddd;173 color: # 000;290 background: #00a0d2; 291 color: #fff; 174 292 border: 1px solid #d9d9d9; 175 293 border-right: none; 176 294 margin-top: -12px; … … 184 302 left: 300px; 185 303 top: 0; 186 304 width: 300px; 187 border-top: 1px solid #ddd;188 305 -webkit-transition: left ease-in-out .18s; 189 306 transition: left ease-in-out .18s; 190 307 } … … 242 359 transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; 243 360 } 244 361 245 .ios .control-panel-back { 362 .customize-panel-back { 363 display: block; 364 float: left; 365 width: 48px; 366 height: 69px; 367 padding: 0 24px 0 0; 368 margin: 0; 369 background: #fff; 370 border: none; 371 border-right: 1px solid #ddd; 372 box-shadow: none; 373 cursor: pointer; 374 -webkit-transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; 375 transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; 376 } 377 378 379 .ios .control-panel-back, 380 .ios .customize-panel-back { 246 381 -webkit-transition: left 0s; 247 382 transition: left 0s; 248 383 } … … 251 386 display: none; 252 387 } 253 388 389 .panel-meta.customize-info .accordion-section-title { 390 margin-left: 48px; 391 } 392 393 #customize-controls .panel-meta.customize-info .accordion-section-title:hover { 394 background: #fff; 395 color: #555; 396 } 397 254 398 .customize-overlay-close:focus, 255 399 .customize-overlay-close:hover, 256 400 .customize-controls-close:focus, … … 267 411 box-shadow: none; 268 412 } 269 413 414 .customize-panel-back:hover, 415 .customize-panel-back:focus { 416 background: #0073aa; 417 border-color: #ccc; 418 color: #fff; 419 outline: none; 420 -webkit-box-shadow: none; 421 box-shadow: none; 422 } 423 270 424 .customize-overlay-close:before, 271 425 .customize-controls-close:before { 272 426 font: normal 22px/45px dashicons; … … 276 430 left: 13px; 277 431 } 278 432 433 .customize-panel-back:before { 434 font: normal 20px/69px dashicons; 435 content: "\f341"; 436 position: relative; 437 left: 13px; 438 } 439 279 440 .control-panel-back:before { 280 441 font: normal 20px/45px dashicons; 281 442 content: "\f341"; … … 285 446 } 286 447 287 448 .in-sub-panel .control-panel-back { 288 left: 0; 449 /* left: 0; @todo decide whether to bring back the back buttons in the header */ 289 450 } 290 451 291 452 .current-panel > .accordion-section-title { … … 345 506 transition: left 0s; 346 507 } 347 508 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 509 p.customize-section-description { 362 510 font-style: normal; 511 margin-top: 22px; 512 margin-bottom: 0; 363 513 } 364 514 365 515 .customize-control { … … 366 516 width: 100%; 367 517 float: left; 368 518 clear: both; 369 margin-bottom: 8px;519 margin-bottom: 12px; 370 520 } 371 521 372 522 .customize-control select, … … 913 1063 padding-right: 100px; /* Space for the button */ 914 1064 } 915 1065 916 .control-section-themes .accordion-section-title span { 917 font-size: small; 1066 .control-section-themes .accordion-section-title span.customize-action, 1067 #customize-controls .customize-section-title span.customize-action { 1068 font-size: 13px; 918 1069 display: block; 919 1070 font-weight: 400; 920 1071 } … … 928 1079 font-weight: normal; 929 1080 } 930 1081 1082 .control-section-themes .accordion-section-title:before { 1083 display: none; 1084 } 1085 931 1086 .customize-themes-panel { 932 1087 display: none; 933 1088 padding: 0 8px; … … 938 1093 box-sizing: border-box; 939 1094 } 940 1095 1096 .customize-themes-panel .accordion-section-title:first-child { 1097 margin-top: 0; 1098 } 941 1099 1100 #customize-controls .customize-themes-panel .accordion-section-title:nth-child(2) { 1101 font-size: 14px; 1102 font-weight: 600; 1103 } 1104 942 1105 .customize-themes-panel > h2 { 943 1106 padding: 15px 8px 0 8px; 944 1107 } … … 956 1119 margin-bottom: 8px; 957 1120 } 958 1121 1122 #customize-theme-controls .themes.accordion-section-content { 1123 position: relative; 1124 left: 0; 1125 padding: 0; 1126 width: 100%; 1127 } 1128 959 1129 .wp-customizer .theme-browser .themes { 960 1130 padding-bottom: 8px; 961 1131 } … … 1170 1340 margin-bottom: 4px; 1171 1341 } 1172 1342 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 1343 #customize-header-actions .button-primary { 1182 1344 margin-top: 6px; 1183 1345 } -
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 <button class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> 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 }); … … 718 727 overlay = section.closest( '.wp-full-overlay' ), 719 728 container = section.closest( '.wp-full-overlay-sidebar-content' ), 720 729 siblings = container.find( '.open' ), 721 topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ) .add( '#customize-info > .accordion-section-title' ),730 topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ), 722 731 customizeBtn = section.find( '.customize-theme' ), 723 732 changeBtn = section.find( '.change-theme' ), 724 733 content = section.find( '.control-panel-content' ); … … 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 ); 1052 $( this ).attr( 'aria-expanded', false ); 1031 1053 } else { 1032 1054 content.slideDown( panel.defaultExpandedArguments.duration ); 1033 1055 meta.toggleClass( 'open' ); 1056 $( this ).attr( 'aria-expanded', true ); 1034 1057 } 1035 1058 }); 1036 1059 … … 1089 1112 // Note: there is a second argument 'args' passed 1090 1113 var position, scroll, 1091 1114 panel = this, 1092 section = panel.container.closest( '.accordion-section' ), 1115 section = panel.container.closest( '.accordion-section' ), // This is actually the panel. 1093 1116 overlay = section.closest( '.wp-full-overlay' ), 1094 1117 container = section.closest( '.wp-full-overlay-sidebar-content' ), 1095 1118 siblings = container.find( '.open' ), 1096 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' ),1119 topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ), 1120 backBtn = section.find( '.customize-panel-back' ), 1098 1121 panelTitle = section.find( '.accordion-section-title' ).first(), 1099 1122 content = section.find( '.control-panel-content' ); 1100 1123 … … 2573 2596 var parent, topFocus, 2574 2597 body = $( document.body ), 2575 2598 overlay = body.children( '.wp-full-overlay' ), 2576 title = $( '#customize-info . theme-name.site-title' ),2599 title = $( '#customize-info .panel-title.site-title' ), 2577 2600 closeBtn = $( '.customize-controls-close' ), 2578 2601 saveBtn = $( '#save' ); 2579 2602 … … 2588 2611 }); 2589 2612 2590 2613 // Expand/Collapse the main customizer customize info. 2591 $( ' #customize-info' ).find( '> .accordion-section-title' ).on( 'click keydown', function( event ) {2614 $( '.customize-info' ).find( '> .accordion-section-title .customize-help-toggle' ).on( 'click keydown', function( event ) { 2592 2615 if ( api.utils.isKeydownButNotEnterEvent( event ) ) { 2593 2616 return; 2594 2617 } 2595 2618 event.preventDefault(); // Keep this AFTER the key filter above 2596 2619 2597 var section = $( this ). parent(),2598 content = section.find( '. accordion-section-content:first' );2620 var section = $( this ).closest( '.accordion-section' ), 2621 content = section.find( '.customize-panel-description:first' ); 2599 2622 2600 2623 if ( section.hasClass( 'cannot-expand' ) ) { 2601 2624 return; … … 2604 2627 if ( section.hasClass( 'open' ) ) { 2605 2628 section.toggleClass( 'open' ); 2606 2629 content.slideUp( api.Panel.prototype.defaultExpandedArguments.duration ); 2630 $( this ).attr( 'aria-expanded', false ); 2607 2631 } else { 2608 2632 content.slideDown( api.Panel.prototype.defaultExpandedArguments.duration ); 2609 2633 section.toggleClass( 'open' ); 2634 $( this ).attr( 'aria-expanded', true ); 2610 2635 } 2611 2636 }); 2612 2637 -
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 <button class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button> 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 <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> 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 if ( $this->panel ) { echo _x( 'Customizing ▸ ', 'Customizer sub-section breadcrumbs.' ) . esc_html( $this->manager->get_panel( $this->panel )->title ); } else { _e( 'Customizing' ); } ?></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
681 681 ?> 682 682 <div id="widgets-left"><!-- compatibility with JS which looks for widget templates here --> 683 683 <div id="available-widgets"> 684 <h3 class="customize-section-title" tabindex="0"> 685 <span class="customize-action"><?php _e( 'Customizing' ); echo ' ▸ '; _e( 'Widgets' ); ?></span> 686 <?php _e( 'Add a Widget' ); ?> 687 <span class="screen-reader-text"><?php _e( 'Press return or enter to close' ); ?></span> 688 </h3> 684 689 <div id="available-widgets-filter"> 685 690 <label class="screen-reader-text" for="widgets-search"><?php _e( 'Search Widgets' ); ?></label> 686 691 <input type="search" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets…' ) ?>" />