@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | use XoopsModules\Myiframe\{ |
22 | - Helper |
|
22 | + Helper |
|
23 | 23 | }; |
24 | 24 | /** @var Helper $helper */ |
25 | 25 | |
@@ -37,12 +37,12 @@ discard block |
||
37 | 37 | $myts = \MyTextSanitizer::getInstance(); |
38 | 38 | |
39 | 39 | if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) { |
40 | - require $GLOBALS['xoops']->path('class/theme.php'); |
|
41 | - $GLOBALS['xoTheme'] = new \xos_opal_Theme(); |
|
40 | + require $GLOBALS['xoops']->path('class/theme.php'); |
|
41 | + $GLOBALS['xoTheme'] = new \xos_opal_Theme(); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
45 | - require $GLOBALS['xoops']->path('class/template.php'); |
|
46 | - $xoopsTpl = new XoopsTpl(); |
|
45 | + require $GLOBALS['xoops']->path('class/template.php'); |
|
46 | + $xoopsTpl = new XoopsTpl(); |
|
47 | 47 | } |
48 | 48 |
@@ -23,10 +23,10 @@ |
||
23 | 23 | }; |
24 | 24 | /** @var Helper $helper */ |
25 | 25 | |
26 | -require dirname(__DIR__, 2) . '/mainfile.php'; |
|
27 | -require XOOPS_ROOT_PATH . '/header.php'; |
|
26 | +require dirname(__DIR__, 2).'/mainfile.php'; |
|
27 | +require XOOPS_ROOT_PATH.'/header.php'; |
|
28 | 28 | |
29 | -require __DIR__ . '/preloads/autoloader.php'; |
|
29 | +require __DIR__.'/preloads/autoloader.php'; |
|
30 | 30 | |
31 | 31 | $moduleDirName = basename(__DIR__); |
32 | 32 |
@@ -21,69 +21,69 @@ |
||
21 | 21 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
22 | 22 | |
23 | 23 | return (object)[ |
24 | - 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
25 | - 'paths' => [ |
|
26 | - 'dirname' => $moduleDirName, |
|
27 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
32 | - ], |
|
33 | - 'uploadFolders' => [ |
|
34 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
37 | - //XOOPS_UPLOAD_PATH . '/flags' |
|
38 | - ], |
|
39 | - 'copyBlankFiles' => [ |
|
40 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
43 | - //XOOPS_UPLOAD_PATH . '/flags' |
|
44 | - ], |
|
24 | + 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
25 | + 'paths' => [ |
|
26 | + 'dirname' => $moduleDirName, |
|
27 | + 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | + 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | + 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | + 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | + 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
32 | + ], |
|
33 | + 'uploadFolders' => [ |
|
34 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
37 | + //XOOPS_UPLOAD_PATH . '/flags' |
|
38 | + ], |
|
39 | + 'copyBlankFiles' => [ |
|
40 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
43 | + //XOOPS_UPLOAD_PATH . '/flags' |
|
44 | + ], |
|
45 | 45 | |
46 | - 'copyTestFolders' => [ |
|
47 | - [ |
|
48 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads', |
|
49 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
50 | - ], |
|
51 | - // [ |
|
52 | - // XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
|
53 | - // XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs', |
|
54 | - // ], |
|
55 | - ], |
|
46 | + 'copyTestFolders' => [ |
|
47 | + [ |
|
48 | + XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads', |
|
49 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
50 | + ], |
|
51 | + // [ |
|
52 | + // XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
|
53 | + // XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs', |
|
54 | + // ], |
|
55 | + ], |
|
56 | 56 | |
57 | - 'templateFolders' => [ |
|
58 | - '/templates/', |
|
59 | - // '/templates/blocks/', |
|
60 | - // '/templates/admin/' |
|
61 | - ], |
|
62 | - 'oldFiles' => [ |
|
63 | - '/class/request.php', |
|
64 | - '/class/registry.php', |
|
65 | - '/class/utilities.php', |
|
66 | - '/class/util.php', |
|
67 | - // '/include/constants.php', |
|
68 | - // '/include/functions.php', |
|
69 | - '/ajaxrating.txt', |
|
70 | - ], |
|
71 | - 'oldFolders' => [ |
|
72 | - '/images', |
|
73 | - '/css', |
|
74 | - '/js', |
|
75 | - '/tcpdf', |
|
76 | - ], |
|
57 | + 'templateFolders' => [ |
|
58 | + '/templates/', |
|
59 | + // '/templates/blocks/', |
|
60 | + // '/templates/admin/' |
|
61 | + ], |
|
62 | + 'oldFiles' => [ |
|
63 | + '/class/request.php', |
|
64 | + '/class/registry.php', |
|
65 | + '/class/utilities.php', |
|
66 | + '/class/util.php', |
|
67 | + // '/include/constants.php', |
|
68 | + // '/include/functions.php', |
|
69 | + '/ajaxrating.txt', |
|
70 | + ], |
|
71 | + 'oldFolders' => [ |
|
72 | + '/images', |
|
73 | + '/css', |
|
74 | + '/js', |
|
75 | + '/tcpdf', |
|
76 | + ], |
|
77 | 77 | |
78 | - 'renameTables' => [// 'XX_archive' => 'ZZZZ_archive', |
|
79 | - ], |
|
80 | - 'renameColumns' => [// 'extcal_event' => ['from' => 'event_etablissement', 'to' => 'event_location'], |
|
81 | - ], |
|
82 | - 'moduleStats' => [ |
|
83 | - // 'totalcategories' => $helper->getHandler('Category')->getCategoriesCount(-1), |
|
84 | - // 'totalitems' => $helper->getHandler('Item')->getItemsCount(), |
|
85 | - // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
|
86 | - ], |
|
87 | - 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
|
78 | + 'renameTables' => [// 'XX_archive' => 'ZZZZ_archive', |
|
79 | + ], |
|
80 | + 'renameColumns' => [// 'extcal_event' => ['from' => 'event_etablissement', 'to' => 'event_location'], |
|
81 | + ], |
|
82 | + 'moduleStats' => [ |
|
83 | + // 'totalcategories' => $helper->getHandler('Category')->getCategoriesCount(-1), |
|
84 | + // 'totalitems' => $helper->getHandler('Item')->getItemsCount(), |
|
85 | + // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
|
86 | + ], |
|
87 | + 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
|
88 | 88 | <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>", |
89 | 89 | ]; |
@@ -20,33 +20,33 @@ discard block |
||
20 | 20 | $moduleDirName = \basename(\dirname(__DIR__)); |
21 | 21 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
22 | 22 | |
23 | -return (object)[ |
|
24 | - 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
23 | +return (object) [ |
|
24 | + 'name' => $moduleDirNameUpper.' Module Configurator', |
|
25 | 25 | 'paths' => [ |
26 | 26 | 'dirname' => $moduleDirName, |
27 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
27 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
28 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
29 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
30 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
31 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
32 | 32 | ], |
33 | 33 | 'uploadFolders' => [ |
34 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
34 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
35 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category', |
|
36 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
37 | 37 | //XOOPS_UPLOAD_PATH . '/flags' |
38 | 38 | ], |
39 | 39 | 'copyBlankFiles' => [ |
40 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
40 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
41 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category', |
|
42 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
43 | 43 | //XOOPS_UPLOAD_PATH . '/flags' |
44 | 44 | ], |
45 | 45 | |
46 | 46 | 'copyTestFolders' => [ |
47 | 47 | [ |
48 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads', |
|
49 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
48 | + XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/uploads', |
|
49 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
50 | 50 | ], |
51 | 51 | // [ |
52 | 52 | // XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
@@ -85,5 +85,5 @@ discard block |
||
85 | 85 | // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
86 | 86 | ], |
87 | 87 | 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
88 | - <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>", |
|
88 | + <img src='" . Admin::iconUrl('xoopsmicrobutton.gif')."' alt='XOOPS Project'></a>", |
|
89 | 89 | ]; |
@@ -6,14 +6,14 @@ |
||
6 | 6 | $moduleDirName = \basename(\dirname(__DIR__)); |
7 | 7 | |
8 | 8 | return [ |
9 | - 'name' => \mb_strtoupper($moduleDirName) . ' IconConfigurator', |
|
10 | - 'edit' => "<img src='" . $pathIcon16 . "/edit.png' alt=" . _EDIT . ' title=' . _EDIT . " align='middle'>", |
|
11 | - 'delete' => "<img src='" . $pathIcon16 . "/delete.png' alt=" . _DELETE . ' title=' . _DELETE . " align='middle'>", |
|
12 | - 'clone' => "<img src='" . $pathIcon16 . "/editcopy.png' alt=" . _CLONE . ' title=' . _CLONE . " align='middle'>", |
|
13 | - 'preview' => "<img src='" . $pathIcon16 . "/view.png' alt=" . _PREVIEW . ' title=' . _PREVIEW . " align='middle'>", |
|
14 | - 'print' => "<img src='" . $pathIcon16 . "/printer.png' alt=" . _PRINT . ' title=' . _PRINT . " align='middle'>", |
|
15 | - 'pdf' => "<img src='" . $pathIcon16 . "/pdf.png' alt=" . _PDF . ' title=' . _PDF . " align='middle'>", |
|
16 | - 'add' => "<img src='" . $pathIcon16 . "/add.png' alt=" . _ADD . ' title=' . _ADD . " align='middle'>", |
|
17 | - '0' => "<img src='" . $pathIcon16 . "/0.png' alt=" . 0 . ' title=' . _OFF . " align='middle'>", |
|
18 | - '1' => "<img src='" . $pathIcon16 . "/1.png' alt=" . 1 . ' title=' . _ON . " align='middle'>", |
|
9 | + 'name' => \mb_strtoupper($moduleDirName) . ' IconConfigurator', |
|
10 | + 'edit' => "<img src='" . $pathIcon16 . "/edit.png' alt=" . _EDIT . ' title=' . _EDIT . " align='middle'>", |
|
11 | + 'delete' => "<img src='" . $pathIcon16 . "/delete.png' alt=" . _DELETE . ' title=' . _DELETE . " align='middle'>", |
|
12 | + 'clone' => "<img src='" . $pathIcon16 . "/editcopy.png' alt=" . _CLONE . ' title=' . _CLONE . " align='middle'>", |
|
13 | + 'preview' => "<img src='" . $pathIcon16 . "/view.png' alt=" . _PREVIEW . ' title=' . _PREVIEW . " align='middle'>", |
|
14 | + 'print' => "<img src='" . $pathIcon16 . "/printer.png' alt=" . _PRINT . ' title=' . _PRINT . " align='middle'>", |
|
15 | + 'pdf' => "<img src='" . $pathIcon16 . "/pdf.png' alt=" . _PDF . ' title=' . _PDF . " align='middle'>", |
|
16 | + 'add' => "<img src='" . $pathIcon16 . "/add.png' alt=" . _ADD . ' title=' . _ADD . " align='middle'>", |
|
17 | + '0' => "<img src='" . $pathIcon16 . "/0.png' alt=" . 0 . ' title=' . _OFF . " align='middle'>", |
|
18 | + '1' => "<img src='" . $pathIcon16 . "/1.png' alt=" . 1 . ' title=' . _ON . " align='middle'>", |
|
19 | 19 | ]; |
@@ -6,14 +6,14 @@ |
||
6 | 6 | $moduleDirName = \basename(\dirname(__DIR__)); |
7 | 7 | |
8 | 8 | return [ |
9 | - 'name' => \mb_strtoupper($moduleDirName) . ' IconConfigurator', |
|
10 | - 'edit' => "<img src='" . $pathIcon16 . "/edit.png' alt=" . _EDIT . ' title=' . _EDIT . " align='middle'>", |
|
11 | - 'delete' => "<img src='" . $pathIcon16 . "/delete.png' alt=" . _DELETE . ' title=' . _DELETE . " align='middle'>", |
|
12 | - 'clone' => "<img src='" . $pathIcon16 . "/editcopy.png' alt=" . _CLONE . ' title=' . _CLONE . " align='middle'>", |
|
13 | - 'preview' => "<img src='" . $pathIcon16 . "/view.png' alt=" . _PREVIEW . ' title=' . _PREVIEW . " align='middle'>", |
|
14 | - 'print' => "<img src='" . $pathIcon16 . "/printer.png' alt=" . _PRINT . ' title=' . _PRINT . " align='middle'>", |
|
15 | - 'pdf' => "<img src='" . $pathIcon16 . "/pdf.png' alt=" . _PDF . ' title=' . _PDF . " align='middle'>", |
|
16 | - 'add' => "<img src='" . $pathIcon16 . "/add.png' alt=" . _ADD . ' title=' . _ADD . " align='middle'>", |
|
17 | - '0' => "<img src='" . $pathIcon16 . "/0.png' alt=" . 0 . ' title=' . _OFF . " align='middle'>", |
|
18 | - '1' => "<img src='" . $pathIcon16 . "/1.png' alt=" . 1 . ' title=' . _ON . " align='middle'>", |
|
9 | + 'name' => \mb_strtoupper($moduleDirName).' IconConfigurator', |
|
10 | + 'edit' => "<img src='".$pathIcon16."/edit.png' alt="._EDIT.' title='._EDIT." align='middle'>", |
|
11 | + 'delete' => "<img src='".$pathIcon16."/delete.png' alt="._DELETE.' title='._DELETE." align='middle'>", |
|
12 | + 'clone' => "<img src='".$pathIcon16."/editcopy.png' alt="._CLONE.' title='._CLONE." align='middle'>", |
|
13 | + 'preview' => "<img src='".$pathIcon16."/view.png' alt="._PREVIEW.' title='._PREVIEW." align='middle'>", |
|
14 | + 'print' => "<img src='".$pathIcon16."/printer.png' alt="._PRINT.' title='._PRINT." align='middle'>", |
|
15 | + 'pdf' => "<img src='".$pathIcon16."/pdf.png' alt="._PDF.' title='._PDF." align='middle'>", |
|
16 | + 'add' => "<img src='".$pathIcon16."/add.png' alt="._ADD.' title='._ADD." align='middle'>", |
|
17 | + '0' => "<img src='".$pathIcon16."/0.png' alt=".0.' title='._OFF." align='middle'>", |
|
18 | + '1' => "<img src='".$pathIcon16."/1.png' alt=".1.' title='._ON." align='middle'>", |
|
19 | 19 | ]; |
@@ -5,17 +5,17 @@ |
||
5 | 5 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
6 | 6 | |
7 | 7 | return [ |
8 | - 'name' => \mb_strtoupper($moduleDirName) . ' PathConfigurator', |
|
9 | - 'dirname' => $moduleDirName, |
|
10 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
11 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
12 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
13 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
14 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
15 | - 'uploadFolders' => [ |
|
16 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
17 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
18 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
19 | - //XOOPS_UPLOAD_PATH . '/flags' |
|
20 | - ], |
|
8 | + 'name' => \mb_strtoupper($moduleDirName) . ' PathConfigurator', |
|
9 | + 'dirname' => $moduleDirName, |
|
10 | + 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
11 | + 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
12 | + 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
13 | + 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
14 | + 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
15 | + 'uploadFolders' => [ |
|
16 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
17 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
18 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
19 | + //XOOPS_UPLOAD_PATH . '/flags' |
|
20 | + ], |
|
21 | 21 | ]; |
@@ -5,17 +5,17 @@ |
||
5 | 5 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
6 | 6 | |
7 | 7 | return [ |
8 | - 'name' => \mb_strtoupper($moduleDirName) . ' PathConfigurator', |
|
8 | + 'name' => \mb_strtoupper($moduleDirName).' PathConfigurator', |
|
9 | 9 | 'dirname' => $moduleDirName, |
10 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
11 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
12 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
13 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
14 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
10 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
11 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
12 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
13 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
14 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
15 | 15 | 'uploadFolders' => [ |
16 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
17 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
18 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
16 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
17 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category', |
|
18 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
19 | 19 | //XOOPS_UPLOAD_PATH . '/flags' |
20 | 20 | ], |
21 | 21 | ]; |
@@ -5,37 +5,37 @@ |
||
5 | 5 | |
6 | 6 | // extra module configs |
7 | 7 | $modversion['config'][] = [ |
8 | - 'name' => 'imageConfigs', |
|
9 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', |
|
10 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', |
|
11 | - 'formtype' => 'line_break', |
|
12 | - 'valuetype' => 'textbox', |
|
13 | - 'default' => 'head', |
|
8 | + 'name' => 'imageConfigs', |
|
9 | + 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', |
|
10 | + 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', |
|
11 | + 'formtype' => 'line_break', |
|
12 | + 'valuetype' => 'textbox', |
|
13 | + 'default' => 'head', |
|
14 | 14 | ]; |
15 | 15 | |
16 | 16 | $modversion['config'][] = [ |
17 | - 'name' => 'imageWidth', |
|
18 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', |
|
19 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', |
|
20 | - 'formtype' => 'textbox', |
|
21 | - 'valuetype' => 'int', |
|
22 | - 'default' => 1200, |
|
17 | + 'name' => 'imageWidth', |
|
18 | + 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', |
|
19 | + 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', |
|
20 | + 'formtype' => 'textbox', |
|
21 | + 'valuetype' => 'int', |
|
22 | + 'default' => 1200, |
|
23 | 23 | ]; // =1024/16 |
24 | 24 | |
25 | 25 | $modversion['config'][] = [ |
26 | - 'name' => 'imageHeight', |
|
27 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', |
|
28 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', |
|
29 | - 'formtype' => 'textbox', |
|
30 | - 'valuetype' => 'int', |
|
31 | - 'default' => 800, |
|
26 | + 'name' => 'imageHeight', |
|
27 | + 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', |
|
28 | + 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', |
|
29 | + 'formtype' => 'textbox', |
|
30 | + 'valuetype' => 'int', |
|
31 | + 'default' => 800, |
|
32 | 32 | ]; // =768/16 |
33 | 33 | |
34 | 34 | $modversion['config'][] = [ |
35 | - 'name' => 'imageUploadPath', |
|
36 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', |
|
37 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', |
|
38 | - 'formtype' => 'textbox', |
|
39 | - 'valuetype' => 'text', |
|
40 | - 'default' => 'uploads/' . $modversion['dirname'] . '/images', |
|
35 | + 'name' => 'imageUploadPath', |
|
36 | + 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', |
|
37 | + 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', |
|
38 | + 'formtype' => 'textbox', |
|
39 | + 'valuetype' => 'text', |
|
40 | + 'default' => 'uploads/' . $modversion['dirname'] . '/images', |
|
41 | 41 | ]; |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | // extra module configs |
7 | 7 | $modversion['config'][] = [ |
8 | 8 | 'name' => 'imageConfigs', |
9 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', |
|
10 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', |
|
9 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG', |
|
10 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG_DSC', |
|
11 | 11 | 'formtype' => 'line_break', |
12 | 12 | 'valuetype' => 'textbox', |
13 | 13 | 'default' => 'head', |
@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | |
16 | 16 | $modversion['config'][] = [ |
17 | 17 | 'name' => 'imageWidth', |
18 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', |
|
19 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', |
|
18 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH', |
|
19 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH_DSC', |
|
20 | 20 | 'formtype' => 'textbox', |
21 | 21 | 'valuetype' => 'int', |
22 | 22 | 'default' => 1200, |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | |
25 | 25 | $modversion['config'][] = [ |
26 | 26 | 'name' => 'imageHeight', |
27 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', |
|
28 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', |
|
27 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT', |
|
28 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT_DSC', |
|
29 | 29 | 'formtype' => 'textbox', |
30 | 30 | 'valuetype' => 'int', |
31 | 31 | 'default' => 800, |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | |
34 | 34 | $modversion['config'][] = [ |
35 | 35 | 'name' => 'imageUploadPath', |
36 | - 'title' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', |
|
37 | - 'description' => 'CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', |
|
36 | + 'title' => 'CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH', |
|
37 | + 'description' => 'CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH_DSC', |
|
38 | 38 | 'formtype' => 'textbox', |
39 | 39 | 'valuetype' => 'text', |
40 | - 'default' => 'uploads/' . $modversion['dirname'] . '/images', |
|
40 | + 'default' => 'uploads/'.$modversion['dirname'].'/images', |
|
41 | 41 | ]; |
@@ -4,31 +4,31 @@ |
||
4 | 4 | * @see https://www.php-fig.org/psr/psr-4/examples/ |
5 | 5 | */ |
6 | 6 | spl_autoload_register( |
7 | - static function ($class): void { |
|
8 | - // project-specific namespace prefix |
|
9 | - $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
|
7 | + static function ($class): void { |
|
8 | + // project-specific namespace prefix |
|
9 | + $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
|
10 | 10 | |
11 | - // base directory for the namespace prefix |
|
12 | - $baseDir = \dirname(__DIR__) . '/class/'; |
|
11 | + // base directory for the namespace prefix |
|
12 | + $baseDir = \dirname(__DIR__) . '/class/'; |
|
13 | 13 | |
14 | - // does the class use the namespace prefix? |
|
15 | - $len = mb_strlen($prefix); |
|
14 | + // does the class use the namespace prefix? |
|
15 | + $len = mb_strlen($prefix); |
|
16 | 16 | |
17 | - if (0 !== strncmp($prefix, $class, $len)) { |
|
18 | - return; |
|
19 | - } |
|
17 | + if (0 !== strncmp($prefix, $class, $len)) { |
|
18 | + return; |
|
19 | + } |
|
20 | 20 | |
21 | - // get the relative class name |
|
22 | - $relativeClass = mb_substr($class, $len); |
|
21 | + // get the relative class name |
|
22 | + $relativeClass = mb_substr($class, $len); |
|
23 | 23 | |
24 | - // replace the namespace prefix with the base directory, replace namespace |
|
25 | - // separators with directory separators in the relative class name, append |
|
26 | - // with .php |
|
27 | - $file = $baseDir . str_replace('\\', '/', $relativeClass) . '.php'; |
|
24 | + // replace the namespace prefix with the base directory, replace namespace |
|
25 | + // separators with directory separators in the relative class name, append |
|
26 | + // with .php |
|
27 | + $file = $baseDir . str_replace('\\', '/', $relativeClass) . '.php'; |
|
28 | 28 | |
29 | - // if the file exists, require it |
|
30 | - if (is_file($file)) { |
|
31 | - require_once $file; |
|
32 | - } |
|
33 | - } |
|
29 | + // if the file exists, require it |
|
30 | + if (is_file($file)) { |
|
31 | + require_once $file; |
|
32 | + } |
|
33 | + } |
|
34 | 34 | ); |
@@ -4,12 +4,12 @@ discard block |
||
4 | 4 | * @see https://www.php-fig.org/psr/psr-4/examples/ |
5 | 5 | */ |
6 | 6 | spl_autoload_register( |
7 | - static function ($class): void { |
|
7 | + static function($class): void { |
|
8 | 8 | // project-specific namespace prefix |
9 | - $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
|
9 | + $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__))); |
|
10 | 10 | |
11 | 11 | // base directory for the namespace prefix |
12 | - $baseDir = \dirname(__DIR__) . '/class/'; |
|
12 | + $baseDir = \dirname(__DIR__).'/class/'; |
|
13 | 13 | |
14 | 14 | // does the class use the namespace prefix? |
15 | 15 | $len = mb_strlen($prefix); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | // replace the namespace prefix with the base directory, replace namespace |
25 | 25 | // separators with directory separators in the relative class name, append |
26 | 26 | // with .php |
27 | - $file = $baseDir . str_replace('\\', '/', $relativeClass) . '.php'; |
|
27 | + $file = $baseDir.str_replace('\\', '/', $relativeClass).'.php'; |
|
28 | 28 | |
29 | 29 | // if the file exists, require it |
30 | 30 | if (is_file($file)) { |
@@ -20,12 +20,12 @@ |
||
20 | 20 | */ |
21 | 21 | class MyiframeCorePreload extends \XoopsPreloadItem |
22 | 22 | { |
23 | - // to add PSR-4 autoloader |
|
24 | - /** |
|
25 | - * @param $args |
|
26 | - */ |
|
27 | - public static function eventCoreIncludeCommonEnd($args): void |
|
28 | - { |
|
29 | - require_once __DIR__ . '/autoloader.php'; |
|
30 | - } |
|
23 | + // to add PSR-4 autoloader |
|
24 | + /** |
|
25 | + * @param $args |
|
26 | + */ |
|
27 | + public static function eventCoreIncludeCommonEnd($args): void |
|
28 | + { |
|
29 | + require_once __DIR__ . '/autoloader.php'; |
|
30 | + } |
|
31 | 31 | } |
@@ -26,6 +26,6 @@ |
||
26 | 26 | */ |
27 | 27 | public static function eventCoreIncludeCommonEnd($args): void |
28 | 28 | { |
29 | - require_once __DIR__ . '/autoloader.php'; |
|
29 | + require_once __DIR__.'/autoloader.php'; |
|
30 | 30 | } |
31 | 31 | } |
@@ -21,63 +21,63 @@ |
||
21 | 21 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
22 | 22 | |
23 | 23 | return (object)[ |
24 | - 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
25 | - 'paths' => [ |
|
26 | - 'dirname' => $moduleDirName, |
|
27 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
32 | - ], |
|
33 | - 'uploadFolders' => [ |
|
34 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
37 | - //XOOPS_UPLOAD_PATH . '/flags' |
|
38 | - ], |
|
39 | - 'copyBlankFiles' => [ |
|
40 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
43 | - //XOOPS_UPLOAD_PATH . '/flags' |
|
44 | - ], |
|
24 | + 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
25 | + 'paths' => [ |
|
26 | + 'dirname' => $moduleDirName, |
|
27 | + 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | + 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | + 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | + 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | + 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
32 | + ], |
|
33 | + 'uploadFolders' => [ |
|
34 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
37 | + //XOOPS_UPLOAD_PATH . '/flags' |
|
38 | + ], |
|
39 | + 'copyBlankFiles' => [ |
|
40 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | + XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
43 | + //XOOPS_UPLOAD_PATH . '/flags' |
|
44 | + ], |
|
45 | 45 | |
46 | - 'copyTestFolders' => [ |
|
47 | - //[ |
|
48 | - // constant($moduleDirNameUpper . '_PATH') . '/testdata/images', |
|
49 | - // XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
50 | - //] |
|
51 | - ], |
|
46 | + 'copyTestFolders' => [ |
|
47 | + //[ |
|
48 | + // constant($moduleDirNameUpper . '_PATH') . '/testdata/images', |
|
49 | + // XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
50 | + //] |
|
51 | + ], |
|
52 | 52 | |
53 | - 'templateFolders' => [ |
|
54 | - '/templates/', |
|
55 | - '/templates/blocks/', |
|
56 | - '/templates/admin/', |
|
57 | - ], |
|
58 | - 'oldFiles' => [ |
|
59 | - '/class/request.php', |
|
60 | - '/class/registry.php', |
|
61 | - '/class/utilities.php', |
|
62 | - '/class/util.php', |
|
63 | - // '/include/constants.php', |
|
64 | - // '/include/functions.php', |
|
65 | - '/ajaxrating.txt', |
|
66 | - ], |
|
67 | - 'oldFolders' => [ |
|
68 | - '/images', |
|
69 | - '/css', |
|
70 | - '/js', |
|
71 | - '/tcpdf', |
|
72 | - '/images', |
|
73 | - ], |
|
74 | - 'renameTables' => [// 'XX_archive' => 'ZZZZ_archive', |
|
75 | - ], |
|
76 | - 'moduleStats' => [ |
|
77 | - // 'totalcategories' => $helper->getHandler('Category')->getCategoriesCount(-1), |
|
78 | - // 'totalitems' => $helper->getHandler('Item')->getItemsCount(), |
|
79 | - // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
|
80 | - ], |
|
81 | - 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
|
53 | + 'templateFolders' => [ |
|
54 | + '/templates/', |
|
55 | + '/templates/blocks/', |
|
56 | + '/templates/admin/', |
|
57 | + ], |
|
58 | + 'oldFiles' => [ |
|
59 | + '/class/request.php', |
|
60 | + '/class/registry.php', |
|
61 | + '/class/utilities.php', |
|
62 | + '/class/util.php', |
|
63 | + // '/include/constants.php', |
|
64 | + // '/include/functions.php', |
|
65 | + '/ajaxrating.txt', |
|
66 | + ], |
|
67 | + 'oldFolders' => [ |
|
68 | + '/images', |
|
69 | + '/css', |
|
70 | + '/js', |
|
71 | + '/tcpdf', |
|
72 | + '/images', |
|
73 | + ], |
|
74 | + 'renameTables' => [// 'XX_archive' => 'ZZZZ_archive', |
|
75 | + ], |
|
76 | + 'moduleStats' => [ |
|
77 | + // 'totalcategories' => $helper->getHandler('Category')->getCategoriesCount(-1), |
|
78 | + // 'totalitems' => $helper->getHandler('Item')->getItemsCount(), |
|
79 | + // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
|
80 | + ], |
|
81 | + 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
|
82 | 82 | <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>", |
83 | 83 | ]; |
@@ -20,26 +20,26 @@ discard block |
||
20 | 20 | $moduleDirName = \basename(\dirname(__DIR__)); |
21 | 21 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
22 | 22 | |
23 | -return (object)[ |
|
24 | - 'name' => $moduleDirNameUpper . ' Module Configurator', |
|
23 | +return (object) [ |
|
24 | + 'name' => $moduleDirNameUpper.' Module Configurator', |
|
25 | 25 | 'paths' => [ |
26 | 26 | 'dirname' => $moduleDirName, |
27 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
28 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
29 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
30 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
31 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
27 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
28 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
29 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
30 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
31 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
32 | 32 | ], |
33 | 33 | 'uploadFolders' => [ |
34 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
35 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
36 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
34 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
35 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category', |
|
36 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
37 | 37 | //XOOPS_UPLOAD_PATH . '/flags' |
38 | 38 | ], |
39 | 39 | 'copyBlankFiles' => [ |
40 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
41 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category', |
|
42 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots', |
|
40 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
41 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category', |
|
42 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots', |
|
43 | 43 | //XOOPS_UPLOAD_PATH . '/flags' |
44 | 44 | ], |
45 | 45 | |
@@ -79,5 +79,5 @@ discard block |
||
79 | 79 | // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]), |
80 | 80 | ], |
81 | 81 | 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
82 | - <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>", |
|
82 | + <img src='" . Admin::iconUrl('xoopsmicrobutton.gif')."' alt='XOOPS Project'></a>", |
|
83 | 83 | ]; |
@@ -38,19 +38,19 @@ discard block |
||
38 | 38 | //$downloadHandler = new Myiframe\DownloadHandler($db); |
39 | 39 | |
40 | 40 | if (!defined($moduleDirNameUpper . '_CONSTANTS_DEFINED')) { |
41 | - define($moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__))); |
|
42 | - define($moduleDirNameUpper . '_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/'); |
|
43 | - define($moduleDirNameUpper . '_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/'); |
|
44 | - define($moduleDirNameUpper . '_URL', XOOPS_URL . '/modules/' . $moduleDirName . '/'); |
|
45 | - define($moduleDirNameUpper . '_IMAGE_URL', constant($moduleDirNameUpper . '_URL') . '/assets/images/'); |
|
46 | - define($moduleDirNameUpper . '_IMAGE_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/assets/images'); |
|
47 | - define($moduleDirNameUpper . '_ADMIN_URL', constant($moduleDirNameUpper . '_URL') . '/admin/'); |
|
48 | - define($moduleDirNameUpper . '_ADMIN_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/admin/'); |
|
49 | - define($moduleDirNameUpper . '_ADMIN', constant($moduleDirNameUpper . '_URL') . '/admin/index.php'); |
|
50 | - define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', constant($moduleDirNameUpper . '_URL') . '/assets/images/logoModule.png'); |
|
51 | - define($moduleDirNameUpper . '_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
52 | - define($moduleDirNameUpper . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
53 | - define($moduleDirNameUpper . '_CONSTANTS_DEFINED', 1); |
|
41 | + define($moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__))); |
|
42 | + define($moduleDirNameUpper . '_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/'); |
|
43 | + define($moduleDirNameUpper . '_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/'); |
|
44 | + define($moduleDirNameUpper . '_URL', XOOPS_URL . '/modules/' . $moduleDirName . '/'); |
|
45 | + define($moduleDirNameUpper . '_IMAGE_URL', constant($moduleDirNameUpper . '_URL') . '/assets/images/'); |
|
46 | + define($moduleDirNameUpper . '_IMAGE_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/assets/images'); |
|
47 | + define($moduleDirNameUpper . '_ADMIN_URL', constant($moduleDirNameUpper . '_URL') . '/admin/'); |
|
48 | + define($moduleDirNameUpper . '_ADMIN_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/admin/'); |
|
49 | + define($moduleDirNameUpper . '_ADMIN', constant($moduleDirNameUpper . '_URL') . '/admin/index.php'); |
|
50 | + define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', constant($moduleDirNameUpper . '_URL') . '/assets/images/logoModule.png'); |
|
51 | + define($moduleDirNameUpper . '_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
52 | + define($moduleDirNameUpper . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
53 | + define($moduleDirNameUpper . '_CONSTANTS_DEFINED', 1); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $pathIcon16 = Admin::iconUrl('', '16'); |
@@ -59,15 +59,15 @@ discard block |
||
59 | 59 | //$pathModIcon32 = $helper->getModule()->getInfo('modicons32'); |
60 | 60 | |
61 | 61 | $icons = [ |
62 | - 'edit' => "<img src='" . $pathIcon16 . "/edit.png' alt=" . _EDIT . "' align='middle'>", |
|
63 | - 'delete' => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>", |
|
64 | - 'clone' => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>", |
|
65 | - 'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>", |
|
66 | - 'print' => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>", |
|
67 | - 'pdf' => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>", |
|
68 | - 'add' => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>", |
|
69 | - '0' => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>", |
|
70 | - '1' => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>", |
|
62 | + 'edit' => "<img src='" . $pathIcon16 . "/edit.png' alt=" . _EDIT . "' align='middle'>", |
|
63 | + 'delete' => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>", |
|
64 | + 'clone' => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>", |
|
65 | + 'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>", |
|
66 | + 'print' => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>", |
|
67 | + 'pdf' => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>", |
|
68 | + 'add' => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>", |
|
69 | + '0' => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>", |
|
70 | + '1' => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>", |
|
71 | 71 | ]; |
72 | 72 | |
73 | 73 | $debug = false; |
@@ -76,16 +76,16 @@ discard block |
||
76 | 76 | $myts = \MyTextSanitizer::getInstance(); |
77 | 77 | |
78 | 78 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof \XoopsTpl)) { |
79 | - require_once $GLOBALS['xoops']->path('class/template.php'); |
|
80 | - $GLOBALS['xoopsTpl'] = new \XoopsTpl(); |
|
79 | + require_once $GLOBALS['xoops']->path('class/template.php'); |
|
80 | + $GLOBALS['xoopsTpl'] = new \XoopsTpl(); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | $GLOBALS['xoopsTpl']->assign('mod_url', $helper->url()); |
84 | 84 | // Local icons path |
85 | 85 | if (is_object($helper->getModule())) { |
86 | - $pathModIcon16 = $helper->getModule()->getInfo('modicons16'); |
|
87 | - $pathModIcon32 = $helper->getModule()->getInfo('modicons32'); |
|
86 | + $pathModIcon16 = $helper->getModule()->getInfo('modicons16'); |
|
87 | + $pathModIcon32 = $helper->getModule()->getInfo('modicons32'); |
|
88 | 88 | |
89 | - $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL . '/modules/' . $moduleDirName . '/' . $pathModIcon16); |
|
90 | - $GLOBALS['xoopsTpl']->assign('pathModIcon32', $pathModIcon32); |
|
89 | + $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL . '/modules/' . $moduleDirName . '/' . $pathModIcon16); |
|
90 | + $GLOBALS['xoopsTpl']->assign('pathModIcon32', $pathModIcon32); |
|
91 | 91 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | use Xmf\Module\Admin; |
19 | 19 | use XoopsModules\Myiframe; |
20 | 20 | |
21 | -require_once \dirname(__DIR__) . '/preloads/autoloader.php'; |
|
21 | +require_once \dirname(__DIR__).'/preloads/autoloader.php'; |
|
22 | 22 | |
23 | 23 | $moduleDirName = \basename(\dirname(__DIR__)); |
24 | 24 | $moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
@@ -37,20 +37,20 @@ discard block |
||
37 | 37 | //$categoryHandler = new Myiframe\CategoryHandler($db); |
38 | 38 | //$downloadHandler = new Myiframe\DownloadHandler($db); |
39 | 39 | |
40 | -if (!defined($moduleDirNameUpper . '_CONSTANTS_DEFINED')) { |
|
41 | - define($moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__))); |
|
42 | - define($moduleDirNameUpper . '_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/'); |
|
43 | - define($moduleDirNameUpper . '_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/'); |
|
44 | - define($moduleDirNameUpper . '_URL', XOOPS_URL . '/modules/' . $moduleDirName . '/'); |
|
45 | - define($moduleDirNameUpper . '_IMAGE_URL', constant($moduleDirNameUpper . '_URL') . '/assets/images/'); |
|
46 | - define($moduleDirNameUpper . '_IMAGE_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/assets/images'); |
|
47 | - define($moduleDirNameUpper . '_ADMIN_URL', constant($moduleDirNameUpper . '_URL') . '/admin/'); |
|
48 | - define($moduleDirNameUpper . '_ADMIN_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/admin/'); |
|
49 | - define($moduleDirNameUpper . '_ADMIN', constant($moduleDirNameUpper . '_URL') . '/admin/index.php'); |
|
50 | - define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', constant($moduleDirNameUpper . '_URL') . '/assets/images/logoModule.png'); |
|
51 | - define($moduleDirNameUpper . '_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
52 | - define($moduleDirNameUpper . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName); // WITHOUT Trailing slash |
|
53 | - define($moduleDirNameUpper . '_CONSTANTS_DEFINED', 1); |
|
40 | +if (!defined($moduleDirNameUpper.'_CONSTANTS_DEFINED')) { |
|
41 | + define($moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__))); |
|
42 | + define($moduleDirNameUpper.'_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/'); |
|
43 | + define($moduleDirNameUpper.'_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/'); |
|
44 | + define($moduleDirNameUpper.'_URL', XOOPS_URL.'/modules/'.$moduleDirName.'/'); |
|
45 | + define($moduleDirNameUpper.'_IMAGE_URL', constant($moduleDirNameUpper.'_URL').'/assets/images/'); |
|
46 | + define($moduleDirNameUpper.'_IMAGE_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/assets/images'); |
|
47 | + define($moduleDirNameUpper.'_ADMIN_URL', constant($moduleDirNameUpper.'_URL').'/admin/'); |
|
48 | + define($moduleDirNameUpper.'_ADMIN_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/admin/'); |
|
49 | + define($moduleDirNameUpper.'_ADMIN', constant($moduleDirNameUpper.'_URL').'/admin/index.php'); |
|
50 | + define($moduleDirNameUpper.'_AUTHOR_LOGOIMG', constant($moduleDirNameUpper.'_URL').'/assets/images/logoModule.png'); |
|
51 | + define($moduleDirNameUpper.'_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.$moduleDirName); // WITHOUT Trailing slash |
|
52 | + define($moduleDirNameUpper.'_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.$moduleDirName); // WITHOUT Trailing slash |
|
53 | + define($moduleDirNameUpper.'_CONSTANTS_DEFINED', 1); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $pathIcon16 = Admin::iconUrl('', '16'); |
@@ -59,15 +59,15 @@ discard block |
||
59 | 59 | //$pathModIcon32 = $helper->getModule()->getInfo('modicons32'); |
60 | 60 | |
61 | 61 | $icons = [ |
62 | - 'edit' => "<img src='" . $pathIcon16 . "/edit.png' alt=" . _EDIT . "' align='middle'>", |
|
63 | - 'delete' => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>", |
|
64 | - 'clone' => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>", |
|
65 | - 'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>", |
|
66 | - 'print' => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>", |
|
67 | - 'pdf' => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>", |
|
68 | - 'add' => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>", |
|
69 | - '0' => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>", |
|
70 | - '1' => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>", |
|
62 | + 'edit' => "<img src='".$pathIcon16."/edit.png' alt="._EDIT."' align='middle'>", |
|
63 | + 'delete' => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>", |
|
64 | + 'clone' => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>", |
|
65 | + 'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>", |
|
66 | + 'print' => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>", |
|
67 | + 'pdf' => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>", |
|
68 | + 'add' => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>", |
|
69 | + '0' => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>", |
|
70 | + '1' => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>", |
|
71 | 71 | ]; |
72 | 72 | |
73 | 73 | $debug = false; |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | $pathModIcon16 = $helper->getModule()->getInfo('modicons16'); |
87 | 87 | $pathModIcon32 = $helper->getModule()->getInfo('modicons32'); |
88 | 88 | |
89 | - $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL . '/modules/' . $moduleDirName . '/' . $pathModIcon16); |
|
89 | + $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL.'/modules/'.$moduleDirName.'/'.$pathModIcon16); |
|
90 | 90 | $GLOBALS['xoopsTpl']->assign('pathModIcon32', $pathModIcon32); |
91 | 91 | } |