Remove screenshotGallery. see #25948.
Built from https://develop.svn.wordpress.org/trunk@26728 git-svn-id: http://core.svn.wordpress.org/trunk@26617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
342328521f
commit
32736c45ff
@ -339,25 +339,6 @@ themes.view.Details = wp.Backbone.View.extend({
|
|||||||
this.trigger( 'theme:collapse' );
|
this.trigger( 'theme:collapse' );
|
||||||
},
|
},
|
||||||
|
|
||||||
// Setups an image gallery using the theme screenshots supplied by a theme
|
|
||||||
screenshotGallery: function() {
|
|
||||||
var screenshots = $( '#theme-screenshots' ),
|
|
||||||
current, img;
|
|
||||||
|
|
||||||
screenshots.find( 'div.first' ).next().addClass( 'selected' );
|
|
||||||
|
|
||||||
// Clicking on a screenshot thumbnail drops it
|
|
||||||
// at the top of the stack in a larger size
|
|
||||||
screenshots.on( 'click', 'div.thumb', function() {
|
|
||||||
current = $( this );
|
|
||||||
img = $( this ).find( 'img' ).clone();
|
|
||||||
|
|
||||||
current.siblings( '.first' ).html( img );
|
|
||||||
current.siblings( '.selected' ).removeClass( 'selected' );
|
|
||||||
current.addClass( 'selected' );
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
// Confirmation dialoge for deleting a theme
|
// Confirmation dialoge for deleting a theme
|
||||||
deleteTheme: function() {
|
deleteTheme: function() {
|
||||||
return confirm( themes.data.settings.confirmDelete );
|
return confirm( themes.data.settings.confirmDelete );
|
||||||
@ -524,8 +505,6 @@ themes.view.Themes = wp.Backbone.View.extend({
|
|||||||
this.overlay.render();
|
this.overlay.render();
|
||||||
this.$el.append( this.overlay.el );
|
this.$el.append( this.overlay.el );
|
||||||
|
|
||||||
this.overlay.screenshotGallery();
|
|
||||||
|
|
||||||
// Bind to theme:next and theme:previous
|
// Bind to theme:next and theme:previous
|
||||||
// triggered by the arrow keys
|
// triggered by the arrow keys
|
||||||
//
|
//
|
||||||
@ -534,13 +513,11 @@ themes.view.Themes = wp.Backbone.View.extend({
|
|||||||
this.listenTo( this.overlay, 'theme:next', function() {
|
this.listenTo( this.overlay, 'theme:next', function() {
|
||||||
// Renders the next theme on the overlay
|
// Renders the next theme on the overlay
|
||||||
self.next( [ self.model.cid ] );
|
self.next( [ self.model.cid ] );
|
||||||
self.overlay.screenshotGallery();
|
|
||||||
|
|
||||||
})
|
})
|
||||||
.listenTo( this.overlay, 'theme:previous', function() {
|
.listenTo( this.overlay, 'theme:previous', function() {
|
||||||
// Renders the previous theme on the overlay
|
// Renders the previous theme on the overlay
|
||||||
self.previous( [ self.model.cid ] );
|
self.previous( [ self.model.cid ] );
|
||||||
self.overlay.screenshotGallery();
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
2
wp-admin/js/theme.min.js
vendored
2
wp-admin/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
@ -311,14 +311,9 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
|
|||||||
<div class="theme-about">
|
<div class="theme-about">
|
||||||
<div class="theme-screenshots">
|
<div class="theme-screenshots">
|
||||||
<# if ( data.screenshot[0] ) { #>
|
<# if ( data.screenshot[0] ) { #>
|
||||||
<div class="screenshot first"><img src="{{ data.screenshot[0] }}" alt="" /></div>
|
<div class="screenshot"><img src="{{ data.screenshot[0] }}" alt="" /></div>
|
||||||
<# if ( _.size( data.screenshot ) > 1 ) {
|
|
||||||
_.each ( data.screenshot, function( image ) {
|
|
||||||
#><div class="screenshot thumb"><img src="{{ image }}" alt="" /></div><#
|
|
||||||
});
|
|
||||||
} #>
|
|
||||||
<# } else { #>
|
<# } else { #>
|
||||||
<div class="screenshot first blank"></div>
|
<div class="screenshot blank"></div>
|
||||||
<# } #>
|
<# } #>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user