-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwhoswho.php
53 lines (43 loc) · 1.9 KB
/
whoswho.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* oledrion
*
* @copyright {@link https://xoops.org/ XOOPS Project}
* @license {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
* @author Hervé Thouzard (http://www.herve-thouzard.com/)
*/
/**
* Liste des fabricants
*/
use XoopsModules\Oledrion;
require_once __DIR__ . '/header.php';
$GLOBALS['current_category'] = -1;
$GLOBALS['xoopsOption']['template_main'] = 'oledrion_whoswho.tpl';
require_once XOOPS_ROOT_PATH . '/header.php';
$tblAll = $tblAnnuaire = [];
$xoopsTpl->assign('alphabet', $manufacturerHandler->getAlphabet());
$xoopsTpl->assign('mod_pref', $mod_pref); // Module Preferences
$manufacturers = $manufacturerHandler->getItems(0, 0, 'manu_name, manu_commercialname');
foreach ($manufacturers as $item) {
$forTemplate = [];
$forTemplate = $item->toArray();
$initiale = $item->getInitial();
$tblAnnuaire[$initiale][] = $forTemplate;
}
$xoopsTpl->assign('manufacturers', $tblAnnuaire);
Oledrion\Utility::setCSS();
Oledrion\Utility::setLocalCSS($xoopsConfig['language']);
$helper->loadLanguage('modinfo');
$xoopsTpl->assign('global_advert', Oledrion\Utility::getModuleOption('advertisement'));
$xoopsTpl->assign('breadcrumb', Oledrion\Utility::breadcrumb([OLEDRION_URL . basename(__FILE__) => _MI_OLEDRION_SMNAME5]));
$title = _MI_OLEDRION_SMNAME5 . ' - ' . Oledrion\Utility::getModuleName();
Oledrion\Utility::setMetas($title, $title);
require_once XOOPS_ROOT_PATH . '/footer.php';