| Server IP : 119.59.104.26 / Your IP : 216.73.217.55 Web Server : Apache/2 System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64 User : com12370 ( 1517) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/com12370/public_html/wp-content/themes/titan/admin/post/source/js/ |
Upload File : |
(function($, window, document, undefined)
{
"user strict";
$(document).ready(function()
{
var $wilDis = "", $getChecked = "";
$("#post-formats-select .post-format").change(function()
{
$getChecked = $("#post-formats-select .post-format:checked").val();
pi_switch_header_options($getChecked);
});
$getChecked = $("#post-formats-select .post-format:checked").val();
pi_switch_header_options($getChecked);
function pi_switch_header_options($getChecked)
{
$("#pi-post-head-options").fadeIn();
switch ( $getChecked )
{
case 'gallery':
$wilDis = ".zone-of-slideshow";
break;
case 'quote':
$wilDis = ".zone-of-quote";
break;
case 'video':
$wilDis = ".zone-of-youtube";
break;
case 'audio':
$wilDis = ".zone-of-audio";
break;
case 'image':
$wilDis = ".zone-of-image";
break;
case 'link':
$wilDis = ".zone-of-link";
break;
default:
$("#pi-post-head-options").fadeOut();
$wilDis = ".zone-of-standard";
break;
}
$("#pi-header-type .form-group").fadeOut();
$("#pi-header-type "+ $wilDis).fadeIn();
}
$("#pi-update-map-cache").click(function()
{
var _nonce = $("#pi_update_map_cache_nonce_field").val();
var $alert = $(this).prev();
$alert.html("Updating");
$.ajax({
type: "POST",
data: {action: "pi_update_map_cache", nonce: _nonce},
url: ajaxurl,
success: function(res)
{
$alert.removeClass("hidden");
if ( res ="success" )
{
$alert.html("Updated");
}else{
$alert.html("Failer! Your folder don't allow write file.");
}
}
})
return false;
})
})
})(jQuery, window, document);