changed git call from https to git readonly
[atutor.git] / mods / wiki / plugins / page / interwikimap.php
1 <?php
2
3 # prints out the list of known InterWiki:ShortCuts
4 # (using a <dl>)
5
6
7 $ewiki_plugins["page"]["InterWikiMap"] = "ewiki_page_interwikimap";
8
9
10 function ewiki_page_interwikimap($id, $data, $action) {
11
12    global $ewiki_config;
13
14    $o = ewiki_make_title($id, $id, 1);
15
16    $o .= '<dl id="InterWikiMap">'."\n";
17    foreach ($ewiki_config["interwiki"] as $shortcut=>$url) {
18       $o .= "<dt>$shortcut:</dt>\n".
19            "   <dd><a href=\"$url\">$url</a></dd>\n";
20    }
21    $o .= "</dl>";
22    
23    return($o);
24 }
25
26 ?>