ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-19 17:27:11
Editing: Button.js
Cancel
Save Changes
import React from 'react'; import Tooltip from './Tooltip'; import '../../css/admin/shared/button.scss'; const Button = (props) => { let buttonDisabled = false; let tooltipContent = props.help ? props.help : false; let className = 'button button-compact'; // Check if there are requirements. if ( props.required ) { if ( ! eafl_admin.addons.hasOwnProperty( props.required ) || true !== eafl_admin.addons[ props.required ] ) { buttonDisabled = true; const capitalized = props.required[0].toUpperCase() + props.required.substring(1); tooltipContent = `Easy Affiliate Links ${capitalized} Bundle Only`; } } // Extra class if primary button. if ( props.isPrimary ) { className += ' button-primary'; } // Extra class if disabled. Don't actually use disabled or tooltip won't work. if ( buttonDisabled ) { className += ' eafl-button-required'; } return ( <Tooltip content={ tooltipContent }> <button className={ className } tabIndex={ props.disableTab ? '-1' : null } onClick={ buttonDisabled ? () => { if ( confirm( 'Want to learn more about the version required for this feature?' ) ) { window.open( 'https://bootstrapped.ventures/easy-affiliate-links/get-the-plugin/', '_blank' ); } } : props.onClick } > { props.children } </button> </Tooltip> ); } export default Button;
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete