Lines Matching refs:footnote
154 foreach ($this->footnotes as $id => $footnote) {
155 // check its not a placeholder that indicates actual footnote text is elsewhere
156 if (!str_starts_with($footnote, "@@FNT")) {
157 // open the footnote and set the anchor and backlink
171 // add footnote markup and close this footnote
172 $this->doc .= '<div class="content">' . $footnote . '</div>';
442 * Callback for footnote start syntax
444 * All following content will go to the footnote instead of
453 // move current content to store and record footnote
459 * Callback for footnote end syntax
470 // assign new footnote id (we start at 1)
473 // recover footnote into the stack and restore old content
474 $footnote = $this->doc;
478 // check to see if this footnote has been seen before
479 $i = array_search($footnote, $this->footnotes);
482 // its a new footnote, add it to the $footnotes array
483 $this->footnotes[$fnid] = $footnote;
489 // output the footnote reference and link