Skip to content

Commit

Permalink
🔨 修复 备案号只存在一个时缺失间隔符问题 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaoo authored Dec 5, 2023
1 parent 7721545 commit c31d004
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @author Bhao
* @link https://dwd.moe/
* @date 2023-12-04
* @date 2023-12-05
*/

if (!defined('__TYPECHO_ROOT_DIR__')) exit;
Expand Down Expand Up @@ -450,6 +450,8 @@ function Footer(){
}
if(($beian && $gabeian) || ($beian && $moebei) || ($gabeian && $moebei) || ($beian && $gabeian && $moebei)){
$content .= '<br><br>';
} elseif ($beian || $gabeian || $moebei) {
$content .= '';
}
$content .= ($moebei) ? '<span><a href="https://icp.gov.moe" target="_blank">萌ICP备</a><a href="https://icp.gov.moe/?keyword='.$num2.'" target="_blank">'.$num2.'</a>号</span>' : '';
$content .= ($beian) ? '<span><a href="//beian.miit.gov.cn">'.Helper::options()->beian.'</a></span>' : '';
Expand Down

0 comments on commit c31d004

Please sign in to comment.