403Webshell
Server IP : 69.72.244.102  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : konzalta ( 1271)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/cwd/wp-content/plugins/master-addons/inc/controls/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/cwd/wp-content/plugins/master-addons/inc/controls/choose-text.php
<?php

namespace MasterAddons\Inc\Controls;

use Elementor\Control_Choose;

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly.
}


/**
 * Addon choose text control.
 *
 * Customized Elementor `choose` control for with titles instead of icons.
 * Displays radio buttons styled as groups of buttons with title
 * for each option.
 */
class JLTMA_Control_Choose_Text extends Control_Choose
{
    public function get_type()
    {
        return 'jltma-choose-text';
    }

    /**
     * Render control output in the editor.
     *
     * Used to generate the control HTML in the editor using Underscore JS template.
     * The variables for the class are available using `data` JS object.
     */
    public function content_template()
    {
        $control_uid = $this->get_control_uid('{{ value }}');
?>
        <div class="elementor-control-field">
            <label class="elementor-control-title">{{{ data.label }}}</label>
            <div class="elementor-control-input-wrapper elementor-control-unit-5">
                <div class="elementor-choices">
                    <# _.each( data.options, function( option, value ) { var title=option, description=tooltip=tooltipClass='' ; if ( _.isObject( option ) ) { title=option.title; description=option.description; if ( _.isEmpty( description ) ) { description=title; } tooltipClass=' tooltip-target' ; tooltip=' data-tooltip="' + description + '"' ; } #>
                        <input id="<?php echo esc_attr($control_uid); ?>" type="radio" name="elementor-choose-{{ data.name }}-{{ data._cid }}" value="{{ value }}">
                        <label class="elementor-choices-label{{tooltipClass}}" for="<?php echo esc_attr($control_uid); ?>" {{{ tooltip }}} title="{{ title }}">
                            <span>{{{ title }}}</span>
                        </label>
                        <# } ); #>
                </div>
            </div>
        </div>
        <# if ( data.description ) { #>
            <div class="elementor-control-field-description">{{{ data.description }}}</div>
            <# } #>
        <?php
    }

    /**
     * Get control default settings.
     *
     * Retrieve the default settings of the control. Used to return the
     * default settings while initializing the control.
     *
     * @return array Control default settings.
     */
    protected function get_default_settings()
    {
        $parent_settings = parent::get_default_settings();

        $control_settings = array(
            'toggle' => false,
            'label_block' => true,
        );

        return array_merge($parent_settings, $control_settings);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit