Lines Matching +full:toc -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
88 * @param bool $prependTOC should the TOC be displayed here?
130 * Places the TOC where the function is called
135 * @param bool $return Should the TOC be returned instead to be printed?
142 global $TOC;
148 $toc = [];
150 if (is_array($TOC)) {
151 // if a TOC was prepared in global scope, always use it
152 $toc = $TOC;
154 // get TOC from metadata, render if neccessary
156 $tocok = $meta['internal']['toc'] ?? true;
157 $toc = $meta['description']['tableofcontents'] ?? null;
158 if (!$tocok || !is_array($toc) || !$conf['tocminheads'] || count($toc) < $conf['tocminheads']) {
159 $toc = [];
162 // try to load admin plugin TOC
165 $toc = $plugin->getTOC();
166 $TOC = $toc; // avoid later rebuild
170 Event::createAndTrigger('TPL_TOC_RENDER', $toc, null, false);
171 $html = html_TOC($toc);
187 global $TOC;
203 if (!is_array($TOC)) $TOC = $plugin->getTOC(); //if TOC wasn't requested yet
1676 global $TOC;
1677 $oldtoc = $TOC;
1679 $TOC = $oldtoc;