HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.27.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 4 04:40:11 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/elrashedytravel/public_html/wp-content/themes/newscrunch/assets/js/widgets.js
jQuery(document).ready( function($) {
    // upload field
    $( document ).on( "click", ".newscrunch-media-upload", function(event) 
        {
            event.preventDefault();
            if ( frame ) {
                frame.open();
                return;
            }
            var _this = $(this), frame = wp.media({
                title: 'Select or Upload Image',
                button: {
                    text: 'Add Author Image'
                },
                multiple: false
            });
            frame.open();
            frame.on( 'select', function() {
                var attachment = frame.state().get('selection').first().toJSON();
                _this.siblings(".widefat").val( attachment.url ).trigger("change");
                _this.siblings('.newscrunch_auth_img').val(attachment.url);
                 _this.siblings('.newscrunch-widget-img').attr( "src", attachment.url );
            })
        }); 
});