Browse Source

improve config

master
filesite 4 months ago
parent
commit
d6e004d434
  1. 2
      conf/app.php
  2. 2
      themes/beauty/views/layout/main.php

2
conf/app.php

@ -53,7 +53,7 @@ $configs = array(
'supportedVideoExts' => array('mp4', 'mov', 'm3u8'), 'supportedVideoExts' => array('mp4', 'mov', 'm3u8'),
'screenshot_start' => 1000, //视频播放页快照截取开始时间,单位:毫秒 'screenshot_start' => 1000, //视频播放页快照截取开始时间,单位:毫秒
'screenshot_expire_seconds' => 315360000, //视频封面图缓存3650天 'screenshot_expire_seconds' => 315360000, //视频封面图缓存3650天
'enableSmallImage' => true, //开启图片小尺寸缩略图 'enableSmallImage' => true, //开启图片小尺寸缩略图,设置 false 则关闭
/* /*
//视频皮肤配置 //视频皮肤配置

2
themes/beauty/views/layout/main.php

@ -102,7 +102,7 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
<script src="/js/video.min.js"></script> <script src="/js/video.min.js"></script>
<script src="/js/beauty.js?v<?= Html::getStaticFileVersion('beauty.js', 'js') ?>"></script> <script src="/js/beauty.js?v<?= Html::getStaticFileVersion('beauty.js', 'js') ?>"></script>
<script> <script>
<?php if (FSC::$app['config']['enableSmallImage'] == false) { <?php if (empty(FSC::$app['config']['enableSmallImage']) || FSC::$app['config']['enableSmallImage'] == 'false') {
echo <<<eof echo <<<eof
var disableSmallImage = true; var disableSmallImage = true;
eof; eof;

Loading…
Cancel
Save