public function preferencesAction() { $title = _T('Preferences'); $path = DirectoryHelper::slashDirname(FrontController::DOCBOOK_ASSETS) . 'USER_PREFERENCES.md'; $page_infos = array('name' => 'USER_PREFERENCES.md', 'path' => 'prefs', 'update' => Helper::getDateTimeFromTimestamp(filemtime($path))); $tpl_params = array('breadcrumbs' => array($title), 'title' => $title, 'page' => $page_infos, 'page_tools' => 'false'); $file_content = file_get_contents($path); $md_parser = $this->docbook->getMarkdownParser(); $md_content = $md_parser->transformString($file_content); $output_bag = $md_parser->get('OutputFormatBag'); $menu = $output_bag->getHelper()->getToc($md_content, $output_bag->getFormatter()); $content = $this->docbook->display($md_content->getBody(), 'admin_panel', array('page' => $page_infos, 'page_tools' => 'false', 'page_title' => 'true', 'page_notes' => $md_content->getNotesToString(), 'title' => $title, 'toc' => $menu, 'config' => $this->docbook->getRegistry()->getConfigs())); return array('default', $content, $tpl_params); }