Skip to content

Commit

Permalink
20230424
Browse files Browse the repository at this point in the history
增加公安备案
  • Loading branch information
owen0o0 committed Apr 23, 2023
1 parent 85b141b commit f4f58ce
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
25 changes: 17 additions & 8 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
<?php
/*
* @Theme Name:WebStack
* @Theme URI:https://www.iotheme.cn/
* @Theme URI:https://github.com/owen0o0/WebStack
* @Author: iowen
* @Author URI: https://www.iowen.cn/
* @Date: 2019-02-22 21:26:02
* @LastEditors: iowen
* @LastEditTime: 2023-02-20 21:30:14
* @LastEditTime: 2023-04-24 00:42:32
* @FilePath: \WebStack\footer.php
* @Description:
*/
if ( ! defined( 'ABSPATH' ) ) { exit; }?>
if ( ! defined( 'ABSPATH' ) ) { exit; }
$_icp = '';
if(io_get_option('icp')){
$_icp .= '<a href="https://beian.miit.gov.cn/" target="_blank" rel="link noopener">' . io_get_option('icp') . '</a>&nbsp;';
}
if ($police_icp = io_get_option('police_icp')) {
if (preg_match('/\d+/', $police_icp, $arr)) {
$_icp .= ' <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' . $arr[0] . '" target="_blank" class="'.$class.'" rel="noopener">' . $police_icp . '</a>&nbsp;';
}
}
?>
<footer class="main-footer sticky footer-type-1">
<div class="go-up">
<a href="#" rel="go-top">
Expand All @@ -20,8 +30,8 @@
<div class="footer-inner">
<!---请保留版权说明,谢谢---->
<div class="footer-text">
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>'?>
&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>
Copyright © <?php echo date('Y') ?> <?php bloginfo('name'); ?> <?php echo $_icp ?>
&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>
</div>
<!---请保留版权说明,谢谢---->
</div>
Expand All @@ -46,10 +56,9 @@
$(document).on('click', '.has-sub', function(){
var _this = $(this)
if(!$(this).hasClass('expanded')) {
setTimeout(function(){
setTimeout(function(){
_this.find('ul').attr("style","")
}, 300);

}, 300);
} else {
$('.has-sub ul').each(function(id,ele){
var _that = $(this)
Expand Down
7 changes: 6 additions & 1 deletion inc/frame/config/framework.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @Author URI: https://www.iowen.cn/
* @Date: 2019-02-22 21:26:02
* @LastEditors: iowen
* @LastEditTime: 2023-02-20 21:19:10
* @LastEditTime: 2023-04-24 00:37:18
* @FilePath: \WebStack\inc\frame\config\framework.config.php
* @Description:
*/
Expand Down Expand Up @@ -226,6 +226,11 @@
'type' => 'text',
'title' => '备案号',
),
array(
'id' => 'police_icp',
'type' => 'text',
'title' => '公安备案号',
),
array(
'id' => 'lazyload',
'type' => 'switcher',
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Theme Name:WebStack
Theme URI:https://www.iotheme.cn
Description:wordpress 导航主题!官方网站:<a href="https://www.iotheme.cn">一为主题</a>,</br><a href="https://www.iotheme.cn/store/onenav.html">升级到最新的OneNav导航主题</a>,体验更多功能
Version:1.1822
Version:1.1824
Requires at least: 5.4
Tested up to: 5.8
Requires PHP: 5.6
Expand Down

0 comments on commit f4f58ce

Please sign in to comment.