|
1
|
|
|
<?php |
|
2
|
|
|
/* |
|
3
|
|
|
You may not change or alter any portion of this comment or credits |
|
4
|
|
|
of supporting developers from this source code or any supporting source code |
|
5
|
|
|
which is considered copyrighted (c) material of the original comment or credit authors. |
|
6
|
|
|
|
|
7
|
|
|
This program is distributed in the hope that it will be useful, |
|
8
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
9
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
/** |
|
13
|
|
|
* My Module module for xoops |
|
14
|
|
|
* |
|
15
|
|
|
* @copyright 2020 XOOPS Project (https://xooops.org) |
|
16
|
|
|
* @license GPL 2.0 or later |
|
17
|
|
|
* @package mymodule |
|
18
|
|
|
* @since 1.0 |
|
19
|
|
|
* @min_xoops 2.5.9 |
|
20
|
|
|
* @author TDM XOOPS - Email:<[email protected]> - Website:<http://xoops.org> |
|
21
|
|
|
*/ |
|
22
|
|
|
|
|
23
|
|
|
use Xmf\Request; |
|
24
|
|
|
use XoopsModules\Mymodule; |
|
25
|
|
|
use XoopsModules\Mymodule\Constants; |
|
26
|
|
|
|
|
27
|
|
|
require __DIR__ . '/header.php'; |
|
28
|
|
|
$artId = Request::getInt('art_id', 0); |
|
29
|
|
|
$GLOBALS['xoopsOption']['template_main'] = 'mymodule_index.tpl'; |
|
30
|
|
|
include_once XOOPS_ROOT_PATH . '/header.php'; |
|
31
|
|
|
// ------------------- Define Stylesheet ------------------- // |
|
32
|
|
|
$GLOBALS['xoTheme']->addStylesheet( $style, null ); |
|
33
|
|
|
$keywords = array(); |
|
34
|
|
|
// ------------------- Breadcrumbs ------------------- // |
|
35
|
|
|
$xoBreadcrumbs[] = ['title' => ARTICLES_MA_MYMODULE_]; |
|
|
|
|
|
|
36
|
|
|
// ------------------- Keywords ------------------- // |
|
37
|
|
|
mymoduleMetaKeywords($helper->getConfig('keywords').', '. implode(',', $keywords)); |
|
38
|
|
|
unset($keywords); |
|
39
|
|
|
// ------------------- Description ------------------- // |
|
40
|
|
|
mymoduleMetaDescription(DESC_MA_MYMODULE__DESC); |
|
|
|
|
|
|
41
|
|
|
$GLOBALS['xoopsTpl']->assign('xoops_mpageurl', MYMODULE_URL.'/index.php'); |
|
42
|
|
|
$GLOBALS['xoopsTpl']->assign('xoops_icons32_url', XOOPS_ICONS32_URL); |
|
43
|
|
|
$GLOBALS['xoopsTpl']->assign('mymodule_upload_url', MYMODULE_UPLOAD_URL); |
|
44
|
|
|
require __DIR__ . '/footer.php'; |
|
45
|
|
|
|