[
MAINHACK SHELL
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.js
( function ( $ ) { var AstraImages = { init: function () { if ( undefined != wp && wp.media ) { var $ = jQuery, oldMediaFramePost = wp.media.view.MediaFrame.Post, oldMediaFrameSelect = wp.media.view.MediaFrame.Select; wp.media.view.AstraAttachmentsBrowser = require( './frame.js' ); const pixabayFrame = { // Tab / Router browseRouter( routerView ) { oldMediaFrameSelect.prototype.browseRouter.apply( this, arguments ); routerView.set( { astraimages: { text: astraImages.title, priority: 70, }, } ); }, // Handlers bindHandlers() { if ( astraImages.is_elementor_editor ) { oldMediaFramePost.prototype.bindHandlers.apply( this, arguments ); } else { oldMediaFrameSelect.prototype.bindHandlers.apply( this, arguments ); } this.on( 'content:create:astraimages', this.astraimages, this ); }, /** * Render callback for the content region in the `browse` mode. * * @param {wp.media.controller.Region} contentRegion */ astraimages( contentRegion ) { const state = this.state(); // Browse our library of attachments. let thisView = new wp.media.view.AstraAttachmentsBrowser( { controller: this, model: state, AttachmentView: state.get( 'AttachmentView' ), } ); contentRegion.view = thisView; wp.media.view.AstraAttachmentsBrowser.object = thisView; setTimeout( function () { $( document ).trigger( 'ast-image__set-scope' ); }, 100 ); }, }; if ( astraImages.is_elementor_editor ) { wp.media.view.MediaFrame.Post = oldMediaFramePost.extend( pixabayFrame ); } else { wp.media.view.MediaFrame.Select = oldMediaFrameSelect.extend( pixabayFrame ); } } }, }; /** * Initialize AstraImages */ $( function () { AstraImages.init(); if ( astraImages.is_bb_active && astraImages.is_bb_editor ) { if ( undefined !== FLBuilder ) { if ( null !== FLBuilder._singlePhotoSelector ) { FLBuilder._singlePhotoSelector.on( 'open', function ( event ) { AstraImages.init(); } ); } } } } ); } )( jQuery );
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.82 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