-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.php
35 lines (26 loc) · 910 Bytes
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php declare(strict_types=1);
/**
* Module: SmartFAQ
* Author: The SmartFactory <www.smartfactory.ca>
* Licence: GNU
*/
use XoopsModules\Smartfaq\Helper;
/** @var Helper $helper
* {@internal $helper defined in ./include/common.php }}
*/
require_once \dirname(__DIR__, 2) . '/mainfile.php';
require XOOPS_ROOT_PATH . '/header.php';
require __DIR__ . '/preloads/autoloader.php';
$moduleDirName = basename(__DIR__);
$helper = Helper::getInstance();
// Load language files
$helper->loadLanguage('main');
$myts = \MyTextSanitizer::getInstance();
if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) {
require $GLOBALS['xoops']->path('class/theme.php');
$GLOBALS['xoTheme'] = new \xos_opal_Theme();
}
if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) {
require $GLOBALS['xoops']->path('class/template.php');
$xoopsTpl = new XoopsTpl();
}