Skip to content

Commit

Permalink
新增公安备案的填写入口
Browse files Browse the repository at this point in the history
  • Loading branch information
zhheo committed Jan 8, 2025
1 parent fd25214 commit ae0f3b2
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
19 changes: 18 additions & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ table.alt tfoot {
@media screen and (max-width: 1280px) {

.panel {
padding: 3em 3em 1em 3em;
padding: 1em 3em 1em 3em;
}

.panel>.inner.split>div {
Expand Down Expand Up @@ -2442,6 +2442,23 @@ body.is-preload #main .thumb {
#footer .copyright {
color: #b5b5b5;
font-size: 15px;
display: flex;
align-items: center;
gap: 8px;
}

.copyright-info {
font-size: 14px;
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}

#footer .copyright .police {
display: flex;
align-items: center;
gap: 4px;
}

#footer .copyright a {
Expand Down
Binary file added assets/img/police.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ function themeConfig($form)
$form->addInput($xxweibo);
$xxgithub = new Typecho_Widget_Helper_Form_Element_Text('xxgithub', NULL, '', _t('GitHub'), _t('填写你的GitHub链接 http(s)://'));
$form->addInput($xxgithub);
$police = new Typecho_Widget_Helper_Form_Element_Text('police', NULL, '', _t('公安备案号'), _t('如果你在国内有公安备案,可在此处填写'));
$form->addInput($police);
$icp = new Typecho_Widget_Helper_Form_Element_Text('icp', NULL, '', _t('ICP备案号'), _t('如果你在国内有备案,可在此处填写'));
$form->addInput($icp);
$cnzz = new Typecho_Widget_Helper_Form_Element_Text('cnzz', NULL, '', _t('统计代码'), _t('cnzz或百度..统计代码。可在此处填写处'));
Expand Down
18 changes: 13 additions & 5 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,21 @@
</section>
<span style="color: #b5b5b5; font-size: 0.8em;">
<?php $this->options->cnzz() ?>
<p class="copyright">
&copy; 设计 ZHHEO & ZMKI 主题:<a href="https://github.com/zhheo/TimePlus" target="_blank" rel="noopener nofollow">TimePlus</a>.
<?php
if ($this->options->icp): ?>
<div class="copyright-info">
<span class="copyright">&copy; 设计 ZHHEO & ZMKI</span>
<span class="theme">主题:<a href="https://github.com/zhheo/TimePlus" target="_blank" rel="noopener nofollow">洪墨时光</a></span>
<?php if ($this->options->police): ?>
<span class="police">
<img src="<?php $this->options->themeUrl('assets/img/police.png'); ?>" alt="公安备案" style="vertical-align: middle; width: 14px;">
<a href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank" rel="noopener nofollow"><?php $this->options->police(); ?></a>
</span>
<?php endif; ?>
<?php if ($this->options->icp): ?>
<span class="icp">
<a href="http://beian.miit.gov.cn/" target="_blank" rel="noopener nofollow"><?php $this->options->icp(); ?></a>
</span>
<?php endif; ?>
</p>
</div>
</footer>
<script type="text/javascript">
function isInSight(el) {
Expand Down
2 changes: 2 additions & 0 deletions update.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ rsync -avz --progress --chmod=755 ./ [email protected]:/www/wwwroot/plog.zhheo
## 2.12
添加主题中文名
移除被issues误导而添加的换行判断
优化关于部分的样式
新增公安备案的填写入口

## 2.11.1

Expand Down

0 comments on commit ae0f3b2

Please sign in to comment.