Skip to content

Commit

Permalink
Website helper has $_THEME
Browse files Browse the repository at this point in the history
  • Loading branch information
Timot Tarjani committed Oct 2, 2023
1 parent 5dffefb commit 66dd4bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Helpers/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Website {
public static $_PLUGINS;
public static $_HEADER_IMAGES;
public static $_SOCIAL_MEDIA;
public static $_THEME;

public static $system,$pages;

Expand All @@ -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));
Expand Down

0 comments on commit 66dd4bf

Please sign in to comment.