Lines Matching defs:toc

47             'toc'    => [],
518 $features[] = 'toc-cullapse-sub-sections';
1926 'toc' => ['tocAffix', 'mdi:view-list'],
2200 $toc = [];
2204 $toc = $TOC;
2208 if (isset($meta['internal']['toc'])) {
2209 $tocok = $meta['internal']['toc'];
2213 $toc = isset($meta['description']['tableofcontents']) ? $meta['description']['tableofcontents'] : null;
2214 if (!$tocok || !is_array($toc) || !$conf['tocminheads'] || count($toc) < $conf['tocminheads']) {
2215 $toc = [];
2221 $toc = $plugin->getTOC();
2222 $TOC = $toc; // avoid later rebuild
2226 $toc_check = end($toc);
2230 $toc_undefined = array_pop($toc);
2233 \dokuwiki\Extension\Event::createAndTrigger('TPL_TOC_RENDER', $toc, null, false);
2237 'theme', 'sidebar', 'navbar', 'semantic', 'layout', 'toc',
2243 $toc[] = [
2253 $toc[] = $toc_undefined;
2256 $html = $this->renderTOC($toc);
2272 * @param array $toc
2275 private function renderTOC($toc)
2277 if (!count($toc)) {
2285 foreach ($toc as $item) {
2294 $out .= '<script>JSINFO.bootstrap3.toc = ' . json_encode($json_toc) . ';</script>' . DOKU_LF;
2298 $out .= '<div class="dw-toc hidden-print">' . DOKU_LF;
2299 $out .= '<nav id="dw__toc" role="navigation" class="toc-panel panel panel-default small">' . DOKU_LF;
2300 $out .= '<h6 data-toggle="collapse" data-target="#dw__toc .toc-body" title="' . $lang['toc'] . '" class="panel-heading toc-title">' . iconify('mdi:view-list') . ' ';
2301 $out .= '<span>' . $lang['toc'] . '</span>';
2303 $out .= '<div class="panel-body toc-body collapse ' . (!$this->getConf('tocCollapsed') ? 'in' : '') . '">' . DOKU_LF;
2304 $out .= $this->normalizeList(html_buildlist($toc, 'nav toc', 'html_list_toc', 'html_li_default', true)) . DOKU_LF;