备案信息优化

This commit is contained in:
Devil 2019-10-30 23:53:36 +08:00
parent e23321c88e
commit b5f70f9ea3
4 changed files with 23 additions and 4 deletions

View File

@ -300,6 +300,11 @@ class Common extends Controller
// 编辑器文件存放地址
$this->assign('editor_path_type', empty($this->user['id']) ? 'public' : 'user-'.$this->user['id']);
// 备案信息
$this->assign('home_site_icp', MyC('home_site_icp'));
$this->assign('home_site_security_record_name', MyC('home_site_security_record_name'));
$this->assign('home_site_security_record_url', MyC('home_site_security_record_url'));
}
/**

View File

@ -84,7 +84,8 @@
{{/if}}
</ul>
</div>
<!-- 页脚信息 -->
<div class="am-footer-miscs">
<div class="am-container">
<p class="powered">
@ -92,9 +93,22 @@
<span class="b">Shop</span><span class="o">XO</span>
</a> {{$Think.APPLICATION_VERSION}}
</p>
<p>
<a href="http://www.beian.miit.gov.cn/" target="_blank">{{:MyC('home_site_icp')}}</a>
</p>
{{if !empty($home_site_icp)}}
<p>
<a href="http://www.beian.miit.gov.cn/" target="_blank">
<img src="{{$attachment_host}}/static/common/images/beian-icp-icon.png" width="20" height="20" alt="ICP备案" />
{{$home_site_icp}}
</a>
</p>
{{/if}}
{{if !empty($home_site_security_record_name)}}
<p>
<a {{if empty($home_site_security_record_url)}}href="javascript:;"{{else /}}href="{{$home_site_security_record_url}}" target="_blank"{{/if}}>
<img src="{{$attachment_host}}/static/common/images/beian-gongan-icon.png" width="20" height="20" alt="公安备案" />
{{$home_site_security_record_name}}
</a>
</p>
{{/if}}
</div>
</div>
</footer>

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB