3 # this plugin is only utilized by WordIndex and PageIndex, but is
4 # in fact a ["list_pages"] plugin and could be used with others too
6 # links of the list are grouped into <table> blocks with the first
7 # letter as block title
10 $ewiki_plugins["list_dict"][0] = "ewiki_fancy_list_dict";
11 // ["list_pages"][0] = ...
15 function ewiki_fancy_list_dict($links) {
18 $o .= '<table border="0" cellpadding="3" cellspacing="2">' . "\n";
22 foreach ($links as $line) {
24 $nfl = strtoupper(substr($line, strpos($line, ">") + 1));
25 $nfl = strtr($nfl, "ÄÖÜß0123456789", "AOUS ");
26 while ((($nfl[0] < "A") || ($nfl[0] > "Z")) && ($nfl[0] != " ")) {
27 $nfl = substr($nfl, 1);
37 $o .= '<tr><td valign="top" align="center" width="22" bgcolor="#333333" color="#eeeeee" class="darker reverse"><h2>' .
38 ($lfl = $nfl) . '</h2></td>' .
49 $o .= "</td></tr>\n</table>\n";