403Webshell
Server IP : 192.64.118.117  /  Your IP : 3.16.1.194
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/home/thecgapy/mcprintingandpromotions.com/wp-content/themes/open-shop/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/thecgapy/mcprintingandpromotions.com/wp-content/themes/open-shop/js/widget.js
(function ($){
    function media_upload(button_class){
        var _custom_media = true,
        _orig_send_attachment = wp.media.editor.send.attachment;
        $('body').on('click', button_class, function(e) {

            var button_id ='#'+$(this).attr('id');

            var self = $(button_id);

            var send_attachment_bkp = wp.media.editor.send.attachment;

            var button = $(button_id);

            var id = button.attr('id').replace('_button', '');

            _custom_media = true;

            wp.media.editor.send.attachment = function(props, attachment){

                if ( _custom_media  ) {

                    $('.custom_media_id').val(attachment.id);

                    $('.custom_media_url').val(attachment.url);

                    $('.custom_media_image').attr('src',attachment.url).css('display','block');

                } else {

                    return _orig_send_attachment.apply( button_id, [props, attachment] );

                }

            }

            wp.media.editor.open(button);

                return false;

        });

    }
    media_upload('.custom_media_button.button');
     $( function(){
        $('#widgets-right .color-picker').each( function(){
            if ( ! $(this).data('wpWpColorPicker') ){
                $(this).wpColorPicker( {
                    change: _.throttle(function(){
                        $(this).trigger( 'change' );
                    }, 3000)
                });
            }
        });
    });
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit