Source for file Wikilink.php
Documentation is available at Wikilink.php
class Text_Wiki_Render_Latex_Wikilink extends Text_Wiki_Render {
'view_url' => 'http://example.com/index.php?page=%s',
'new_url' => 'http://example.com/new.php?page=%s',
* Renders a token into XHTML.
* @param array $options The "options" portion of the token (second
* @return string The text rendered from the token options.
// make nice variable names (page, anchor, text)
// are we checking page existence?
$list = & $this->getConf ('pages');
// yes, check against the page list
// convert *after* checking against page names so as not to mess
// up what the user typed and what we're checking.
$href = $this->getConf ('view_url');
if (strpos($href, '%s') === false ) {
// use the old form (page-at-end)
$href = $href . $page . $anchor;
// use the new form (sprintf format string)
$href = sprintf($href, $page . $anchor);
// get the CSS class and generate output
$css = $this->formatConf (' class="%s"', 'css');
return " $text\\footnote\{$href}";
Documentation generated on Mon, 11 Mar 2019 14:22:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|