📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: submissions.js
import domReady from '@wordpress/dom-ready'; import { unmountComponentAtNode, createElement, render, } from '@wordpress/element'; import { TriggerEmailActionComponent, TriggerBulkExportComponent, } from './components'; import { globalParams, triggerEmailActionsParams, bulkExportParams, } from './params'; domReady( function() { const selectTopElement = document.querySelector( '#bulk-action-selector-top' ) !== null ? document.querySelector( '#bulk-action-selector-top' ) : 0, selectBottomElement = document.querySelector( '#bulk-action-selector-bottom' ) !== null ? document.querySelector( '#bulk-action-selector-bottom' ) : 0; //Check if a Form Bulk action selector exists if ( selectTopElement.length > 0 && selectBottomElement.length > 0 ) { //Re-Trigger Email Actions feature openComponentOnSelection( selectTopElement, selectBottomElement ); interceptFormSubmit(); } //Bulk Export Accross Forms feature bulkExportAccrossForms(); } ); const generateKey = () => { return `nf_${ new Date().getTime() }`; } //Open Component during Selection const openComponentOnSelection = ( selectTopElement, selectBottomElement ) => { //Add a change event listener on the selectors [ selectTopElement, selectBottomElement ].forEach( ( el ) => { const position = el.id.includes( 'top' ) ? jQuery( '.tablenav.top' ) : jQuery( '.tablenav.bottom' ); el.addEventListener( 'change', ( event ) => { if ( event.target.value === 'trigger-email-action' ) { //Open Email Actions component triggerEmailAction( position ); } } ); } ); }; //Intercept Form Submission const interceptFormSubmit = () => { //Intercept submission of bulk actions jQuery( '#posts-filter' ).on( 'submit', function( e ) { //Check the Form submitter and value of the bulk select field const doaction1 = jQuery( '#bulk-action-selector-top' )[ 0 ].value === 'trigger-email-action' && e.originalEvent.submitter.id === 'doaction'; const doaction2 = jQuery( '#bulk-action-selector-bottom' )[ 0 ].value === 'trigger-email-action' && e.originalEvent.submitter.id === 'doaction2'; if ( doaction1 || doaction2 ) { //Stop PHP redirection process e.preventDefault(); const position = doaction1 ? jQuery( '.tablenav.top' ) : jQuery( '.tablenav.bottom' ); triggerEmailAction( position ); } } ); }; //Component for trigger Email Action feature const triggerEmailAction = ( position ) => { const compDetect = document.getElementById( 'nf-trigger-emails-container' ); if ( compDetect !== null ) { unmountComponentAtNode( compDetect ); } //Set props const params = { globalParams, triggerEmailActionsParams, key: generateKey(), fetchController: new AbortController() }; //Create new element on the NF submissions page to trigger Email actions const triggerEmailActionsContainer = document.createElement( 'div' ); triggerEmailActionsContainer.id = 'nf-trigger-emails-container'; position.after( triggerEmailActionsContainer ); //Render component in the new element created const triggerEmailActionsElement = createElement( TriggerEmailActionComponent, params ); render( triggerEmailActionsElement, document.getElementById( 'nf-trigger-emails-container' ) ); }; //Component for Bulk Export Accross Forms feature const bulkExportAccrossForms = () => { //Set props const params = { key: generateKey(), globalParams, bulkExportParams, }; const pos = jQuery( '.tablenav.bottom .actions' ); const bulkExportContainer = document.createElement( 'div' ); bulkExportContainer.id = 'nf-bulk-export-container'; pos.after( bulkExportContainer ); //Render component in the new element created const bulkExportElement = createElement( TriggerBulkExportComponent, params ); render( bulkExportElement, document.getElementById( 'nf-bulk-export-container' ) ); };
Save