forked from XoopsModules25x/smallworld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
27 lines (19 loc) · 812 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
<?php
use XoopsModules\Smallworld;
include __DIR__ . '/preloads/autoloader.php';
require_once dirname(dirname(__DIR__)) . '/mainfile.php';
$moduleDirName = basename(__DIR__);
$modulePath = XOOPS_ROOT_PATH . '/modules/' . $moduleDirName;
//require XOOPS_ROOT_PATH . '/header.php';
$helper = Smallworld\Helper::getInstance();
// Load language files
$helper->loadLanguage('main');
$myts = \MyTextSanitizer::getInstance();
if (!isset($GLOBALS['xoTheme']) || !$GLOBALS['xoTheme'] instanceof \xos_opal_Theme) {
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');
$GLOBALS['xoopsTpl'] = new \XoopsTpl();
}