Merge pull request #71 from mashirozx/origin

fix logo on login page & homepage cover title
This commit is contained in:
Mashiro 2019-04-21 03:55:51 +08:00 committed by GitHub
commit 002ace49f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 15 deletions

View File

@ -768,7 +768,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').'); \');
$(\'h1 a\').attr(\'style\',\'background-image: url('.akina_option('logo_img').'); \');
$(".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

@ -6,7 +6,9 @@
<figure id="centerbg" class="centerbg">
<?php if ( !akina_option('focus_infos') ){ ?>
<div class="focusinfo">
<?php if (akina_option('focus_logo')):?>
<?php if (akina_option('focus_logo_text')):?>
<h1 class="center-text glitch is-glitching Ubuntu-font" data-text="<?php echo akina_option('focus_logo_text', ''); ?>"><?php echo akina_option('focus_logo_text', ''); ?></h1>
<?php elseif (akina_option('focus_logo')):?>
<div class="header-tou"><a href="<?php bloginfo('url');?>" ><img src="<?php echo akina_option('focus_logo', ''); ?>"></a></div>
<?php else :?>
<div class="header-tou" ><a href="<?php bloginfo('url');?>"><img src="<?php bloginfo('template_url'); ?>/images/avatar.jpg"></a></div>

View File

@ -140,6 +140,13 @@ function optionsframework_options() {
'id' => 'focus_logo',
'type' => 'upload');
$options[] = array(
'name' => __('文字版LOGO', 'options_framework_theme'),
'desc' => __('首页不显示上方的头像而是显示一段文字此处留空则使用上方的头像。文字建议不要过长16个字节左右为宜。', 'options_framework_theme'),
'id' => 'focus_logo_text',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('logo', 'options_framework_theme'),
'desc' => __('最佳高度尺寸40px。', 'options_framework_theme'),
@ -201,7 +208,7 @@ function optionsframework_options() {
$options[] = array(
'name' => __('首页文章风格', 'akina'),
'id' => 'post_list_style',
'std' => "standard",
'std' => "imageflow",
'type' => "radio",
'options' => array(
'standard' => __('标准', ''),
@ -235,13 +242,6 @@ function optionsframework_options() {
'no' => __('关闭', '')
));
$options[] = array(
'name' => __('评论信息栏宽度调整', 'options_framework_theme'),
'desc' => __('不知道为什么有人老会搞出问题求你们不要用那些莫名其妙的插件。。如果出问题了在这里调整输入一个介于0到100的数字以调整宽度以免出现框框换行的情况正常情况下97左右比较正常吧。。如果本来就显示正常的请务必留空', 'options_framework_theme'),
'id' => 'comment_info_box_width',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('文章末尾显示作者信息?', 'options_framework_theme'),
'desc' => __('勾选启用', 'options_framework_theme'),

View File

@ -3963,7 +3963,7 @@ li.feature-2 {
box-sizing: initial;
white-space: nowrap
}
/*
.header-info:before {
content: "";
position: absolute;
@ -3974,7 +3974,7 @@ li.feature-2 {
border-style: solid;
border-color: transparent transparent rgba(0, 0, 0, .5) transparent
}
*/
.header-info p {
margin: 0;
font-family: Ubuntu, sans-serif;
@ -8324,9 +8324,13 @@ td.hljs-ln-numbers {
font-size: 15px;
font-weight: 700
}
.aplayer .aplayer-lrc{
pointer-events: none;
background:transparent !important
}
.aplayer-lrc {
pointer-events: none
#aplayer-float{
background:transparent !important
}
/*cover video*/
@ -8349,3 +8353,4 @@ td.hljs-ln-numbers {
background: #ddd;
color: black;
}