From aa30ed95f8f23823b99a02cccef231e42e7f90e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Wed, 5 Jun 2024 08:03:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AF=B4=E8=AF=B4=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 4 -- page-mastodon.php | 165 ++++++++++++++++++++++++++++++++++++++++++++++ page-memos.php | 14 +++- 3 files changed, 176 insertions(+), 7 deletions(-) create mode 100644 page-mastodon.php 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'; + ?> +
+