-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
51 lines (48 loc) · 2.12 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php declare(strict_types=1);
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* wgEvents module for xoops
*
* @copyright 2021 XOOPS Project (https://xoops.org)
* @license GPL 2.0 or later
* @package wgevents
* @author Goffy - Wedega - Email:[email protected] - Website:https://xoops.wedega.com
*/
require \dirname(__DIR__, 2) . '/mainfile.php';
require __DIR__ . '/include/common.php';
$moduleDirName = \basename(__DIR__);
// Breadcrumbs
$xoBreadcrumbs = [];
// Get instance of module
$helper = \XoopsModules\Wgevents\Helper::getInstance();
$eventHandler = $helper->getHandler('Event');
$categoryHandler = $helper->getHandler('Category');
$registrationHandler = $helper->getHandler('Registration');
$registrationhistHandler = $helper->getHandler('Registrationhist');
$questionHandler = $helper->getHandler('Question');
$answerHandler = $helper->getHandler('Answer');
$answerhistHandler = $helper->getHandler('Answerhist');
$textblockHandler = $helper->getHandler('Textblock');
$fieldHandler = $helper->getHandler('Field');
$permissionsHandler = $helper->getHandler('Permission');
$taskHandler = $helper->getHandler('Task');
//
$myts = MyTextSanitizer::getInstance();
// Default Css Style
$style = \WGEVENTS_URL . '/assets/css/style.css';
// Smarty Default
$sysPathIcon16 = $GLOBALS['xoopsModule']->getInfo('sysicons16');
$sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('sysicons32');
$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
$modPathIcon16 = $GLOBALS['xoopsModule']->getInfo('modicons16');
$modPathIcon32 = $GLOBALS['xoopsModule']->getInfo('modicons16');
// Load Languages
\xoops_loadLanguage('main');
\xoops_loadLanguage('modinfo');