2 $dbh = $request->getDbh();
3 $isAdmin = $user->isAdmin();
4 $pagename = $page->getName();
5 $isActionPage = isActionPage($pagename);
6 $isBrowse = $request->getArg('action') == 'browse';
7 $mayEdit = mayAccessPage('edit', $pagename);
8 $mayChange = mayAccessPage('change', $pagename);
10 <div class="portlet" id="p-cactions">
11 <h5><?php echo _("Views") ?></h5>
13 <?php if ($request->getArg('action') != "") { ?>
14 <?php echo ActionButton("browse", _("View Page"), false, array('title' => _("View Page")." [alt-c]")) ?>
16 <li class="selected"><a class="named-wiki" name="browse"><?php echo _("View Page") ?></a></li>
18 <?php if (($isAdmin or $mayEdit) and $revision) { ?>
19 <?php echo ActionButton("edit", $dbh->isWikiPage($page->getName()) ? ($revision->isCurrent() ? _("Edit") : _("Edit Old Revision")) : _("Create Page"), false, array('id' => 'btn-edit', 'title' => _("You can edit this page. Please use the preview button before saving.")." [alt-e]")) ?>
20 <?php if (ENABLE_WYSIWYG) { ?>
21 <?php echo Button(array("action" => "edit", "mode"=> "wysiwyg"), _("Wysiwyg Editor"), false, array('id' => 'btn-wysiwyg-edit')) ?>
23 <?php } elseif ($page->exists()) { ?>
24 <?php echo ActionButton("viewsource", _("View Source")) ?>
26 <?php echo ActionButton(_("PageHistory"),_("History"),false,array('title'=>_("Past versions of this page.")." [alt-h]")) ?>
27 <?php echo ActionButton("diff") ?>
28 <?php if ($user->isSignedIn()) { ?>
29 <?php echo ActionButton(_("WatchPage"), _("Watch"), false,
30 array('title'=>_("Add/Remove this to/from the list of pages you're monitoring for changes")." [alt-l]")) ?>
35 <?php if ($user->isSignedIn()) { ?>
36 <div class="portlet" id="p-tbx">
37 <h5><?php echo _("Special Actions") ?> <?php echo $WikiTheme->folderArrow('p-tbx', 'Closed') ?></h5>
38 <div class="pBody" id="p-tbx-body" style="display:none;">
40 <?php if ($isAdmin or $mayEdit) { ?>
41 <?php echo ActionButton('rename') ?>
43 <?php if (!empty($revision) and ($isAdmin or mayAccessPage('remove', $pagename))) { ?>
44 <?php echo ActionButton('remove') ?>
45 <?php echo ActionButton('purge') ?>
46 <?php echo ActionButton('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?>
48 <?php if ($isAdmin or $mayChange) { ?>
49 <?php echo ActionButton($page->get('locked') ? 'unlock' : 'lock') ?>
50 <?php if (ENABLE_PAGEPERM and $mayChange) { ?>
51 <?php echo ActionButton('chown') ?>
52 <?php echo ActionButton('setacl') ?>
54 <?php echo ActionButton("viewsource", _("View Source")) ?>
55 <?php echo ActionButton(array('action'=>'PageInfo'), _("PageInfo"), $pagename) ?>
56 <?php echo ActionButton(_("AuthorHistory")) ?>
57 <?php echo ActionButton(_("PageHistory")) ?>
58 <?php echo ActionButton("diff") ?>
59 <?php if ($isAdmin) { ?>
60 <?php echo ActionButton(_("PageDump")) ?>
61 <?php if (USECACHE) { ?>
62 <?php echo ActionButton(array('nocache' => 'purge'), _("PurgeHtmlCache"), $pagename,
63 array('title'=>_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."))) ?>
68 <?php } //isSignedIn ?>