<?php if (!defined('PmWiki')) exit(); $RecipeInfo['GuiEdit']['Version'] = '2010-10-22 DSC'; $Symbols1 = '1'; $Symbols2 = '1'; ## The following lines make additional editing buttons appear in the ## edit page for subheadings, lists, tables, etc. ###### GUI Buttons ###### $GUIButtonDirUrlFmt = $PubDirUrl.'/MyGuiEdit'; $GUIButtonSpace0 = '$GUIButtonDirUrlFmt/space0.gif'; $GUIButtonSpace1 = '$GUIButtonDirUrlFmt/space1.gif'; $GUIButtonSpace2 = '$GUIButtonDirUrlFmt/space2.gif'; $GUIButtonSpace3 = '$GUIButtonDirUrlFmt/space3.gif'; $GUIButtonSpace4 = '$GUIButtonDirUrlFmt/space4.gif'; $ArrayCount = 0; $SpaceCount = 0; // 1te Menuezeile $GUIButtons['strong'] = array($ArrayCount++, "'''", "'''", '$[Bold Text]', '$GUIButtonDirUrlFmt/bold.gif"$[Bold]"'); $GUIButtons['em'] = array($ArrayCount++, "''", "''", '$[Italic Text]', '$GUIButtonDirUrlFmt/italic.gif"$[Italic]"'); $GUIButtons['underline'] = array($ArrayCount++, '{+', '+}', '$[Underlined Text]', '$GUIButtonDirUrlFmt/underline.gif"$[Underline]"'); $GUIButtons['strikout'] = array($ArrayCount++, '{-', '-}', '$[Crossed Out Text]', '$GUIButtonDirUrlFmt/strikethrough.gif"$[Strike Thru]"'); $GUIButtons ['sup'] = array($ArrayCount++, "'^", "^'", '$[Superscript]', '$GUIButtonDirUrlFmt/sup.gif"$[Superscript]"'); $GUIButtons ['sub'] = array($ArrayCount++, "'_", "_'", '$[Subscript]', '$GUIButtonDirUrlFmt/sub.gif"$[Subscript]"'); $GUIButtons [$SpaceCount++] = array($ArrayCount++, '', '', '', $GUIButtonSpace1); $GUIButtons ['left'] = array($ArrayCount++, '%left%', '', '', '$GUIButtonDirUrlFmt/left.gif"$[Align Left]"'); $GUIButtons ['center'] = array($ArrayCount++, '%center%', '', '', '$GUIButtonDirUrlFmt/center.gif"$[Align Center]"'); $GUIButtons ['right'] = array($ArrayCount++, '%right%', '', '', '$GUIButtonDirUrlFmt/right.gif"$[Align Right]"'); $GUIButtons ['indent'] = array($ArrayCount++, '\\n->', '\\\\\\\\', '$[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]', '<br>'); $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]"'); } SDV($SmileyButtonsDirUrlFmt,"{$GUIButtonDirUrlFmt}/smileys"); # display symbol images Markup("check","block","/{check}/","<img src='$GUIButtonDirUrlFmt/check.gif' border='0' align='absmiddle' alt='check' title='check' class='smiley' />"); Markup("information","block","/{information}/","<img src='$GUIButtonDirUrlFmt/information.gif' border='0' align='top' alt='information' title='information' class='smiley' />"); Markup("helpbubble","block","/{helpbubble}/","<img src='$GUIButtonDirUrlFmt/helpbubble.gif' align='absmiddle' border='0' alt='helpbubble' title='helpbubble' class='smiley' />"); Markup("forbidden","block","/{forbidden}/","<img src='$GUIButtonDirUrlFmt/forbidden.gif' border='0' align='absmiddle' alt='forbidden' title='Verboten' class='smiley' />"); Markup("questionmark","block","/{questionmark}/","<img src='$GUIButtonDirUrlFmt/help.gif' border='0' align='absmiddle' alt='Frage' title='Frage' class='smiley' />"); Markup("lightbulb","block","/{lightbulb}/","<img src='$GUIButtonDirUrlFmt/lightbulb.gif' border='0' align='absmiddle' alt='lightbulb' title='Glühbirne' class='smiley' />"); Markup("warning","block","/{warning}/","<img src='$GUIButtonDirUrlFmt/warning.gif' border='0' align='absmiddle' alt='warning' title='Warnung' class='smiley' />"); Markup("thumbs_up","block","/{thumbs_up}/","<img src='$GUIButtonDirUrlFmt/thumbs_up.gif' border='0' align='absmiddle' alt='thumbs_up' title='Daumen hoch' class='smiley' />"); Markup("thumbs_down","block","/{thumbs_down}/","<img src='$GUIButtonDirUrlFmt/thumbs_down.gif' border='0' align='absmiddle' alt='thumbs_down' title='Daumen runter' class='smiley' />"); #Markup("redface2","block","/{redface}/","<img src='$GUIButtonDirUrlFmt/redface.gif' border='0' align='absmiddle' alt='embarrassed' title='embarrassed' class='smiley' />"); #Markup("mad2","block","/{mad}/","<img src='$GUIButtonDirUrlFmt/mad.gif' border='0' align='absmiddle' alt='angry' title='angry' class='smiley' />");