public static function init() { require_once PATH . '/app/Vendor/Mustache/Autoloader.php'; Mustache_Autoloader::register(); $themePath = PATH . '/themes/' . Base::$g['theme'] . '/html'; self::$mst = new Mustache_Engine(array('loader' => new Mustache_Loader_FilesystemLoader($themePath), 'partials_loader' => new Mustache_Loader_FilesystemLoader($themePath . '/partials'), 'entity_flags' => ENT_QUOTES, 'strict_callables' => true)); self::$tpl['url'] = URL; self::$tpl['link'] = URL . '/themes/' . Base::$g['theme']; self::$tpl['notification'] = Base::getNotification(); // Check notifications self::$tpl['toes'] = Page::filter('all'); // Get footer pages self::$tpl['admin'] = ADMIN; }