From: <var...@us...> - 2009-07-13 03:14:17
|
Revision: 7019 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7019&view=rev Author: vargenau Date: 2009-07-13 03:14:12 +0000 (Mon, 13 Jul 2009) Log Message: ----------- Revert: ActionButton is not defined in default theme Modified Paths: -------------- trunk/themes/default/templates/actionbar.tmpl Modified: trunk/themes/default/templates/actionbar.tmpl =================================================================== --- trunk/themes/default/templates/actionbar.tmpl 2009-07-13 03:07:31 UTC (rev 7018) +++ trunk/themes/default/templates/actionbar.tmpl 2009-07-13 03:14:12 UTC (rev 7019) @@ -1,71 +1,67 @@ <?php // -*-php-*- rcs_id('$Id$'); ?> -<?php - $dbh = $request->getDbh(); - $isAdmin = $user->isAdmin(); - $pagename = $page->getName(); - $isActionPage = $request->_isActionPage($pagename, false); -?> -<div class="portlet" id="p-cactions"> - <h5>Views</h5> - <ul> - <?php if ($request->getArg('action') != "") { ?> - <?= ActionButton("browse", _("View Page"), false, array('title' => "View the page [alt-c]")) ?> - <?php } else { ?> - <li class="selected"><a class="named-wiki" name="browse"><?= _("View Page") ?></a></li> - <?php } ?> - <?php if (($isAdmin or mayAccessPage('edit', $pagename)) and $revision) { - $label = $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"); ?> - <?= ActionButton("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"), - false, array('id' => 'btn-edit', 'title' => "You can edit this page. Please use the preview button before saving. [alt-e]")) ?> - <?php if (ENABLE_WYSIWYG) { ?> - <?= ActionButton(array("action" => "edit", "mode"=> "wysiwyg"), "Wysiwyg Editor", false, array('id' => 'btn-wysiwyg-edit')) ?> +<?php if (!$WikiTheme->DUMP_MODE) { ?> +<?php /* I would like not to have to use these tables, and managed to + * get this stuff to work more or less correctly using + * CSSs float:left; and float:right;. However float:right; seems + * to cause MSIE4.01/NT to hang. + * So, we use tables... */ ?> +<table summary="Toolbar 1: Page actions and user login." + width="100%" cellpadding="0" cellspacing="0" border="0"> +<tr valign="baseline"> + <td> + <div id="actionbuttons"> + <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?> + <?= Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"), false, array('id'=>'btn-edit')) ?> + <? if (ENABLE_WYSIWYG) { ?> + <?=$SEP?><?= Button(array("action" => "edit", "mode"=> "wysiwyg"), "Wysiwyg Editor", false, array('id' => 'btn-wysiwyg-edit')) ?> <?php } ?> <?php } else { ?> - <?= ActionButton("viewsource", _("View Source")) ?> + <?= Button("viewsource", _("View Source")) ?> <?php } ?> - <?= ActionButton(_("PageHistory"),_("History"),false,array('title'=>"Past versions of this page. [alt-h]")) ?> - <?= ActionButton("diff") ?> - <? if ( $user->isSignedIn() ) { ?> - <?= ActionButton("WatchPage", _("Watch"), false, - array('title'=>"Add/Remove this to/from the list of pages you're monitoring for changes [alt-l]")) ?> + <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?> + <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?> + <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $page->getName())) { ?> + <?=$SEP?><?= Button('chown') ?> + <?=$SEP?><?= Button('setacl') ?> + <?=$SEP?><?= Button('rename') ?> + <?php }} ?> + <?php if ($revision and ($user->isAdmin() or mayAccessPage('remove', $page->getName()))) { ?> + <?=$SEP?><?= Button('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?> + <?=$SEP?><?= Button('remove') ?> <?php } ?> - </ul> -</div> - -<?php if ($user->isSignedIn()) { ?> -<div class="portlet" id="p-tbx"> - <h5>Special Actions <?= $WikiTheme->folderArrow('p-tbx', 'Closed') ?></h5> - <div class="pBody" id="p-tbx-body" style="display:none;"> - <ul> - <?php if ($isAdmin or mayAccessPage('edit', $pagename)) { ?> - <?= ActionButton('rename') ?> - <?php } ?> - <?php if (!empty($revision) and ($isAdmin or mayAccessPage('remove', $pagename))) { ?> - <?= ActionButton('remove') ?> - <?= ActionButton('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?> - <?php } ?> - <?php if ($isAdmin or mayAccessPage('change', $pagename)) { ?> - <?= ActionButton($page->get('locked') ? 'unlock' : 'lock') ?> - <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $pagename)) { ?> - <?= ActionButton('chown') ?> - <?= ActionButton('setacl') ?> - <?php }} ?> - <?= ActionButton(array('action'=>'PageInfo'), _("PageInfo"),$pagename) ?> - <?= ActionButton(_("AuthorHistory")) ?> - <?= ActionButton(_("PageHistory")) ?> - <?= ActionButton("diff") ?> - <?php if ($isAdmin) { ?> - <?= ActionButton(_("PageDump")) ?> - <?php if (DEBUG & _DEBUG_SQL and USECACHE) { - $PurgeCache = Button(array('nocache' => 'purge'), - _("PurgeHtmlCache"), $pagename); - $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed.")); ?> - <?= $PurgeCache ?> - <?php } ?> - <?php } // isAdmin ?> - </ul> + <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?> + <?=$SEP?><?= Button("diff") ?> + <?=$SEP?><?= Button("PageInfo", _("PageInfo")) ?> +<?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?> + <!-- Buttons really only for debugging --> + <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?> + <?=$SEP?><?= Button("PageDump", _("PageDump")) ?> +<?php + if (DEBUG & _DEBUG_SQL and USECACHE) { + $PurgeCache = Button(array('nocache' => 'purge'), + _("PurgeHtmlCache"), $page->getName()); + $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed.")); +?> + <?=$SEP?><?= $PurgeCache ?> +<?php } ?> + <!-- End debugging buttons --> +<?php } ?> +<?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> + <?=$SEP?><?= Button("pdf","Pdf",'wikiclear',array('id'=>'btn-pdf')) ?> +<?php } ?> </div> -</div> -<?php } //isSignedIn ?> + </td> +<?php if (empty($NOSIGNIN)) { ?> +<?php +/* valign="top" is not ideal here but required to get reasonable alignment + with the other action buttons in some browsers, like OmniWeb and Safari + (therefore probably Konquorer too) */ ?> + <td align="right" valign="top"> + <div id="signin"><?= Template('signin') ?></div> + </td> +<?php } ?> +</tr> +</table> +<?php } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-06-10 16:42:03
|
Revision: 8884 http://sourceforge.net/p/phpwiki/code/8884 Author: vargenau Date: 2014-06-10 16:41:59 +0000 (Tue, 10 Jun 2014) Log Message: ----------- Remove comments about old browsers Modified Paths: -------------- trunk/themes/default/templates/actionbar.tmpl Modified: trunk/themes/default/templates/actionbar.tmpl =================================================================== --- trunk/themes/default/templates/actionbar.tmpl 2014-06-10 16:39:05 UTC (rev 8883) +++ trunk/themes/default/templates/actionbar.tmpl 2014-06-10 16:41:59 UTC (rev 8884) @@ -1,9 +1,4 @@ <?php if (!$WikiTheme->DUMP_MODE) { ?> -<?php /* I would like not to have to use these tables, and managed to - * get this stuff to work more or less correctly using - * CSSs float:left; and float:right;. However float:right; seems - * to cause MSIE4.01/NT to hang. - * So, we use tables... */ ?> <table class="fullwidth"> <tr class="baseline"> <td> @@ -50,10 +45,6 @@ </div> </td> <?php if (empty($NOSIGNIN)) { ?> -<?php -/* class="top" is not ideal here but required to get reasonable alignment - with the other action buttons in some browsers, like OmniWeb and Safari - (therefore probably Konquorer too) */ ?> <td class="align-right top"> <div id="signin"><?php echo Template('signin') ?></div> </td> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2022-01-06 15:44:24
|
Revision: 10854 http://sourceforge.net/p/phpwiki/code/10854 Author: vargenau Date: 2022-01-06 15:44:21 +0000 (Thu, 06 Jan 2022) Log Message: ----------- themes/default/templates/actionbar.tmpl: remove _DEBUG_SQL Modified Paths: -------------- trunk/themes/default/templates/actionbar.tmpl Modified: trunk/themes/default/templates/actionbar.tmpl =================================================================== --- trunk/themes/default/templates/actionbar.tmpl 2022-01-06 15:43:51 UTC (rev 10853) +++ trunk/themes/default/templates/actionbar.tmpl 2022-01-06 15:44:21 UTC (rev 10854) @@ -31,7 +31,7 @@ <?php echo $SEP?><?php echo Button(__("DebugBackendInfo"), _("Debug Backend Info")) ?> <?php echo $SEP?><?php echo Button(__("PageDump"), _("Page Dump")) ?> <?php - if (DEBUG & _DEBUG_SQL) { + if (DEBUG) { $PurgeCache = Button(array('nocache' => 'purge'), _("Purge HTML cache"), $page->getName()); $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed.")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2022-01-12 15:34:46
|
Revision: 10887 http://sourceforge.net/p/phpwiki/code/10887 Author: vargenau Date: 2022-01-12 15:34:38 +0000 (Wed, 12 Jan 2022) Log Message: ----------- Whitespace Modified Paths: -------------- trunk/themes/default/templates/actionbar.tmpl Modified: trunk/themes/default/templates/actionbar.tmpl =================================================================== --- trunk/themes/default/templates/actionbar.tmpl 2022-01-12 13:35:42 UTC (rev 10886) +++ trunk/themes/default/templates/actionbar.tmpl 2022-01-12 15:34:38 UTC (rev 10887) @@ -41,7 +41,7 @@ <?php // End debugging buttons ?> <?php } ?> <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> - <?php echo $SEP?><?php echo Button("pdf", "Pdf", 'wikiclear', array('id'=>'btn-pdf')) ?> + <?php echo $SEP?><?php echo Button("pdf", "Pdf", 'wikiclear', array('id'=>'btn-pdf')) ?> <?php } ?> </div> </td> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |