From 66dd4bf91545177266f3343c1d9c41e6144e2205 Mon Sep 17 00:00:00 2001 From: Timot Tarjani Date: Mon, 2 Oct 2023 21:31:33 +0200 Subject: [PATCH] Website helper has $_THEME --- app/Helpers/Website.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Helpers/Website.php b/app/Helpers/Website.php index 79a1692a2..38dc81875 100644 --- a/app/Helpers/Website.php +++ b/app/Helpers/Website.php @@ -13,6 +13,7 @@ class Website { public static $_PLUGINS; public static $_HEADER_IMAGES; public static $_SOCIAL_MEDIA; + public static $_THEME; public static $system,$pages; @@ -25,6 +26,8 @@ public static function initalize($wengine){ self::$_THEME_PATH = rtrim($wengine->getTheme()->getPath(),'/'); + self::$_THEME = $wengine->getTheme(); + self::$_CURRENT_USER = \Auth::user(); self::$_REQUESTED_PAGE = \Request::segment(1)===null ? \App\Model\Page::find($wengine->request->settings['home_page']) : \App\Model\Page::findBySlug($wengine->request->segment(1));