Passed
Pull Request — master (#23)
by Michael
06:31 queued 02:41
created

header.php (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * Module: XoopsTube
5
 *
6
 * You may not change or alter any portion of this comment or credits
7
 * of supporting developers from this source code or any supporting source code
8
 * which is considered copyrighted (c) material of the original comment or credit authors.
9
 *
10
 * PHP version 5
11
 *
12
 * @category        Module
13
 * @package         Xoopstube
14
 * @author          XOOPS Development Team
15
 * @copyright       2001-2016 XOOPS Project (https://xoops.org)
16
 * @license         GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
17
 * @link            https://xoops.org/
18
 * @since           1.0.6
19
 */
20
21
use XoopsModules\Xoopstube;
22
23
require_once \dirname(__DIR__, 2) . '/mainfile.php';
24
25
$moduleDirName = basename(__DIR__);
26
$modulePath    = __DIR__;
27
28
require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/include/common.php';
29
require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/include/video.php';
30
require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/sbookmarks.php';
31
require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
32
33
xoops_loadLanguage('main', $moduleDirName);
34
35
//require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/class/TextSanitizer.php';
36
$myts = \MyTextSanitizer::getInstance(); // MyTextSanitizer object
37
38
if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) {
39
    require_once $GLOBALS['xoops']->path('class/theme.php');
40
    $GLOBALS['xoTheme'] = new \xos_opal_Theme();
41
}
42
43
if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) {
44
    require $GLOBALS['xoops']->path('class/template.php');
45
    $xoopsTpl = new XoopsTpl();
46
}
47
48
49
//$GLOBALS['xoTheme']->addStylesheet('modules/' . $moduleDirName . '/assets/css/xtubestyle.css');
50
51
$GLOBALS['xoTheme']->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
52
//$xoTheme->addScript(XOOPSTUBE_URL . '/assets/js/magnific/jquery.magnific-popup.min.js');
53
//$xoTheme->addStylesheet(XOOPSTUBE_URL . '/assets/js/magnific/magnific-popup.css');
54
$GLOBALS['xoTheme']->addStylesheet(XOOPSTUBE_URL . '/assets/css/module.css');
0 ignored issues
show
The constant XOOPSTUBE_URL was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
55
56
require_once XOOPS_ROOT_PATH . '/header.php';
57
58
global $xoopModuleConfig;
59