|
1 | 1 | <?php |
2 | 2 | /* |
3 | 3 | * @Theme Name:WebStack |
4 | | - * @Theme URI:https://www.iotheme.cn/ |
| 4 | + * @Theme URI:https://github.com/owen0o0/WebStack |
5 | 5 | * @Author: iowen |
6 | 6 | * @Author URI: https://www.iowen.cn/ |
7 | 7 | * @Date: 2019-02-22 21:26:02 |
8 | 8 | * @LastEditors: iowen |
9 | | - * @LastEditTime: 2023-02-20 21:30:14 |
| 9 | + * @LastEditTime: 2023-04-24 00:42:32 |
10 | 10 | * @FilePath: \WebStack\footer.php |
11 | 11 | * @Description: |
12 | 12 | */ |
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> '; |
| 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> '; |
| 21 | + } |
| 22 | +} |
| 23 | +?> |
14 | 24 | <footer class="main-footer sticky footer-type-1"> |
15 | 25 | <div class="go-up"> |
16 | 26 | <a href="#" rel="go-top"> |
|
20 | 30 | <div class="footer-inner"> |
21 | 31 | <!---请保留版权说明,谢谢----> |
22 | 32 | <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 | | - Design by <a href="http://webstack.cc" target="_blank"><strong>Webstack</strong></a> 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 | + Design by <a href="https://github.com/WebStackPage/WebStackPage.github.io" target="_blank"><strong>Webstack</strong></a> Modify by <a href="https://github.com/owen0o0/WebStack" target="_blank"><strong>iowen</strong></a> |
25 | 35 | </div> |
26 | 36 | <!---请保留版权说明,谢谢----> |
27 | 37 | </div> |
|
46 | 56 | $(document).on('click', '.has-sub', function(){ |
47 | 57 | var _this = $(this) |
48 | 58 | if(!$(this).hasClass('expanded')) { |
49 | | - setTimeout(function(){ |
| 59 | + setTimeout(function(){ |
50 | 60 | _this.find('ul').attr("style","") |
51 | | - }, 300); |
52 | | - |
| 61 | + }, 300); |
53 | 62 | } else { |
54 | 63 | $('.has-sub ul').each(function(id,ele){ |
55 | 64 | var _that = $(this) |
|
0 commit comments