From f8cefbddee3b1005d7af569e4fc89c3f6059c008 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Sat, 13 Aug 2022 14:21:11 +0800 Subject: init --- libs/Utils.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libs/Utils.php (limited to 'libs/Utils.php') diff --git a/libs/Utils.php b/libs/Utils.php new file mode 100644 index 0000000..98ac6a7 --- /dev/null +++ b/libs/Utils.php @@ -0,0 +1,34 @@ +index($path); + } + + /** + * 输出相对首页路径,本方法用于静态文件 + */ + public static function indexHome($path = '') + { + Helper::options()->siteUrl($path); + } + + /** + * 输出相对主题目录路径,用于静态文件 + */ + public static function indexTheme($path = '') + { + Helper::options()->themeUrl($path); + } +} -- cgit v1.2.3