Skip to content

Commit

Permalink
后台增加icp备案号设置
Browse files Browse the repository at this point in the history
  • Loading branch information
lingmm committed Feb 2, 2016
1 parent ab99181 commit ee11297
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion footer.php
Expand Up @@ -3,7 +3,10 @@
<div class="outer">
<div id="footer-info">
<div class="footer-left">
&copy; <?php echo date('Y');?> <a href="<?php $this->options->siteurl(); ?>"><?php $this->options->title(); ?></a>|<a href="http://www.miitbeian.gov.cn/" rel="nofollow" target="_blank">豫ICP备15030578号</a>
&copy; <?php echo date('Y');?> <a href="<?php $this->options->siteurl(); ?>"><?php $this->options->title(); ?></a><?php
if(!empty($this->options->icp)): ?>
|<a href="http://www.miitbeian.gov.cn/" rel="nofollow" target="_blank"><?php echo $this->options->icp; ?></a>
<?php endif; ?>
</div>
<div class="footer-right">
<a href="http://typecho.org/" target="_blank">Typecho</a> Theme <a href="https://github.com/lingmm/yilia-theme-port-to-typecho" target="_blank">Yilia</a> by Litten
Expand Down
6 changes: 4 additions & 2 deletions functions.php
Expand Up @@ -5,7 +5,7 @@ function themeConfig($form) {
$form->addInput($github_url);
$weibo_url = new Typecho_Widget_Helper_Form_Element_Text('weibo_url',NULL,NULL,'新浪微博地址','首页的新浪微博地址图标链接地址');
$form->addInput($weibo_url);
$duoshuo = new Typecho_Widget_Helper_Form_Element_Text('duoshuo',NULL,NULL,'多说域名','多说代码中的ShortName');
$duoshuo = new Typecho_Widget_Helper_Form_Element_Text('duoshuo',NULL,NULL,'多说域名','多说代码中的ShortName,不包含.duoshuo.com');
$form->addInput($duoshuo);
$jiathis = new Typecho_Widget_Helper_Form_Element_Text('jiathis',NULL,NULL,'jiathis的UID','JiaThis代码中的UID');
$form->addInput($jiathis);
Expand All @@ -17,6 +17,8 @@ function themeConfig($form) {
$form->addInput($aboutme);
$analysis = new Typecho_Widget_Helper_Form_Element_Textarea('analysis', NULL, NULL, _t('页面统计'),'放置页面统计代码');
$form->addInput($analysis);
$icp = new Typecho_Widget_Helper_Form_Element_Text('icp',NULL,NULL,_t('ICP备案号'),'页面底部的ICP备案号');
$form->addInput($icp);
}
/* 自定tags的输出格式 */
function yqctags($widget, $split = ',', $default = NULL){
Expand Down Expand Up @@ -96,4 +98,4 @@ function thePrev($widget, $word = '上一篇', $default = NULL)
} else {
echo $default;
}
}
}

0 comments on commit ee11297

Please sign in to comment.