Browse Source

add config for qr image

master
filesite 3 months ago
parent
commit
5e114c4da8
  1. 2
      conf/app.php
  2. 2
      themes/beauty/views/layout/main.php
  3. 2
      themes/beauty/views/layout/player.php

2
conf/app.php

@ -57,6 +57,8 @@ $configs = array( @@ -57,6 +57,8 @@ $configs = array(
'enableSmallImage' => true, //列表页面是否开启缩略图,true 为显示缩略图,false 则显示原图
'enableSmallImageForWan' => false, //外网使用时,点击图片打开fancybox时是否显示缩略图:true 显示缩略图, false 则显示原图
'showQRImageInFooter' => true, //在网页底部显示当前网址二维码
/*
//视频皮肤配置
'videoblog' => array(

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

@ -32,10 +32,12 @@ require_once __DIR__ . '/../../../../plugins/Html.php'; @@ -32,10 +32,12 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
<!-- 尾部网站信息 -->
<footer class="web_info vercenter">
<?php if (!empty(FSC::$app['config']['showQRImageInFooter']) && FSC::$app['config']['showQRImageInFooter'] !== 'false') { ?>
<div class="qrcode text-center">
<p>用手机扫码打开</p>
<div id="qrimg"></div>
</div>
<?php } ?>
<p class="copyright">
<?php
if (!empty($viewData['copyright'])) {

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

@ -29,10 +29,12 @@ require_once __DIR__ . '/../../../../plugins/Html.php'; @@ -29,10 +29,12 @@ require_once __DIR__ . '/../../../../plugins/Html.php';
<!-- 尾部网站信息 -->
<footer class="web_info vercenter">
<?php if (!empty(FSC::$app['config']['showQRImageInFooter']) && FSC::$app['config']['showQRImageInFooter'] !== 'false') { ?>
<div class="qrcode text-center">
<p>用手机扫码打开</p>
<div id="qrimg"></div>
</div>
<?php } ?>
<p class="copyright">
<?php
if (!empty($viewData['copyright'])) {

Loading…
Cancel
Save