config['lms_config']['module_form_id'] * (by default 1202). If the module ID change, the installation must be performed again. */ use YesWiki\Bazar\Field\BazarField; use YesWiki\Lms\Service\LearnerManager; $GLOBALS['wiki']->addJavascriptFile('tools/lms/libs/lms.js'); $learnerManager = $GLOBALS['wiki']->services->get(LearnerManager::class); // the current learner $learner = $learnerManager->getLearner(); // fields which will be hidden (the names used to identified the fields are given) if (!defined('FIELDS_TO_HIDE')) { define('FIELDS_TO_HIDE', [ 'checkboxfiche' . $GLOBALS['wiki']->config['lms_config']['activity_form_id'] . 'bf_activites', 'listeListeOuinonLmsbf_actif' ]); } // does the entry is viewed inside a modal box ? $moduleModal is true when the page was called in ajax $moduleModal = !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'; ?>