wp/wp-includes/customize/class-wp-customize-theme-control.php
changeset 9 177826044cd9
parent 7 cf61fcea0001
child 16 a86126ab1dd4
equal deleted inserted replaced
8:c7c34916027a 9:177826044cd9
    80 				<div class="theme-screenshot blank"></div>
    80 				<div class="theme-screenshot blank"></div>
    81 			<# } #>
    81 			<# } #>
    82 
    82 
    83 			<span class="more-details theme-details" id="{{ data.section }}-{{ data.theme.id }}-action" aria-label="<?php echo esc_attr( $details_label ); ?>"><?php _e( 'Theme Details' ); ?></span>
    83 			<span class="more-details theme-details" id="{{ data.section }}-{{ data.theme.id }}-action" aria-label="<?php echo esc_attr( $details_label ); ?>"><?php _e( 'Theme Details' ); ?></span>
    84 
    84 
    85 			<div class="theme-author"><?php
    85 			<div class="theme-author">
       
    86 			<?php
    86 				/* translators: Theme author name */
    87 				/* translators: Theme author name */
    87 				printf( _x( 'By %s', 'theme author' ), '{{ data.theme.author }}' );
    88 				printf( _x( 'By %s', 'theme author' ), '{{ data.theme.author }}' );
    88 			?></div>
    89 			?>
       
    90 			</div>
    89 
    91 
    90 			<# if ( 'installed' === data.theme.type && data.theme.hasUpdate ) { #>
    92 			<# if ( 'installed' === data.theme.type && data.theme.hasUpdate ) { #>
    91 				<div class="update-message notice inline notice-warning notice-alt" data-slug="{{ data.theme.id }}">
    93 				<div class="update-message notice inline notice-warning notice-alt" data-slug="{{ data.theme.id }}">
    92 					<p>
    94 					<p>
    93 						<?php
    95 						<?php
    94 						/* translators: %s: "Update now" button */
    96 						if ( is_multisite() ) {
    95 						printf( __( 'New version available. %s' ), '<button class="button-link update-theme" type="button">' . __( 'Update now' ) . '</button>' );
    97 							_e( 'New version available.' );
       
    98 						} else {
       
    99 							printf(
       
   100 								/* translators: %s: "Update now" button */
       
   101 								__( 'New version available. %s' ),
       
   102 								'<button class="button-link update-theme" type="button">' . __( 'Update now' ) . '</button>'
       
   103 							);
       
   104 						}
    96 						?>
   105 						?>
    97 					</p>
   106 					</p>
    98 				</div>
   107 				</div>
    99 			<# } #>
   108 			<# } #>
   100 
   109 
   126 						<button type="button" class="button button-primary theme-install preview" aria-label="<?php echo esc_attr( $install_label ); ?>" data-slug="{{ data.theme.id }}" data-name="{{ data.theme.name }}"><?php _e( 'Install &amp; Preview' ); ?></button>
   135 						<button type="button" class="button button-primary theme-install preview" aria-label="<?php echo esc_attr( $install_label ); ?>" data-slug="{{ data.theme.id }}" data-name="{{ data.theme.name }}"><?php _e( 'Install &amp; Preview' ); ?></button>
   127 					</div>
   136 					</div>
   128 				</div>
   137 				</div>
   129 			<# } #>
   138 			<# } #>
   130 		</div>
   139 		</div>
   131 	<?php
   140 		<?php
   132 	}
   141 	}
   133 }
   142 }