|
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
|
|
|
* Wfdownloads module |
|
14
|
|
|
* |
|
15
|
|
|
* @copyright XOOPS Project (https://xoops.org) |
|
16
|
|
|
* @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html) |
|
17
|
|
|
* @package wfdownload |
|
18
|
|
|
* @since 3.23 |
|
19
|
|
|
* @author Xoops Development Team |
|
20
|
|
|
*/ |
|
21
|
|
|
// Module info/menu |
|
22
|
|
|
$moduleInfo = $helper->getModule()->getInfo(); |
|
23
|
|
|
//$xoopsTpl->assign('wfdownloadModuleInfo', $moduleInfo); // huge array but useful? |
|
24
|
|
|
$xoopsTpl->assign('wfdownloadModuleInfoSub', $moduleInfo['sub']); |
|
25
|
|
|
//display type |
|
26
|
|
|
$xoopsTpl->assign('displayType', $helper->getConfig('idxcat_items_display_type')); |
|
27
|
|
|
//$xoopsTpl->assign('display_category_summary', $helper->getConfig('cat_display_summary')); |
|
28
|
|
|
$xoopsTpl->assign('displayList', 'list' === $helper->getConfig('idxcat_items_display_type')); |
|
29
|
|
|
$xoopsTpl->assign('displayFull', 'full' === $helper->getConfig('idxcat_items_display_type')); |
|
30
|
|
|
$xoopsTpl->assign('displayLegacy', 'legacy' === $helper->getConfig('idxcat_items_display_type')); |
|
31
|
|
|
$xoopsTpl->assign('displayCatview', 'catview' === $helper->getConfig('idxcat_items_display_type')); |
|
32
|
|
|
$xoopsTpl->assign('module_dirname', $helper->getDirname()); |
|
33
|
|
|
$xoopsTpl->assign('showAlphabet', $helper->getConfig('showAlphabet')); |
|
34
|
|
|
$xoopsTpl->assign('showNewArrivals', $helper->getConfig('showNewArrivals')); |
|
35
|
|
|
|
|
36
|
|
|
// Module admin |
|
37
|
|
|
$xoopsTpl->assign('isAdmin', $helper->isUserAdmin()); |
|
38
|
|
|
$xoopsTpl->assign('wfdownloads_adminpage', "<a href='" . WFDOWNLOADS_URL . "/admin/index.php'>" . _MD_WFDOWNLOADS_ADMIN_PAGE . '</a>'); |
|
|
|
|
|
|
39
|
|
|
// Extra info |
|
40
|
|
|
$xoopsTpl->assign('wfdownloads_url', WFDOWNLOADS_URL . '/'); // this definition is not removed for backward compatibility issues |
|
41
|
|
|
$xoopsTpl->assign('ref_smartfactory', 'WFDownloads is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)'); |
|
42
|
|
|
|
|
43
|
|
|
require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
44
|
|
|
|