-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathheader.php
More file actions
60 lines (54 loc) · 2.19 KB
/
header.php
File metadata and controls
60 lines (54 loc) · 2.19 KB
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
52
53
54
55
56
57
58
59
60
<?php
/*
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.
*/
/**
* wgGitHub module for xoops
*
* @copyright 2020 XOOPS Project (https://xooops.org)
* @license GPL 2.0 or later
* @package wggithub
* @since 1.0
* @min_xoops 2.5.10
* @author Goffy - XOOPS Development Team - Email:<goffy@wedega.com> - Website:<https://wedega.com>
*/
use XoopsModules\Wggithub\{
Helper
};
include \dirname(__DIR__, 2) . '/mainfile.php';
include __DIR__ . '/include/common.php';
$moduleDirName = \basename(__DIR__);
$helper = Helper::getInstance();
// Breadcrumbs
$xoBreadcrumbs = [];
if ($helper->getConfig('show_breadcrumbs')) {
if (isset($GLOBALS['xoopsModule']) && \is_object($GLOBALS['xoopsModule'])) {
$xoBreadcrumbs[] = ['title' => $GLOBALS['xoopsModule']->getVar('name'), 'link' => \WGGITHUB_URL . '/'];
}
}
// Get instance of module
$settingsHandler = $helper->getHandler('Settings');
$repositoriesHandler = $helper->getHandler('Repositories');
$directoriesHandler = $helper->getHandler('Directories');
$logsHandler = $helper->getHandler('Logs');
$readmesHandler = $helper->getHandler('Readmes');
$releasesHandler = $helper->getHandler('Releases');
$permissionsHandler = $helper->getHandler('Permissions');
//
$myts = MyTextSanitizer::getInstance();
// Default Css Style
$style = \WGGITHUB_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');