]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/actionbar.tmpl
Use CSS
[SourceForge/phpwiki.git] / themes / default / templates / actionbar.tmpl
1 <?php if (!$WikiTheme->DUMP_MODE) { ?>
2 <?php /* I would like not to have to use these tables, and managed to
3        * get this stuff to work more or less correctly using
4        * CSSs float:left; and float:right;.  However float:right; seems
5        * to cause MSIE4.01/NT to hang. 
6        * So, we use tables...  */ ?>
7 <table class="fullwidth">
8 <tr class="baseline">
9   <td>
10   <div id="actionbuttons">
11     <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?>
12       <?php echo Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"), false, array('id'=>'btn-edit')) ?>
13       <?php if (ENABLE_WYSIWYG) { ?>
14         <?php echo $SEP?><?php echo Button(array("action" => "edit", "mode"=> "wysiwyg"), "Wysiwyg Editor", false, array('id' => 'btn-wysiwyg-edit')) ?>
15       <?php } ?>
16     <?php } else { ?>
17       <?php echo Button("viewsource", _("View Source")) ?>
18     <?php } ?>
19     <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?>
20       <?php echo $SEP?><?php echo Button($page->get('locked') ? 'unlock' : 'lock') ?>
21     <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $page->getName())) { ?>
22       <?php echo $SEP?><?php echo Button('chown') ?>
23       <?php echo $SEP?><?php echo Button('setacl') ?>
24       <?php echo $SEP?><?php echo Button('rename') ?>
25     <?php }} ?>
26     <?php if ($revision and ($user->isAdmin() or mayAccessPage('remove', $page->getName()))) { ?>
27       <?php echo $SEP?><?php echo Button('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?>
28       <?php echo $SEP?><?php echo Button('remove') ?>
29     <?php } ?>
30     <?php echo $SEP?><?php echo Button("PageHistory", _("PageHistory")) ?>
31     <?php echo $SEP?><?php echo Button("diff") ?> 
32     <?php echo $SEP?><?php echo Button("PageInfo", _("PageInfo")) ?>
33 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?> 
34     <!-- Buttons really only for debugging -->
35     <?php echo $SEP?><?php echo Button("DebugInfo", _("DebugInfo")) ?>
36     <?php echo $SEP?><?php echo Button("PageDump", _("PageDump")) ?>
37 <?php
38     if (DEBUG & _DEBUG_SQL and USECACHE) {
39       $PurgeCache = Button(array('nocache' => 'purge'),
40                      _("PurgeHtmlCache"), $page->getName());
41       $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
42 ?>
43       <?php echo $SEP?><?php echo $PurgeCache ?>
44 <?php } ?>
45     <!-- End debugging buttons -->
46 <?php } ?>
47 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> 
48       <?php echo $SEP?><?php echo Button("pdf","Pdf",'wikiclear',array('id'=>'btn-pdf')) ?>
49 <?php } ?>
50   </div>
51   </td>
52 <?php if (empty($NOSIGNIN)) { ?>
53 <?php
54 /* class="top" is not ideal here but required to get reasonable alignment
55    with the other action buttons in some browsers, like OmniWeb and Safari
56    (therefore probably Konquorer too) */ ?>
57   <td class="align-right top">
58     <div id="signin"><?php echo Template('signin') ?></div>
59   </td>
60 <?php } ?>
61 </tr>
62 </table>
63 <?php } ?>