Skip to content

Commit f4f58ce

Browse files
committed
20230424
增加公安备案
1 parent 85b141b commit f4f58ce

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

footer.php

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
<?php
22
/*
33
* @Theme Name:WebStack
4-
* @Theme URI:https://www.iotheme.cn/
4+
* @Theme URI:https://github.com/owen0o0/WebStack
55
* @Author: iowen
66
* @Author URI: https://www.iowen.cn/
77
* @Date: 2019-02-22 21:26:02
88
* @LastEditors: iowen
9-
* @LastEditTime: 2023-02-20 21:30:14
9+
* @LastEditTime: 2023-04-24 00:42:32
1010
* @FilePath: \WebStack\footer.php
1111
* @Description:
1212
*/
13-
if ( ! defined( 'ABSPATH' ) ) { exit; }?>
13+
if ( ! defined( 'ABSPATH' ) ) { exit; }
14+
$_icp = '';
15+
if(io_get_option('icp')){
16+
$_icp .= '<a href="https://beian.miit.gov.cn/" target="_blank" rel="link noopener">' . io_get_option('icp') . '</a>&nbsp;';
17+
}
18+
if ($police_icp = io_get_option('police_icp')) {
19+
if (preg_match('/\d+/', $police_icp, $arr)) {
20+
$_icp .= ' <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' . $arr[0] . '" target="_blank" class="'.$class.'" rel="noopener">' . $police_icp . '</a>&nbsp;';
21+
}
22+
}
23+
?>
1424
<footer class="main-footer sticky footer-type-1">
1525
<div class="go-up">
1626
<a href="#" rel="go-top">
@@ -20,8 +30,8 @@
2030
<div class="footer-inner">
2131
<!---请保留版权说明,谢谢---->
2232
<div class="footer-text">
23-
Copyright © <?php echo date('Y') ?> <?php bloginfo('name'); ?> <?php if(io_get_option('icp')) echo '<a href="https://beian.miit.gov.cn/" target="_blank" rel="link noopener">' . io_get_option('icp') . '</a>'?>
24-
&nbsp;&nbsp;Design by <a href="http://webstack.cc" target="_blank"><strong>Webstack</strong></a>&nbsp;&nbsp;Modify by <a href="https://www.iotheme.cn" target="_blank"><strong>一为</strong></a>
33+
Copyright © <?php echo date('Y') ?> <?php bloginfo('name'); ?> <?php echo $_icp ?>
34+
&nbsp;&nbsp;Design by <a href="https://github.com/WebStackPage/WebStackPage.github.io" target="_blank"><strong>Webstack</strong></a>&nbsp;&nbsp;Modify by <a href="https://github.com/owen0o0/WebStack" target="_blank"><strong>iowen</strong></a>
2535
</div>
2636
<!---请保留版权说明,谢谢---->
2737
</div>
@@ -46,10 +56,9 @@
4656
$(document).on('click', '.has-sub', function(){
4757
var _this = $(this)
4858
if(!$(this).hasClass('expanded')) {
49-
setTimeout(function(){
59+
setTimeout(function(){
5060
_this.find('ul').attr("style","")
51-
}, 300);
52-
61+
}, 300);
5362
} else {
5463
$('.has-sub ul').each(function(id,ele){
5564
var _that = $(this)

inc/frame/config/framework.config.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @Author URI: https://www.iowen.cn/
77
* @Date: 2019-02-22 21:26:02
88
* @LastEditors: iowen
9-
* @LastEditTime: 2023-02-20 21:19:10
9+
* @LastEditTime: 2023-04-24 00:37:18
1010
* @FilePath: \WebStack\inc\frame\config\framework.config.php
1111
* @Description:
1212
*/
@@ -226,6 +226,11 @@
226226
'type' => 'text',
227227
'title' => '备案号',
228228
),
229+
array(
230+
'id' => 'police_icp',
231+
'type' => 'text',
232+
'title' => '公安备案号',
233+
),
229234
array(
230235
'id' => 'lazyload',
231236
'type' => 'switcher',

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Theme Name:WebStack
33
Theme URI:https://www.iotheme.cn
44
Description:wordpress 导航主题!官方网站:<a href="https://www.iotheme.cn">一为主题</a>,</br><a href="https://www.iotheme.cn/store/onenav.html">升级到最新的OneNav导航主题</a>,体验更多功能
5-
Version:1.1822
5+
Version:1.1824
66
Requires at least: 5.4
77
Tested up to: 5.8
88
Requires PHP: 5.6

0 commit comments

Comments
 (0)