diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-15 00:18:04 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-15 00:18:04 +0800 |
| commit | 08e6e289626620abd5dea49c0485fa80dc011e79 (patch) | |
| tree | 1bfb0f7746ca207bded81616f18782d5eb9871c9 /libs/Utils.php | |
| parent | 0615f62964b26f5d2f54da3c9262a1ea17df41ce (diff) | |
:poop: Add: 初步实现多语言功能,并使用 hint.css 添加 tooltip
Diffstat (limited to 'libs/Utils.php')
| -rw-r--r-- | libs/Utils.php | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/libs/Utils.php b/libs/Utils.php index 3d62f77..27d7658 100644 --- a/libs/Utils.php +++ b/libs/Utils.php @@ -1,6 +1,14 @@ <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; +/** + * Utils.php + * 辅助工具 + * + * Author: Eltrac(BigCoke233) + * License: MIT + */ + class Utils { @@ -142,19 +150,6 @@ class Utils } /** - * 获取最早文章创建时间 - */ - public static function getOldestPostDate() { - $db = Typecho_Db::get(); - $content = $db->fetchRow($db->select()->from('table.contents') - ->where('table.contents.status = ?', 'publish') - ->where('table.contents.password IS NULL') - ->order('table.contents.created', Typecho_Db::SORT_ASC) - ->limit(1)); - echo '一切开始于 '.date('Y-m-d', $content['created']); - } - - /** * 缩略图 */ public static function postBanner($post){ |
