\n"; SDV($GUIButtonDirUrlFmt,'$FarmPubDirUrl/guiedit'); SDVA($GUIButtons, array( 'em' => array(100, "''", "''", '$[Emphasized]', '$GUIButtonDirUrlFmt/em.gif"$[Emphasized (italic)]"', '$[ak_em]'), 'strong' => array(110, "'''", "'''", '$[Strong]', '$GUIButtonDirUrlFmt/strong.gif"$[Strong (bold)]"', '$[ak_strong]'), 'pagelink' => array(200, '[[', ']]', '$[Page link]', '$GUIButtonDirUrlFmt/pagelink.gif"$[Link to internal page]"'), 'extlink' => array(210, '[[', ']]', 'http:// | $[link text]', '$GUIButtonDirUrlFmt/extlink.gif"$[Link to external page]"'), 'big' => array(300, "'+", "+'", '$[Big text]', '$GUIButtonDirUrlFmt/big.gif"$[Big text]"'), 'small' => array(310, "'-", "-'", '$[Small text]', '$GUIButtonDirUrlFmt/small.gif"$[Small text]"'), 'sup' => array(320, "'^", "^'", '$[Superscript]', '$GUIButtonDirUrlFmt/sup.gif"$[Superscript]"'), 'sub' => array(330, "'_", "_'", '$[Subscript]', '$GUIButtonDirUrlFmt/sub.gif"$[Subscript]"'), 'h2' => array(400, '\\n!! ', '\\n', '$[Heading]', '$GUIButtonDirUrlFmt/h.gif"$[Heading]"'), 'center' => array(410, '%25center%25', '', '', '$GUIButtonDirUrlFmt/center.gif"$[Center]"'))); Markup('e_guibuttons', 'directives', '/\\(:e_guibuttons:\\)/e', "Keep(FmtPageName(GUIButtonCode(\$pagename), \$pagename))"); function GUIButtonCode($pagename) { global $GUIButtons; $cmpfn = create_function('$a,$b', 'return $a[0]-$b[0];'); usort($GUIButtons, $cmpfn); $out = "'; return $out; }