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( @@ -53,7 +53,7 @@ $configs = array(
'supportedVideoExts' => array('mp4', 'mov', 'm3u8'),
'screenshot_start' => 1000, //视频播放页快照截取开始时间,单位:毫秒
'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'; @@ -102,7 +102,7 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
<script src="/js/video.min.js"></script>
<script src="/js/beauty.js?v<?= Html::getStaticFileVersion('beauty.js', 'js') ?>"></script>
<script>
<?php if (FSC::$app['config']['enableSmallImage'] == false) {
<?php if (empty(FSC::$app['config']['enableSmallImage']) || FSC::$app['config']['enableSmallImage'] == 'false') {
echo <<<eof
var disableSmallImage = true;
eof;

Loading…
Cancel
Save