From: Carsten K. <car...@us...> - 2002-01-09 16:34:38
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv16244 Modified Files: Toolbar.php Log Message: Reindenting and rewrapping in emacs. Index: Toolbar.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/Toolbar.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** Toolbar.php 2002/01/08 00:06:45 1.10 --- Toolbar.php 2002/01/09 16:34:35 1.11 *************** *** 15,22 **** break; case "image" : ! $separator = "<img alt=\" | \" src=\"" .DATA_URL( '$placeholder' ) ."\" />"; break; ! } ! return $separator; */ // just using a hardcoded separator for now --- 15,23 ---- break; case "image" : ! $separator = "<img alt=\" | \" src=\"" .DATA_URL( '$placeholder' ) ! ."\" />"; break; ! } ! return $separator; */ // just using a hardcoded separator for now *************** *** 25,53 **** /* ! ! These functions will replace the PHP logic currently embedded in the ! html templates, used to build the Wiki commands and navigation links ! at the bottom of the screen. ! ! If you feel inspired please contribute here! ! ! (This is all in a state of flux, so don't count on any of this being ! the same tomorrow...) ! ! ! Some of these functions are already to be used as ${tokens} in the ! xhtml templates. ! ! FIXME: IncludePage plugin for EditHelp needs to be dealt with. ! ! Plugins shuold be cleaned up, in this state they won't display any ! mouseover text. ! ! The raw html should be replaced with calls to Element(QElement()) or ! QElement(). ! ! Reminder: xgettext only knows about c/c++ line-continuation strings, ! it does not know about php's dot operator. ! */ --- 26,54 ---- /* ! ! These functions will replace the PHP logic currently embedded in the ! html templates, used to build the Wiki commands and navigation links ! at the bottom of the screen. ! ! If you feel inspired please contribute here! ! ! (This is all in a state of flux, so don't count on any of this being ! the same tomorrow...) ! ! ! Some of these functions are already to be used as ${tokens} in the ! xhtml templates. ! ! FIXME: IncludePage plugin for EditHelp needs to be dealt with. ! ! Plugins shuold be cleaned up, in this state they won't display any ! mouseover text. ! ! The raw html should be replaced with calls to Element(QElement()) or ! QElement(). ! ! Reminder: xgettext only knows about c/c++ line-continuation strings, ! it does not know about php's dot operator. ! */ *************** *** 137,143 **** } else { if ($is_current) { ! $html .= "<a class=\"wikiaction\" href=\"" .WikiURL($pagename, array('action' => 'edit')) ."\">" ._("Edit") ."</a>"; } else { ! $html .= "<a class=\"wikiaction\" href=\"" .WikiURL($pagename, array('action' => 'edit&version=' .$version)); $html .= ">" ._("Edit old revision") ."</a>"; } --- 138,148 ---- } else { if ($is_current) { ! $html .= "<a class=\"wikiaction\" href=\"" ! .WikiURL($pagename, array('action' => 'edit')) ."\">" ! ._("Edit") ."</a>"; } else { ! $html .= "<a class=\"wikiaction\" href=\"" ! .WikiURL($pagename, array('action' => 'edit&version=' ! .$version)); $html .= ">" ._("Edit old revision") ."</a>"; } *************** *** 145,165 **** if ($userisadmin) { if ($pagelocked) { ! $html .= separator() ."<a class=\"wikiadmin\" href=\"" .WikiURL($pagename, array('action' => 'unlock')) ."\">" ._("Unlock page") ."</a>"; } else { ! $html .= separator() ."<a class=\"wikiadmin\" href=\"" .WikiURL($pagename, array('action' => 'lock')) ."\">" ._("Lock page") ."</a>"; } ! $html .= separator() ."<a class=\"wikiadmin\" href=\"" .WikiURL($pagename, array('action' => 'remove')) ."\">" ._("Remove page") ."</a>"; } ! //$html .= separator() ."<plugin-link PageHistory page=\"" .$pagename ."\""; ! $html .= separator() ."<a class=\"wikiaction\" href=\"" . WikiURL(_("PageHistory"), array('page' => $pagename)) ."\">" ._("PageHistory") ."</a>"; if ($is_current) { ! $html .= separator() ."<a class=\"wikiaction\" href=\"" . WikiURL($pagename, array('action' => 'diff&previous=major')) ."\">" ._("Diff") ."</a>"; } else { $html .= separator() ."<a class=\"wikiaction\""; ! $html .= "href=\"" . WikiURL($pagename, array('action' => 'diff&version=' .$version .'&previous=major')) ."\">" ._("Diff") ."</a>"; } ! //$html .= separator() ."<plugin-link BackLinks page=\"" .$pagename ."\""; ! $html .= separator() ."<a class=\"wikiaction\" href=\"" . WikiURL(_("BackLinks"), array('page' => $pagename)) ."\">" ._("BackLinks") ."</a>"; return $html; --- 150,185 ---- if ($userisadmin) { if ($pagelocked) { ! $html .= separator() ."<a class=\"wikiadmin\" href=\"" ! .WikiURL($pagename, array('action' => 'unlock')) ."\">" ! ._("Unlock page") ."</a>"; } else { ! $html .= separator() ."<a class=\"wikiadmin\" href=\"" ! .WikiURL($pagename, array('action' => 'lock')) ."\">" ! ._("Lock page") ."</a>"; } ! $html .= separator() ."<a class=\"wikiadmin\" href=\"" ! .WikiURL($pagename, array('action' => 'remove')) ."\">" ! ._("Remove page") ."</a>"; } ! //$html .= separator() ."<plugin-link PageHistory page=\"" .$pagename ."\""; ! $html .= separator() ."<a class=\"wikiaction\" href=\"" . ! WikiURL(_("PageHistory"), array('page' => $pagename)) ."\">" ! ._("PageHistory") ."</a>"; if ($is_current) { ! $html .= separator() ."<a class=\"wikiaction\" href=\"" ! . WikiURL($pagename, array('action' => 'diff&previous=major')) ! ."\">" ._("Diff") ."</a>"; } else { $html .= separator() ."<a class=\"wikiaction\""; ! $html .= "href=\"" ! . WikiURL($pagename, array('action' => 'diff&version=' ! .$version .'&previous=major')) ! ."\">" ._("Diff") ."</a>"; } ! //$html .= separator() ."<plugin-link BackLinks page=\"" .$pagename ."\""; ! $html .= separator() ."<a class=\"wikiaction\" href=\"" ! . WikiURL(_("BackLinks"), array('page' => $pagename)) ."\">" ! ._("BackLinks") ."</a>"; return $html; *************** *** 181,196 **** function toolbar_action_SearchActions($pagename, $charset) { $html = ""; ! $html .= "<form action=\"" .WikiURL(_("TitleSearch")) ."\" method=\"get\" accept-charset=\"" .$charset ."\">"; ! $html .= toolbar_action_Navigation($pagename) .separator() .LinkExistingWikiWord(_("FindPage")); ! $html .= separator() ."<span><input type=\"hidden\" name=\"auto_redirect\" value=\"1\" />"; $html .= "<input type=\"text\" name=\"s\" size=\"12\""; $html .= " title=" ._("Quick Search"); ! $html .= " onmouseover=\"window.status='" ._("Quick Search") ."'; return true;"; $html .= " onmouseout=\"window.status=''; return true;\" /></span>"; //$html .= separator() ."<plugin-link LikePages page=\"" .$pagename ."\" >"; ! $html .= separator() ."<a class=\"wikiaction\" href=\"" . WikiURL(_("LikePages"), array('page' => $pagename)) ."\">" ._("LikePages") ."</a>"; ! // $html .= "</form>"; return $html; } --- 201,222 ---- function toolbar_action_SearchActions($pagename, $charset) { $html = ""; ! $html .= "<form action=\"" .WikiURL(_("TitleSearch")) ! ."\" method=\"get\" accept-charset=\"" .$charset ."\">"; ! $html .= toolbar_action_Navigation($pagename) .separator() ! .LinkExistingWikiWord(_("FindPage")); ! $html .= separator() ! ."<span><input type=\"hidden\" name=\"auto_redirect\" value=\"1\" />"; $html .= "<input type=\"text\" name=\"s\" size=\"12\""; $html .= " title=" ._("Quick Search"); ! $html .= " onmouseover=\"window.status='" ._("Quick Search") ! ."'; return true;"; $html .= " onmouseout=\"window.status=''; return true;\" /></span>"; //$html .= separator() ."<plugin-link LikePages page=\"" .$pagename ."\" >"; ! $html .= separator() ."<a class=\"wikiaction\" href=\"" ! . WikiURL(_("LikePages"), array('page' => $pagename)) ."\">" ! ._("LikePages") ."</a>"; ! //$html .= "</form>"; return $html; } *************** *** 212,218 **** if ($userauth) { $html .= sprintf(_("You are signed in as %s"), LinkWikiWord($userid)); ! $html .= separator() ."<a class=\"wikiaction\" href=\"" . WikiURL($pagename, array('action' => 'logout')) ."\">" ._("SignOut") ."</a>"; } else { ! $html .= "<a class=\"wikiaction\" href=\"" . WikiURL($pagename, array('action' => 'login')) ."\">" ._("SignIn") ."</a>"; } return $html; --- 238,248 ---- if ($userauth) { $html .= sprintf(_("You are signed in as %s"), LinkWikiWord($userid)); ! $html .= separator() ."<a class=\"wikiaction\" href=\"" ! . WikiURL($pagename, array('action' => 'logout')) ."\">" ! ._("SignOut") ."</a>"; } else { ! $html .= "<a class=\"wikiaction\" href=\"" ! . WikiURL($pagename, array('action' => 'login')) ."\">" ! ._("SignIn") ."</a>"; } return $html; *************** *** 239,245 **** // FIXME: What to use instead of WikiURL()? ! //$html .= separator() ."<a class=\"wikiaction\" href=\"" .WikiURL('_("RandomPage")', array('page' => $pagename)) ."\">" ._("RandomPage") ."</a>"; //$html .= separator() ."<plugin-link WantedPages >"; ! //$html .= separator() ."<a class=\"wikiaction\" href=\"" . WikiURL(_("WantedPages")) ."\">" ._("WantedPages") ."</a>"; //$html .= separator() .LinkExistingWikiWord(_("SandBox")); --- 269,278 ---- // FIXME: What to use instead of WikiURL()? ! //$html .= separator() ."<a class=\"wikiaction\" href=\"" ! // .WikiURL('_("RandomPage")', array('page' => $pagename)) ."\">" ! // ._("RandomPage") ."</a>"; //$html .= separator() ."<plugin-link WantedPages >"; ! //$html .= separator() ."<a class=\"wikiaction\" href=\"" ! // .WikiURL(_("WantedPages")) ."\">" ._("WantedPages") ."</a>"; //$html .= separator() .LinkExistingWikiWord(_("SandBox")); *************** *** 292,298 **** $html .= sprintf(_("You are signed in as %s."), LinkWikiWord($userid)); } else { ! $html .= sprintf(_("Author will be logged as %s."),"<em>" .$userid ."</em>"); ! $html .= separator() ."<a class=\"wikiaction\" href=\"" .WikiURL($pagename, array('action' => 'login')) ."\">" ._("SignIn") ."</a>"; ! $html .= "<small>*</small><br><small>*backup and reload after signing in</small>"; } return $html; --- 325,335 ---- $html .= sprintf(_("You are signed in as %s."), LinkWikiWord($userid)); } else { ! $html .= sprintf(_("Author will be logged as %s."), ! Element('em', $userid)); ! $html .= separator() ."<a class=\"wikiaction\" href=\"" ! .WikiURL($pagename, array('action' => 'login')) ."\">" ! ._("SignIn") ."</a>"; ! $html .= "<small>*</small><br><small>" ! ."*backup and reload after signing in</small>"; } return $html; |