Changeset 26520 for trunk/src/wp-admin/themes.php
- Timestamp:
- 12/02/2013 07:13:11 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r26519 r26520 251 251 <div alt="<?php _e( 'Show next theme' ); ?>" class="right dashicons dashicons-no"></div> 252 252 </div> 253 <div class="theme-about"> 254 <div class="theme-screenshots"> 255 <# if ( data.screenshot[0] ) { #> 256 <div class="screenshot first"><img src="{{ data.screenshot[0] }}" alt="" /></div> 257 <# if ( _.size( data.screenshot ) > 1 ) { 258 _.each ( data.screenshot, function( image ) { 259 #><div class="screenshot thumb"><img src="{{ image }}" alt="" /></div><# 260 }); 261 } #> 262 <# } else { #> 263 <div class="screenshot first blank"></div> 264 <# } #> 253 <div class="theme-about"> 254 <div class="theme-screenshots"> 255 <# if ( data.screenshot[0] ) { #> 256 <div class="screenshot first"><img src="{{ data.screenshot[0] }}" alt="" /></div> 257 <# if ( _.size( data.screenshot ) > 1 ) { 258 _.each ( data.screenshot, function( image ) { 259 #><div class="screenshot thumb"><img src="{{ image }}" alt="" /></div><# 260 }); 261 } #> 262 <# } else { #> 263 <div class="screenshot first blank"></div> 264 <# } #> 265 </div> 266 267 <div class="theme-info"> 268 <# if ( data.active ) { #> 269 <span class="current-label"><?php _e( 'Current Theme' ); ?></span> 270 <# } #> 271 <h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{{ data.version }}}' ); ?></span></h3> 272 <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></h4> 273 274 <# if ( data.hasUpdate ) { #> 275 <div class="theme-update-message"> 276 <a class="theme-update"><?php _e( 'Update Available' ); ?></a> 277 <p>{{{ data.update }}}</p> 278 </div> 279 <# } #> 280 <p class="theme-description">{{{ data.description }}}</p> 281 282 <# if ( data.parent ) { #> 283 <p class="parent-theme"><?php printf( __( 'This is a child theme of <strong>%s</strong>.' ), '{{{ data.parent }}}' ); ?></p> 284 <# } #> 285 286 <# if ( data.tags ) { #> 287 <p class="theme-tags"> 288 <span><?php _e( 'Tags:' ); ?></span> 289 {{{ data.tags.replace( /-/g, ' ' ) }}} 290 </p> 291 <# } #> 292 </div> 265 293 </div> 266 294 267 <div class="theme-info"> 268 <# if ( data.active ) { #> 269 <span class="current-label"><?php _e( 'Current Theme' ); ?></span> 270 <# } #> 271 <h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{{ data.version }}}' ); ?></span></h3> 272 <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></h4> 273 274 <# if ( data.hasUpdate ) { #> 275 <div class="theme-update-message"> 276 <a class="theme-update"><?php _e( 'Update Available' ); ?></a> 277 <p>{{{ data.update }}}</p> 295 <div class="theme-actions"> 296 <div class="active-theme"> 297 <a href="{{{ data.actions.customize }}}" class="button button-primary hide-if-no-customize"><?php _e( 'Customize' ); ?></a> 298 <?php if ( current_theme_supports( 'menus' ) ) { ?> 299 <a class="button button-secondary" href="<?php echo admin_url( 'nav-menus.php' ); ?>"><?php _e( 'Menus' ); ?></a> 300 <?php } ?> 301 <?php if( current_theme_supports( 'widgets' ) ) { ?> 302 <a class="button button-secondary" href="<?php echo admin_url( 'widgets.php' ); ?>"><?php _e( 'Widgets' ); ?></a> 303 <?php } ?> 278 304 </div> 279 <# } #> 280 <p class="theme-description">{{{ data.description }}}</p> 281 282 <# if ( data.parent ) { #> 283 <p class="parent-theme"><?php printf( __( 'This is a child theme of <strong>%s</strong>.' ), '{{{ data.parent }}}' ); ?></p> 284 <# } #> 285 286 <# if ( data.tags ) { #> 287 <p class="theme-tags"> 288 <span><?php _e( 'Tags:' ); ?></span> 289 {{{ data.tags.replace( /-/g, ' ' ) }}} 290 </p> 305 <div class="inactive-theme"> 306 <# if ( data.actions.activate ) { #> 307 <a href="{{{ data.actions.activate }}}" class="button button-primary"><?php _e( 'Activate' ); ?></a> 308 <# } #> 309 <a href="{{{ data.actions.customize }}}" class="button button-secondary"><?php _e( 'Live Preview' ); ?></a> 310 </div> 311 312 <# if ( ! data.active && data.actions.delete ) { #> 313 <a href="{{{ data.actions.delete }}}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a> 291 314 <# } #> 292 315 </div> 293 316 </div> 294 295 <div class="theme-actions">296 <div class="active-theme">297 <a href="{{{ data.actions.customize }}}" class="button button-primary hide-if-no-customize"><?php _e( 'Customize' ); ?></a>298 <?php if ( current_theme_supports( 'menus' ) ) { ?>299 <a class="button button-secondary" href="<?php echo admin_url( 'nav-menus.php' ); ?>"><?php _e( 'Menus' ); ?></a>300 <?php } ?>301 <?php if( current_theme_supports( 'widgets' ) ) { ?>302 <a class="button button-secondary" href="<?php echo admin_url( 'widgets.php' ); ?>"><?php _e( 'Widgets' ); ?></a>303 <?php } ?>304 </div>305 <div class="inactive-theme">306 <# if ( data.actions.activate ) { #>307 <a href="{{{ data.actions.activate }}}" class="button button-primary"><?php _e( 'Activate' ); ?></a>308 <# } #>309 <a href="{{{ data.actions.customize }}}" class="button button-secondary"><?php _e( 'Live Preview' ); ?></a>310 </div>311 312 <# if ( ! data.active && data.actions.delete ) { #>313 <a href="{{{ data.actions.delete }}}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a>314 <# } #>315 </div>316 </div>317 317 </script> 318 318
Note: See TracChangeset
for help on using the changeset viewer.