. */ function tpl_function_list_pages_from_context($params) { global $nk; if (empty($params['base'])) { if (!$nk->getCurrentPage()) return nk_plugin_error("{list_pages_from_context} paramètre base requis."); $params['base'] = $nk->getCurrentPage(); } $files = $nk->getPagesList($params['base']); if (empty($files)) return ''; $html = ' '; return $html; } ?>