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 . '/class/Utility.php'; |
||
30 | require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/include/video.php'; |
||
31 | require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/sbookmarks.php'; |
||
32 | //require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/class/Thumbnails.php'; |
||
33 | //require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/class/Tree.php'; |
||
34 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
||
35 | |||
36 | xoops_loadLanguage('main', $moduleDirName); |
||
37 | |||
38 | //require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/class/TextSanitizer.php'; |
||
39 | $myts = \MyTextSanitizer::getInstance(); // MyTextSanitizer object |
||
40 | |||
41 | if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) { |
||
42 | require_once $GLOBALS['xoops']->path('class/theme.php'); |
||
43 | $GLOBALS['xoTheme'] = new \xos_opal_Theme(); |
||
44 | } |
||
45 | |||
46 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
||
47 | require $GLOBALS['xoops']->path('class/template.php'); |
||
48 | $xoopsTpl = new XoopsTpl(); |
||
49 | } |
||
50 | |||
51 | |||
52 | //$GLOBALS['xoTheme']->addStylesheet('modules/' . $moduleDirName . '/assets/css/xtubestyle.css'); |
||
53 | |||
54 | $GLOBALS['xoTheme']->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js'); |
||
55 | //$xoTheme->addScript(XOOPSTUBE_URL . '/assets/js/magnific/jquery.magnific-popup.min.js'); |
||
56 | //$xoTheme->addStylesheet(XOOPSTUBE_URL . '/assets/js/magnific/magnific-popup.css'); |
||
57 | $GLOBALS['xoTheme']->addStylesheet(XOOPSTUBE_URL . '/assets/css/module.css'); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
58 | |||
59 | require_once XOOPS_ROOT_PATH . '/header.php'; |
||
60 | |||
61 | global $xoopModuleConfig; |
||
62 |