Source for file Toc.php
Documentation is available at Toc.php
// $Id: Toc.php,v 1.7 2004/09/25 19:05:14 pmjones Exp $
class Text_Wiki_Render_Xhtml_Toc extends Text_Wiki_Render {
'title' => '<strong>Table of Contents</strong>',
* Renders a token into text matching the requested format.
* @param array $options The "options" portion of the token (second
* @return string The text rendered from the token options.
// type, id, level, count, attr
$css = $this->getConf ('css_list');
$html .= " class=\"$css\"";
$div_id = $this->getConf ('div_id');
$html .= " id=\"$div_id\"";
$html .= $this->getConf ('title');
$css = $this->getConf ('css_item');
$html .= " class=\"$css\"";
$pad = ($level - $this->min);
$html .= " style=\"margin-left: {$pad}em;\">";
$html .= " <a href=\"#$id\">";
Documentation generated on Mon, 11 Mar 2019 14:22:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|