Player fixed mode support & some fix

pull/22/head v3.0.6
Mashiro 2018-06-26 15:43:54 +08:00
parent 6e29942122
commit cdd13c4784
5 changed files with 8443 additions and 4 deletions

View File

@ -128,6 +128,18 @@
</div>
</div>
<canvas id="night-mode-cover"></canvas>
<?php if (akina_option('playlist_id', '')): ?>
<div id="aplayer-float" style="z-index: 100;"
class="aplayer"
data-id="<?php echo akina_option('playlist_id', ''); ?>"
data-server="netease"
data-type="playlist"
data-fixed="true"
data-theme="orange">
</div>
<script src="https://cdn.jsdelivr.net/npm/meting@1.2/dist/Meting.min.js"></script>
<style>.skin-menu{left:auto;right:10px;}.changeSkin-gear{left:auto;right:5px;}</style>
<?php endif; ?>
<?php
if (akina_option('adobe_id_1', '')) {
$adobe = rand(0,2);

View File

@ -7,7 +7,7 @@
* @package Sakura
*/
define( 'SAKURA_VERSION', '3.0.5' );
define( 'SAKURA_VERSION', '3.0.6' );
//ini_set('display_errors', true);
//error_reporting(E_ALL);

View File

@ -43,6 +43,14 @@ $bg_style = akina_option('focus_height') ? 'background-position: center center;b
-o-animation: rotating 6s linear infinite;
animation: rotating 6s linear infinite;
}
<?php if(akina_option('comment_info_box_width', '')): ?>
.cmt-popup {
--widthA: <?php echo akina_option('comment_info_box_width', ''); ?>%;
--widthB: calc(var(--widthA) - 71px);
--widthC: calc(var(--widthB) / 3);
width: var(--widthC);
}
<?php endif;?>
</style>
<?php }
add_action('wp_head', 'customizer_css');

View File

@ -228,6 +228,13 @@ 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'),
@ -750,11 +757,18 @@ function optionsframework_options() {
$options[] = array(
'name' => __('关于', 'options_framework_theme'),
'desc' => __('Theme Sakura v3.0.5 | <a href="https://2heng.xin/theme-sakura/">主题说明</a> | <a href="https://github.com/mashirozx/Sakura/">源码</a>', 'options_framework_theme'),
'desc' => __('Theme Sakura v3.0.6 | <a href="https://2heng.xin/theme-sakura/">主题说明</a> | <a href="https://github.com/mashirozx/Sakura/">源码</a>', 'options_framework_theme'),
'id' => 'theme_intro',
'std' => '',
'type' => 'typography ');
$options[] = array(
'name' => __('页脚悬浮播放器', 'options_framework_theme'),
'desc' => __('如果不需要播放器留空即可。填写网易云音乐的「歌单」IDeghttps://music.163.com/#/playlist?id=2288037900的ID是2288037900', 'options_framework_theme'),
'id' => 'playlist_id',
'std' => '2288037900',
'type' => 'text');
$options[] = array(
'name' => __('Cookie 版本控制', 'options_framework_theme'),
'desc' => __('用于更新前端 cookie可使用任意字符串比如日期---2018/5/16', 'options_framework_theme'),

8409
style.css

File diff suppressed because one or more lines are too long