mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
Fix #29
This commit is contained in:
parent
c744e3b1af
commit
417eb257d0
@ -30,7 +30,12 @@ if ( akina_option('toggle-menu') == 'no') { ?>
|
||||
<?php } // comments ?>
|
||||
<?php
|
||||
|
||||
$imgurl = akina_option('cover_img');
|
||||
if (akina_option('cover_img')) {
|
||||
$imgurl = akina_option('cover_img');
|
||||
} else {
|
||||
$imgurl = 'https://sakura.2heng.xin/wp-content/themes/Sakura/cover/index.php';
|
||||
}
|
||||
|
||||
|
||||
$image_api = 'background-image: url("'.$imgurl.'");';
|
||||
$bg_style = akina_option('focus_height') ? 'background-position: center center;background-attachment: inherit;' : '';
|
||||
|
@ -356,7 +356,7 @@ function optionsframework_options() {
|
||||
'name' => __('封面图', 'options_framework_theme'),
|
||||
'desc' => __('此处留空则使用内置API(将需要随机展示的图片放入 /cover/gallery/ 目录)', 'options_framework_theme'),
|
||||
'id' => 'cover_img',
|
||||
'std' => get_site_url()."/wp-content/themes/Sakura/cover/index.php",
|
||||
'std' => '',
|
||||
'type' => 'upload');
|
||||
|
||||
$options[] = array(
|
||||
|
Loading…
Reference in New Issue
Block a user