wp/wp-includes/customize/class-wp-customize-themes-panel.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    65 	 * @see WP_Customize_Panel::print_template()
    65 	 * @see WP_Customize_Panel::print_template()
    66 	 */
    66 	 */
    67 	protected function content_template() {
    67 	protected function content_template() {
    68 		?>
    68 		?>
    69 		<li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
    69 		<li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
    70 			<button class="customize-panel-back" tabindex="-1" type="button"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button>
    70 			<button class="customize-panel-back" tabindex="-1" type="button"><span class="screen-reader-text">
       
    71 				<?php
       
    72 				/* translators: Hidden accessibility text. */
       
    73 				_e( 'Back' );
       
    74 				?>
       
    75 			</span></button>
    71 			<div class="accordion-section-title">
    76 			<div class="accordion-section-title">
    72 				<span class="preview-notice">
    77 				<span class="preview-notice">
    73 					<?php
    78 					<?php
    74 					printf(
    79 					printf(
    75 						/* translators: %s: Themes panel title in the Customizer. */
    80 						/* translators: %s: Themes panel title in the Customizer. */
    78 					); // Separate strings for consistency with other panels.
    83 					); // Separate strings for consistency with other panels.
    79 					?>
    84 					?>
    80 				</span>
    85 				</span>
    81 				<?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>
    86 				<?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>
    82 					<# if ( data.description ) { #>
    87 					<# if ( data.description ) { #>
    83 						<button class="customize-help-toggle dashicons dashicons-editor-help" type="button" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
    88 						<button class="customize-help-toggle dashicons dashicons-editor-help" type="button" aria-expanded="false"><span class="screen-reader-text">
       
    89 							<?php
       
    90 							/* translators: Hidden accessibility text. */
       
    91 							_e( 'Help' );
       
    92 							?>
       
    93 						</span></button>
    84 					<# } #>
    94 					<# } #>
    85 				<?php endif; ?>
    95 				<?php endif; ?>
    86 			</div>
    96 			</div>
    87 			<?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>
    97 			<?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>
    88 				<# if ( data.description ) { #>
    98 				<# if ( data.description ) { #>