public function getFootnotes($raw = false)
    {
        if ($raw === true)
            return ($this->_footnotes);
        if (empty($this->_footnotes))
            return (null);
        $footnotes = '';
        $index = 1;
        foreach ($this->_footnotes as $note) {
            $id = $this->getParam('footnotesPrefix') . "-$index";
            $noteHtml = "<p class=\"footnote\"><a href=\"#cite_ref-$id\" name=\"cite_note-$id\" id=\"cite_note-$id\">";
            if (is_string($note))
                $noteHtml .= "$index</a>. $note";
            else
                $noteHtml .= htmlspecialchars($note['label']) . "</a>. " . $note['text'];
            $noteHtml .= "</p>\n";
            $footnotes .= $noteHtml;
            $index++;
        }
        $footnotes = "<div class=\"footnotes\">\n$footnotes</div>\n";
        return ($footnotes);
    }
public function getFootnotes($raw = false)
    {
        if ($raw === true)
            return ($this->_footnotes);
        if (empty($this->_footnotes))
            return (null);
        $footnotes = '';
        $index = 1;
        foreach ($this->_footnotes as $note) {
            $id = $this->getParam('footnotesPrefix') . "-$index";
            $noteHtml = "<p class=\"footnote\"><a href=\"#cite_ref-$id\" name=\"cite_note-$id\" id=\"cite_note-$id\">";
            if (is_string($note))
                $noteHtml .= "$index</a>. $note";
            else
                $noteHtml .= htmlspecialchars($note['label']) . "</a>. " . $note['text'];
            $noteHtml .= "</p>\n";
            $footnotes .= $noteHtml;
            $index++;
        }
        $footnotes = "<div class=\"footnotes\">\n$footnotes</div>\n";
        return ($footnotes);
    }
public function getFootnotes ( $ raw = false ) { if ( $ raw === true ) return ( $ this -> _footnotes ) ; if ( empty ( $ this -> _footnotes ) ) return ( null ) ; $ footnotes = '' ; $ index = 1 ; foreach ( $ this -> _footnotes as $ note ) { $ id = $ this -> getParam ( 'footnotesPrefix' ) . "-$index" ; $ noteHtml = "<p class=\"footnote\"><a href=\"#cite_ref-$id\" name=\"cite_note-$id\" id=\"cite_note-$id\">" ; if ( is_string ( $ note ) ) $ noteHtml .= "$index</a>. $note" ; else $ noteHtml .= htmlspecialchars ( $ note [ 'label' ] ) . "</a>. " . $ note [ 'text' ] ; $ noteHtml .= "</p>\n" ; $ footnotes .= $ noteHtml ; $ index ++ ; } $ footnotes = "<div class=\"footnotes\">\n$footnotes</div>\n" ; return ( $ footnotes ) ; }
Returns the footnotes content. By default, the rendered HTML is returned, but the
raw list of footnotes is available.
@param    bool $raw (optional) Set to True to get the raw list of footnotes.
False by default.
@return    string|array    The footnotes' rendered HTML or the list of footnotes.
Returns the footnotes content . By default the rendered HTML is returned but the raw list of footnotes is available .