* * Version : $Id: * **************************************************************************** */ /** * Plan des catégories */ require 'header.php'; $GLOBALS['current_category'] = -1; $xoopsOption['template_main'] = 'oledrion_map.html'; require_once XOOPS_ROOT_PATH . '/header.php'; require_once OLEDRION_PATH . 'class/tree.php'; $xoopsTpl->assign('mod_pref', $mod_pref); // Préférences du module $categories = array(); $categories = $h_oledrion_cat->getAllCategories(new oledrion_parameters()); $mytree = new Oledrion_XoopsObjectTree($categories, 'cat_cid', 'cat_pid'); $tree = $mytree->makeTreeAsArray('cat_title', '-'); foreach ($tree as $key => $value) { if (isset($categories[$key])) { $category = $categories[$key]; $xoopsTpl->append('categories', array('cat_url_rewrited' => $category->getLink(), 'cat_href_title' => $category->getHrefTitle(), 'cat_title' => $value)); } } oledrion_utils::setCSS(); oledrion_utils::loadLanguageFile('modinfo.php'); $xoopsTpl->assign('global_advert', oledrion_utils::getModuleOption('advertisement')); $xoopsTpl->assign('breadcrumb', oledrion_utils::breadcrumb(array(OLEDRION_URL . basename(__FILE__) => _MI_OLEDRION_SMNAME4))); $title = _MI_OLEDRION_SMNAME4 . ' - ' . oledrion_utils::getModuleName(); oledrion_utils::setMetas($title, $title); require_once XOOPS_ROOT_PATH . '/footer.php';