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 | * oledrion |
||
14 | * |
||
15 | * @copyright {@link https://xoops.org/ XOOPS Project} |
||
16 | * @license {@link http://www.fsf.org/copyleft/gpl.html GNU public license} |
||
17 | * @author Hervé Thouzard (http://www.herve-thouzard.com/) |
||
18 | */ |
||
19 | |||
20 | /** |
||
21 | * Liste des fabricants |
||
22 | */ |
||
23 | |||
24 | use XoopsModules\Oledrion; |
||
25 | |||
26 | require_once __DIR__ . '/header.php'; |
||
27 | $GLOBALS['current_category'] = -1; |
||
28 | $GLOBALS['xoopsOption']['template_main'] = 'oledrion_whoswho.tpl'; |
||
29 | require_once XOOPS_ROOT_PATH . '/header.php'; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
30 | |||
31 | $tblAll = $tblAnnuaire = []; |
||
32 | $xoopsTpl->assign('alphabet', $manufacturerHandler->getAlphabet()); |
||
33 | $xoopsTpl->assign('mod_pref', $mod_pref); // Module Preferences |
||
34 | |||
35 | $manufacturers = $manufacturerHandler->getItems(0, 0, 'manu_name, manu_commercialname'); |
||
36 | foreach ($manufacturers as $item) { |
||
37 | $forTemplate = []; |
||
38 | $forTemplate = $item->toArray(); |
||
39 | $initiale = $item->getInitial(); |
||
40 | $tblAnnuaire[$initiale][] = $forTemplate; |
||
41 | } |
||
42 | $xoopsTpl->assign('manufacturers', $tblAnnuaire); |
||
43 | |||
44 | Oledrion\Utility::setCSS(); |
||
45 | Oledrion\Utility::setLocalCSS($xoopsConfig['language']); |
||
46 | $helper->loadLanguage('modinfo'); |
||
47 | |||
48 | $xoopsTpl->assign('global_advert', Oledrion\Utility::getModuleOption('advertisement')); |
||
49 | $xoopsTpl->assign('breadcrumb', Oledrion\Utility::breadcrumb([OLEDRION_URL . basename(__FILE__) => _MI_OLEDRION_SMNAME5])); |
||
50 | |||
51 | $title = _MI_OLEDRION_SMNAME5 . ' - ' . Oledrion\Utility::getModuleName(); |
||
52 | Oledrion\Utility::setMetas($title, $title); |
||
53 | require_once XOOPS_ROOT_PATH . '/footer.php'; |
||
54 |