pull/35/head
Mashiro 2019-01-02 11:26:10 +08:00
parent c0aa599016
commit daa223dcfe
2 changed files with 8 additions and 0 deletions

View File

@ -759,6 +759,7 @@ function custom_html() {
$(document).ready(function(){
$( \'<p><div id="verification-slider"><div id="slider"><div id="slider_bg"></div><span id="label">»</span><span id="labelTip">Slide to Verificate</span></div><input type="hidden" name="verification" value="verification" /></div><p>\' ).insertBefore( $( ".submit" ) );
$(\'form\').attr(\'onsubmit\',\'return verificationOK();\');
$(\'a\').attr(\'style\',\'background-image: url('.akina_option('logo_img').'); width: 130px; height: 130px;\');
$(".forgetmenot").replaceWith(\'<p class="forgetmenot">Remember Me<input name="rememberme" id="rememberme" value="forever" type="checkbox"><label for="rememberme" style="float: right;margin-top: 5px;transform: scale(2);margin-right: -10px;"></label></p>\');
});
</script>';

View File

@ -838,5 +838,12 @@ function optionsframework_options() {
'id' => 'login_bg',
'type' => 'upload');
$options[] = array(
'name' => __('后台登陆界面logo', 'options_framework_theme'),
'desc' => __('用于登录界面显示', 'options_framework_theme'),
'id' => 'logo_img',
'std' => $imagepath.'mashiro-logo-s.png',
'type' => 'upload');
return $options;
}