Typecho 添加统计代码,如51la,CNZZ等
时间:4年前 阅读:2559
Typecho 添加统计代码,如51la,CNZZ等
主题的functions.php中间添加:
function themeConfig($form) { $tongji = new Typecho_Widget_Helper_Form_Element_Textarea('tongji', NULL, NULL, _t('统计代码'), _t('')); $form->addInput($tongji); }
前台Footer文件调用:
<?php $this->options->tongji(); ?>
网友评论