Ticket #25962: 25962.1.diff
File 25962.1.diff, 1.9 KB (added by , 11 years ago) |
---|
-
wp-admin/js/theme.js
61 61 var view, 62 62 self = this; 63 63 64 // Don't render the search if there is only one theme 65 if ( this.collection.length === 1 ) { 66 return; 67 } 68 64 69 view = new themes.view.Search({ collection: self.collection }); 65 70 66 71 // Render and append after screen title … … 408 413 // Clear the DOM, please 409 414 this.$el.html( '' ); 410 415 416 // If the user doesn't have switch capabilities 417 // or there is only one theme in the collection 418 // render the detailed view of the active theme 419 if ( this.collection.length === 1 ) { 420 421 // Constructs the view 422 this.singleTheme = new themes.view.Details({ 423 model: this.collection.models[0] 424 }); 425 426 // Render and apply a 'single-theme' class to our container 427 this.singleTheme.render(); 428 this.$el.addClass( 'single-theme' ); 429 this.$el.append( this.singleTheme.el ); 430 } 431 411 432 // Generate the themes 412 433 // Using page instance 413 434 this.renderThemes( this.parent.page ); -
wp-admin/css/wp-admin.css
7052 7052 .theme-overlay .parent-theme strong { 7053 7053 font-weight: 700; 7054 7054 } 7055 /** 7056 * Single Theme Mode 7057 * Displays detailed view inline when a user has no switch capabilities 7058 */ 7059 .single-theme .theme-overlay .theme-backdrop, 7060 .single-theme .theme-overlay .theme-header, 7061 .single-theme .theme { 7062 display: none; 7063 } 7064 .single-theme .theme-overlay .theme-wrap { 7065 clear: both; 7066 position: static; 7067 } 7068 .single-theme .theme-overlay .theme-about { 7069 padding: 30px; 7070 position: static; 7071 } 7072 .single-theme .theme-overlay .theme-actions { 7073 position: static; 7074 } 7055 7075 7056 7076 /** 7057 7077 * Basic Responsive structure...