diff --git a/functions.php b/functions.php index 8a3cddf..d5d0413 100644 --- a/functions.php +++ b/functions.php @@ -27,10 +27,6 @@ function themeConfig($form) { $form->addInput($cnavatar); $donate = new Typecho_Widget_Helper_Form_Element_Text('donate', NULL, 'https://blogcdn.loliko.cn/donate/wx.png', _t('赞赏二维码'), _t('不填写则不显示')); $form->addInput($donate); - $memos = new Typecho_Widget_Helper_Form_Element_Text('memos', NULL, 'https://m.loliko.cn', _t('memos地址'), _t('结尾不带"/"')); - $form->addInput($memos); - $memosID = new Typecho_Widget_Helper_Form_Element_Text('memosID', NULL, '1', _t('memosID'), _t('数字ID')); - $form->addInput($memosID); $doubanID = new Typecho_Widget_Helper_Form_Element_Text('doubanID', NULL, '322dba2a3a27524b97c06d941d9631d153fc', _t('豆瓣页面必需Token'), _t('从https://node.wpista.com/获得token')); $form->addInput($doubanID); $twikoo = new Typecho_Widget_Helper_Form_Element_Textarea('twikoo', NULL, NULL, _t('引用第三方评论'), _t('不填写则不显示')); diff --git a/page-mastodon.php b/page-mastodon.php new file mode 100644 index 0000000..0a651d2 --- /dev/null +++ b/page-mastodon.php @@ -0,0 +1,165 @@ + +need('header.php'); ?> +
+
+

title() ?>

+

content(); ?>

+
+
+ fields->tooot ? $this->fields->tooot : 'https://bbapi.ima.cm'; ?> + + + +
+ +
+ + +
+need('footer.php'); ?> \ No newline at end of file diff --git a/page-memos.php b/page-memos.php index ce9d93d..f2598f3 100644 --- a/page-memos.php +++ b/page-memos.php @@ -1,6 +1,6 @@

title() ?>

content(); ?>

+ fields->memos ? $this->fields->memos : 'https://memos.loliko.cn'; + $memosID = $this->fields->memosID ? $this->fields->memosID : '1'; + $memosnum = $this->fields->memosnum ? $this->fields->memosnum : '20'; + ?> +
+