Skip to content

Commit

Permalink
✨ 支持添加ICP备案许可证号.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoharWang committed Feb 6, 2018
1 parent 3b28131 commit 5adff0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
&copy; Copyright <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a> /
<a href="https://www.iwch.me/archives/668.html">Cactus</a> /
<a href="http://typecho.org">Typecho</a>
<?php if ($this->options->icpNumber) : ?>
/ <a href="http://www.miibeian.gov.cn/" target="_blank" rel="nofollow"><?php $this->options->icpNumber(); ?></a>
<?php endif; ?>
</p>
</footer>
</section>
Expand Down
3 changes: 3 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
function themeConfig($form) {
$avatarUrl = new Typecho_Widget_Helper_Form_Element_Text('avatarUrl', NULL, NULL, _t('头像 URL 地址'), _t('在这里填入一个图片 URL 地址, 留空则返回 Gravatar, 不建议留空.'));
$form->addInput($avatarUrl);

$icpNumber = new Typecho_Widget_Helper_Form_Element_Text('icpNumber', NULL, NULL, _t('ICP 备案许可证号'), _t('在这里填入一个 ICP 备案许可证号, 留空则不显示.'));
$form->addInput($icpNumber);
}

0 comments on commit 5adff0e

Please sign in to comment.