HEX
Server: LiteSpeed
System: Linux dal1.hostclusters.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User: vslw (1496)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/vslw/public_html/wp-content/themes/soledad/js/admin-gallery-new.js
/**
 * Custom Gallery Setting
 */
( function( $ ) {
	var media = wp.media;

	// Wrap the render() function to append controls
	media.view.Settings.Gallery = media.view.Settings.Gallery.extend({
		render: function() {
			media.view.Settings.prototype.render.apply( this, arguments );

			// Append the custom template
			this.$el.append( media.template( 'penci-custom-gallery-options' ) );

			// Save the setting
			media.gallery.defaults.type = 'justified';
			this.update.apply( this, ['type'] );
			return this;
		}
	} );
} )( jQuery );