', '\\\\\\\\', '$[Indented text]',
'$GUIButtonDirUrlFmt/indent.gif"$[Indented text]"');
$GUIButtons ['outdent'] = array($ArrayCount++, '\\n-<', '\\\\\\\\', '$[Hanging indent]',
'$GUIButtonDirUrlFmt/outdent.gif"$[Hanging indent]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
$GUIButtons ['big'] = array($ArrayCount++, "[+", "+]", '$[Big Text]',
'$GUIButtonDirUrlFmt/big.gif"$[Big Text]"');
$GUIButtons ['bigger'] = array($ArrayCount++, '[++', '++]', '$[Bigger Text]',
'$GUIButtonDirUrlFmt/bigger.gif"$[Larger Text]"');
$GUIButtons ['small'] = array($ArrayCount++, "[-", "-]", '$[small text]',
'$GUIButtonDirUrlFmt/small.gif"$[small text]"');
$GUIButtons ['smaller'] = array($ArrayCount++, '[--', '--]', '$[smaller text]',
'$GUIButtonDirUrlFmt/smaller.gif"$[tiny text]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
$GUIButtons ['code'] = array($ArrayCount++, '[@', '@]', '$[Text or Code]',
'$GUIButtonDirUrlFmt/code.gif"$[Preformatted text]"');
$GUIButtons ['h2'] = array($ArrayCount++, '\\n!! ', '\\n', '$[Heading2]',
'$GUIButtonDirUrlFmt/h2.gif"$[Heading2]"');
$GUIButtons ['h3'] = array($ArrayCount++, '\\n!!! ', '\\n', '$[Heading3]',
'$GUIButtonDirUrlFmt/h3.gif"$[Heading3]"');
$GUIButtons ['h4'] = array($ArrayCount++, '\\n!!!! ', '\\n', '$[Heading4]',
'$GUIButtonDirUrlFmt/h4.gif"$[Heading4]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
$GUIButtons ['table'] = array($ArrayCount++, '||border=1 width=80%\\n||!Hdr ||!Hdr ||!Hdr ||\\n|| || || ||\\n|| || || ||\\n', '', '',
'$GUIButtonDirUrlFmt/table.gif"$[Tabelle]"');
$GUIButtons ['advtable'] = array($ArrayCount++, "(:table border=1 width=80%:)\\n(:cellnr:)'''Header'''\\n(:cell:)'''Header'''\\n(:cell:)'''Header'''\\n(:cellnr:)\\n(:cell:)\\n(:cell:)\\n(:tableend:)\\n",'', '','$GUIButtonDirUrlFmt/tableadv.gif"$[Erweiterte Tabelle]"');
$GUIButtons ['sig'] = array($ArrayCount++, '\\n~~~~', '', '',
'$GUIButtonDirUrlFmt/sig.gif"$[Signatur/Zeitstempel]"');
# Seitenname und Keywords --- dsc, 22.10.2010
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '',$GUIButtonSpace1);
$GUIButtons ['title'] = array($ArrayCount++, '\\n(:title ', ':)', '',
'$GUIButtonDirUrlFmt/title.gif"$[Seitentitel]"');
$GUIButtons ['keywordtags'] = array($ArrayCount++, '\\n(:keywordsTags: keyword1, keyword2, keyword3', ':)', '',
'$GUIButtonDirUrlFmt/keyword.gif"$[Keywords]"');
$GUIButtons ['passlink'] = array($ArrayCount++, 'Zugangsdaten siehe: %newwin%[[Dokumente.Passwörter]]','', '',
'$GUIButtonDirUrlFmt/pagelink.gif"$[Link zur Passwortseite einfügen]"');
# Symbol Buttons 1
if($Symbols1) {
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
$GUIButtons['check'] = array($ArrayCount++, '\{check\}', '', '',
'$GUIButtonDirUrlFmt/check.gif"$[Check]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace0);
$GUIButtons['information'] = array($ArrayCount++, '\{information\}', '', '',
'$GUIButtonDirUrlFmt/information.gif"$[Information]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace0);
$GUIButtons['helpbubble'] = array($ArrayCount++, '\{helpbubble\}', '', '',
'$GUIButtonDirUrlFmt/helpbubble.gif"$[Frage]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace0);
}
// 2te Menuezeile
#Must be changed to one line - the $ must be escaped !
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '\\n->', '\\n', '$[2nd Line]', '
');
$GUIButtons ['pagelink'] = array($ArrayCount++, '[[',']]', '$[Page link]',
'$GUIButtonDirUrlFmt/pagelink.gif"$[Link to internal page]"');
$GUIButtons ['extlink'] = array($ArrayCount++, '[[',']]', '$[http:// | link text]',
'$GUIButtonDirUrlFmt/extlink.gif"$[Link to external page]"');
$GUIButtons ['anchor'] = array($ArrayCount++, '[[#', ']]', '$[AnchorName]',
'$GUIButtonDirUrlFmt/anchor.gif"$[Invisible Anchor to Link To]"');
$GUIButtons ['anchorlink'] = array($ArrayCount++, '[[#', '$[| text]]]', '$[AnchorName]',
'$GUIButtonDirUrlFmt/anchorlink.gif"$[Link to Anchor in SAME page]"');
$GUIButtons ['anchor2'] = array($ArrayCount++, '[[', '$[#AnchorName | text]]]', '$[PageName]',
'$GUIButtonDirUrlFmt/anchor2.gif"$[Link to Anchor on DIFFERENT page]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace3);
$GUIButtons ['attach'] = array($ArrayCount++, 'Attach:','', '$[file.ext]',
'$GUIButtonDirUrlFmt/attach.gif"$[Attach File]"');
$GUIButtons ['image'] = array($ArrayCount++,
'%rframe text-align=left height=50px margin-top=7px margin-left=10px% [[Attach:',
" | Attach:$[SameImageName.jpg]"$[MOUSE HOVER TEXT]"]] | '$[-SUBTITLE-]'", '$[SameImageName.jpg]',
'$GUIButtonDirUrlFmt/image.gif"$[Thumbnail of Image floating right]"');
$GUIButtons ['ol'] = array($ArrayCount++, '\\n# ', '\\n', '$[Numbered list element]',
'$GUIButtonDirUrlFmt/ol.gif"$[Ordered list]"');
$GUIButtons ['ul'] = array($ArrayCount++, '\\n* ', '\\n', '$[Bullet list element]',
'$GUIButtonDirUrlFmt/ul.gif"$[Unordered list]"');
$GUIButtons ['hr'] = array($ArrayCount++, '\\n----\\n', '', '',
'$GUIButtonDirUrlFmt/hr.gif"$[Horizontal rule]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
$GUIButtons ['textblue'] = array($ArrayCount++, '%blue%', '%%', '$[Blue Text]',
'$GUIButtonDirUrlFmt/hightextblue.gif"$[Blue Text]"');
$GUIButtons ['textgreen'] = array($ArrayCount++, '%green%', '%%', '$[Green Text]',
'$GUIButtonDirUrlFmt/hightextgreen.gif"$[Green Text]"');
$GUIButtons ['textred'] = array($ArrayCount++, '%red%', '%%', '$[Red Text]',
'$GUIButtonDirUrlFmt/hightextred.gif"$[Red Text]"');
$GUIButtons ['textyellow'] = array($ArrayCount++, '%yellow%', '%%', '$[Yellow Text]',
'$GUIButtonDirUrlFmt/hightextyellow.gif"$[Yellow Text]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1);
$GUIButtons ['bgblue'] = array($ArrayCount++, '%bgcolor=blue%', '%%', '$[Background Blue]',
'$GUIButtonDirUrlFmt/highbgblue.gif"$[Blue Background]"');
$GUIButtons ['bggreen'] = array($ArrayCount++, '%bgcolor=green%', '%%', '$[Background Green]',
'$GUIButtonDirUrlFmt/highbggreen.gif"$[Green Background]"');
$GUIButtons ['bgred'] = array($ArrayCount++, '%bgcolor=red%', '%%', '$[Background Red]',
'$GUIButtonDirUrlFmt/highbgred.gif"$[Red Background]"');
$GUIButtons ['bgyellow'] = array($ArrayCount++, '%bgcolor=yellow%', '%%', '$[Background Yellow]',
'$GUIButtonDirUrlFmt/highbgyellow.gif"$[Yellow Background]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '',$GUIButtonSpace1);
$GUIButtons ['nextline'] = array($ArrayCount++, '\\\\\\\\\\n', '', '',
'$GUIButtonDirUrlFmt/nextline.gif"$[Line Break]"');
$GUIButtons ['nextline2'] = array($ArrayCount++, '\\\\\\\\\\\\\\n', '', '',
'$GUIButtonDirUrlFmt/nextline2.gif"$[2 Line Breaks]"');
$GUIButtons ['return'] = array($ArrayCount++, '[[<<]] //n', '', '',
'$GUIButtonDirUrlFmt/return.gif"$[ Return]"');
# Textbox "grau" und "gelb" --- dsc, 22.10.2010
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '',$GUIButtonSpace1);
$GUIButtons ['yellowbox'] = array($ArrayCount++, '%yellowbox%', '\\n>><<', '',
'$GUIButtonDirUrlFmt/yellowbox.gif"$[Textbox gelb]"');
$GUIButtons ['greybox'] = array($ArrayCount++, '%greybox%', '\\n>><<', '',
'$GUIButtonDirUrlFmt/greybox.gif"$[Textbox grau]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '',$GUIButtonSpace2);
# Symbol Buttons 2 --- dsc, 22.10.2010
if($Symbols2) {
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '',$GUIButtonSpace1);
$GUIButtons['forbidden'] = array($ArrayCount++, '\{forbidden\}', '', '',
'$GUIButtonDirUrlFmt/forbidden.gif"$[Verboten]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace0);
$GUIButtons['questionmark'] = array($ArrayCount++, '\{questionmark\}', '', '',
'$GUIButtonDirUrlFmt/help.gif"$[Frage]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace0);
$GUIButtons['lightbulb'] = array($ArrayCount++, '\{lightbulb\}', '', '',
'$GUIButtonDirUrlFmt/lightbulb.gif"$[Glühbirne]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace0);
$GUIButtons['warning'] = array($ArrayCount++, '\{warning\}', '', '',
'$GUIButtonDirUrlFmt/warning.gif"$[Warnung]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace0);
$GUIButtons['thumbs_up'] = array($ArrayCount++, '\{thumbs_up\}', '', '',
'$GUIButtonDirUrlFmt/thumbs_up.gif"$[Daumen hoch]"');
$GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace0);
$GUIButtons['thumbs_down'] = array($ArrayCount++, '\{thumbs_down\}', '', '',
'$GUIButtonDirUrlFmt/thumbs_down.gif"$[Daumen runter]"');
}
$HTMLHeaderFmt[] = "\n";
SDV($SmileyButtonsDirUrlFmt,"{$GUIButtonDirUrlFmt}/smileys");
# display symbol images
Markup("check","block","/\{check\}/","
");
Markup("information","block","/\{information\}/","
");
Markup("helpbubble","block","/\{helpbubble\}/","
");
Markup("forbidden","block","/\{forbidden\}/","
");
Markup("questionmark","block","/\{questionmark\}/","
");
Markup("lightbulb","block","/\{lightbulb\}/","
");
Markup("warning","block","/\{warning\}/","
");
Markup("thumbs_up","block","/\{thumbs_up\}/","
");
Markup("thumbs_down","block","/\{thumbs_down\}/","
");
#Markup("redface2","block","/\{redface\}/","
");
#Markup("mad2","block","/\{mad\}/","
");
Markup('guibuttons', 'directives',
'/\\(:guibuttons:\\)/e',
"Keep(FmtPageName(GUIButtonsMarkup(\$pagename), \$pagename))");
function GUIButtonsMarkup($pagename) {
global $GUIButtons, $ArrayCount, $SpaceCount; // *** AO *** //
$cmpfn = create_function('$a,$b', 'return $a[0]-$b[0];');
usort($GUIButtons, $cmpfn);
$out = "';
return $out;
}