3 class Text_Wiki_Render_Latex_Interwiki
extends Text_Wiki_Render
{
7 'MeatBall' => 'http://www.usemod.com/cgi-bin/mb.pl?%s',
8 'Advogato' => 'http://advogato.org/%s',
9 'Wiki' => 'http://c2.com/cgi/wiki?%s'
17 * Renders a token into text matching the requested format.
21 * @param array $options The "options" portion of the token (second
24 * @return string The text rendered from the token options.
28 function token($options)
30 $site = $options['site'];
31 $page = $options['page'];
32 $text = $options['text'];
34 if (isset($this->conf
['sites'][$site])) {
35 $href = $this->conf
['sites'][$site];
40 // old form where page is at end,
41 // or new form with %s placeholder for sprintf()?
42 if (strpos($href, '%s') === false
) {
44 $href = $href . $page;
47 $href = sprintf($href, $page);
50 // allow for alternative targets
51 $target = $this->getConf('target', '');
53 if ($target && trim($target) != '') {
54 $target = " target=\"$target\"";
57 return "$text\\footnote\{$href}";