| Server IP : 27.254.86.99 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux wp1.hostneverdie.com 4.18.0-553.46.1.lve.el8.x86_64 #1 SMP Wed Apr 2 11:16:45 UTC 2025 x86_64 User : qtccargo ( 1078) PHP Version : 8.2.29 Disable Function : apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd,exec, fp, fput, highlight_file, ini_alter, ini_restore, inject_code, passthru,phpAds_remoteInfo, phpAds_XmlRpc,phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid,posix_setuid, posix_setuid, posix_uname,proc_open,proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,pcntl_exec,virtual,suexec,dbmopen,dl,disk_free_space,diskfreespace,leak MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/qtccargo/domains/iamumbrella.com/public_html/wp-content/themes/soledad/js/ |
Upload File : |
/*global jQuery, document, penci_upload, formfield:true, preview:true, tb_show, window, imgurl:true, tb_remove, $relid:true*/
/*
This is the uploader for wordpress starting from version 3.5
*/
jQuery(document).ready(function(){
jQuery(".penci-opts-upload").click( function( event ) {
var activeFileUploadContext = jQuery(this).parent();
var relid = jQuery(this).attr('rel-id');
var $that = jQuery(this);
var elementID = jQuery(this).attr('id');
event.preventDefault();
// If the media frame already exists, reopen it.
/*if ( typeof(custom_file_frame)!=="undefined" ) {
custom_file_frame.open();
return;
}*/
// if its not null, its broking custom_file_frame's onselect "activeFileUploadContext"
custom_file_frame = null;
// Create the media frame.
custom_file_frame = wp.media.frames.customHeader = wp.media({
// Set the title of the modal.
title: jQuery(this).data("choose"),
// Tell the modal to show only images. Ignore if want ALL
library: {
type: 'image'
},
// Customize the submit button.
button: {
// Set the text of the button.
text: jQuery(this).data("update")
}
});
custom_file_frame.on( "select", function() {
// Grab the selected attachment.
var attachment = custom_file_frame.state().get("selection").first();
// Update value of the targetfield input with the attachment url.
jQuery('.penci-opts-screenshot',activeFileUploadContext).attr('src', attachment.attributes.url);
jQuery('#' + relid ).val(attachment.attributes.url).trigger('change');
jQuery('.penci-opts-upload',activeFileUploadContext).hide();
jQuery('.penci-opts-screenshot',activeFileUploadContext).show();
jQuery('.penci-opts-upload-remove',activeFileUploadContext).show();
toggleParallaxOption();
});
custom_file_frame.open();
});
jQuery(".penci-opts-upload-remove").click( function( event ) {
var activeFileUploadContext = jQuery(this).parent();
var relid = jQuery(this).attr('rel-id');
event.preventDefault();
jQuery('#' + relid).val('');
jQuery(this).prev().fadeIn('slow');
jQuery('.penci-opts-screenshot',activeFileUploadContext).fadeOut('slow');
jQuery(this).fadeOut('slow');
toggleParallaxOption();
});
//media upload
jQuery(".penci-opts-media-upload").click( function( event ) {
var activeFileUploadContext = jQuery(this).parent();
var relid = jQuery(this).attr('rel-id');
event.preventDefault();
// If the media frame already exists, reopen it.
/*if ( typeof(custom_file_frame)!=="undefined" ) {
custom_file_frame.open();
return;
}*/
// if its not null, its broking custom_file_frame's onselect "activeFileUploadContext"
custom_file_frame = null;
// Create the media frame.
custom_file_frame = wp.media.frames.customHeader = wp.media({
// Set the title of the modal.
title: jQuery(this).data("choose"),
// Tell the modal to show only images. Ignore if want ALL
library: {
type: 'video'
},
// Customize the submit button.
button: {
// Set the text of the button.
text: jQuery(this).data("update")
}
});
custom_file_frame.on( "select", function() {
// Grab the selected attachment.
var attachment = custom_file_frame.state().get("selection").first();
// Update value of the targetfield input with the attachment url.
jQuery('#' + relid ).val(attachment.attributes.url).trigger('change');
jQuery('#_nectar_video_embed').trigger('keyup');
jQuery('.penci-opts-media-upload',activeFileUploadContext).hide();
jQuery('.penci-opts-upload-media-remove',activeFileUploadContext).show();
});
custom_file_frame.open();
});
jQuery(".penci-opts-upload-media-remove").click( function( event ) {
var activeFileUploadContext = jQuery(this).parent();
var relid = jQuery(this).attr('rel-id');
event.preventDefault();
jQuery('#' + relid).val('');
jQuery(this).prev().fadeIn('slow');
jQuery('.penci-opts-screenshot',activeFileUploadContext).fadeOut('slow');
jQuery(this).fadeOut('slow');
});
//only show parallax when using bg image
function toggleParallaxOption(){
if(jQuery('#_nectar_header_bg').length > 0){
if(jQuery('#_nectar_header_bg').attr('value').length > 0 || jQuery('#_nectar_header_bg_color').length > 0 && jQuery('#_nectar_header_bg_color').attr('value').length > 0){
jQuery('#_nectar_header_parallax').parents('tr').show();
} else {
jQuery('#_nectar_header_parallax').parents('tr').hide();
jQuery('#_nectar_header_parallax').prop('checked', false);
}
}
}
});