From: <var...@us...> - 2008-08-26 16:51:31
|
Revision: 6212 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6212&view=rev Author: vargenau Date: 2008-08-26 16:51:42 +0000 (Tue, 26 Aug 2008) Log Message: ----------- Valid XHTML code Modified Paths: -------------- trunk/themes/MonoBook/templates/info.tmpl Modified: trunk/themes/MonoBook/templates/info.tmpl =================================================================== --- trunk/themes/MonoBook/templates/info.tmpl 2008-08-26 16:45:07 UTC (rev 6211) +++ trunk/themes/MonoBook/templates/info.tmpl 2008-08-26 16:51:42 UTC (rev 6212) @@ -46,8 +46,8 @@ $summary = HTML::textarea(array('name' => 'summary', 'class' => 'summary', /* use fixed dimensions? */ - 'rows' => $request->getPref('editHeight')/4, - 'cols' => $request->getPref('editWidth')/2, + 'rows' => intval($request->getPref('editHeight')/4), + 'cols' => intval($request->getPref('editWidth')/2), 'readonly' => 'readonly', ), $revision->get('summary')); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-03-29 17:04:09
|
Revision: 6737 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6737&view=rev Author: vargenau Date: 2009-03-29 17:04:04 +0000 (Sun, 29 Mar 2009) Log Message: ----------- Add ACL Modified Paths: -------------- trunk/themes/MonoBook/templates/info.tmpl Modified: trunk/themes/MonoBook/templates/info.tmpl =================================================================== --- trunk/themes/MonoBook/templates/info.tmpl 2009-03-28 03:07:56 UTC (rev 6736) +++ trunk/themes/MonoBook/templates/info.tmpl 2009-03-29 17:04:04 UTC (rev 6737) @@ -80,6 +80,16 @@ $tableSummary = fmt("Statistics about %s.", $page->getName()); +$perm_tree = pagePermissions($page->getName()); +list($type, $perm) = pagePermissionsAcl($perm_tree[0], $perm_tree); +if ($type == 'inherited') { + $type = sprintf(_("page permission inherited from %s"), $perm_tree[1][0]); +} elseif ($type == 'page') { + $type = _("individual page permission"); +} elseif ($type == 'default') { + $type = _("default page permission"); +} + ?> <!-- FIXME: move table formatting to css --> @@ -131,6 +141,14 @@ <td align="right"><?= $LOCKED_CB ?></td> <td class="pageinfo"><?=_("Locked")?></td> </tr> + <tr> + <td align="right" class="pageinfo">ACL type</td> + <td><?= $type ?></td> + </tr> + <tr> + <td align="right" valign="top" class="pageinfo">ACL</td> + <td><?= $perm->asAclGroupLines() ?></td> + </tr> <?php } ?> <?php // determine page type @@ -181,38 +199,4 @@ <!-- End debugging buttons --> <?php } ?> - </div> - -<?php -// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// $Log: not supported by cvs2svn $ -// Revision 1.3 2005/08/28 11:04:08 rurban -// fix Article link, reorder Discussion before admin actions, use default SEP in info, custom Sep in actionbar -// -// Revision 1.2 2004/06/14 11:26:49 rurban -// renamed global $Theme to $WikiTheme (gforge nameclash) -// -// Revision 1.1 2004/06/11 09:01:51 rurban -// new MonoBook theme (copied from mediawiki) -// -// Revision 1.2 2004/05/18 14:47:21 rurban -// Simplified strings for easier translation -// -// Revision 1.1 2004/03/01 09:38:01 rurban -// Theme with less buttons and shorter descriptions: -// More behind "Info" -// -// Revision 1.15 2003/12/11 19:38:29 carstenklapp -// Internal change: Fix PHP Warning: Call-time pass-by-reference has been deprecated -// -// Revision 1.14 2003/11/29 20:13:38 carstenklapp -// Internal change: Refactored ByteFormatter code into a new function in -// stdlib (now used by PageList too). -// -// Revision 1.13 2003/02/21 04:24:48 dairiki -// Fix <td> </td> nesting. (Was generating invalid HTML.) -// -// Revision 1.12 2003/01/11 22:54:28 carstenklapp -// Added Page type field displayed for special pages. -// -?> +</div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2011-09-23 16:46:40
|
Revision: 8120 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8120&view=rev Author: vargenau Date: 2011-09-23 16:46:34 +0000 (Fri, 23 Sep 2011) Log Message: ----------- Use CSS Modified Paths: -------------- trunk/themes/MonoBook/templates/info.tmpl Modified: trunk/themes/MonoBook/templates/info.tmpl =================================================================== --- trunk/themes/MonoBook/templates/info.tmpl 2011-09-23 16:38:01 UTC (rev 8119) +++ trunk/themes/MonoBook/templates/info.tmpl 2011-09-23 16:46:34 UTC (rev 8120) @@ -61,11 +61,10 @@ 'checked' => $page->get('locked'))); // Not sure if I want to keep this... --Carsten - if ($user->isadmin()) { + if ($user->isAdmin()) { $lockunlock = $page->get('locked') ? 'unlock' : 'lock'; $clickcheckbUrl = WikiURL($revision, array('action' => $lockunlock)); $clickcheckb = "location.href='$clickcheckbUrl'"; - $LOCKED_CB->setAttr('onclick', $clickcheckb); } @@ -74,7 +73,7 @@ $label['summary'] = _("Last Summary") . _(":"); } else { - $label['date'] = _("Saved on:") . _(":"); + $label['date'] = _("Saved on") . _(":"); $label['author'] = _("Author") . _(":"); $label['summary'] = _("Summary") . _(":"); } @@ -90,64 +89,61 @@ } elseif ($type == 'default') { $type = _("default page permission"); } - ?> -<!-- FIXME: move table formatting to css --> -<table summary="<?php echo $tableSummary ?>" class="pageinfo" - border="0" cellspacing="0" cellpadding="3"> +<table summary="<?php echo $tableSummary ?>" class="pageinfo"> <?php if (!$is_current) { ?> <tr> - <td align="right" class="pageinfo"><?php echo _("Supplanted on") . _(":") ?></td> + <td class="align-right pageinfo"><?php echo _("Supplanted on") . _(":") ?></td> <td><?php echo $WikiTheme->formatDateTime($revision->get('_supplanted')) ?></td> </tr> <?php } ?> <tr> - <td align="right" nowrap="nowrap" class="pageinfo"><?php echo $label['date'] ?></td> + <td class="align-right nowrap pageinfo"><?php echo $label['date'] ?></td> <td><?php echo $modifed ?><?php echo $minor_flag ?></td> </tr> <tr> - <td align="right" class="pageinfo"><?php echo $label['author'] ?></td> + <td class="align-right pageinfo"><?php echo $label['author'] ?></td> <td><?php echo $authorLink ?> <?php if (! ($author == $authorId)) { ?> <span class="pageinfo-authorid">(<?php echo $authorId ?>)</span> <?php } ?></td> </tr> <tr> - <td align="right" class="pageinfo"><?php echo _("Page Version") . _(":") ?></td> + <td class="align-right pageinfo"><?php echo _("Page Version") . _(":") ?></td> <td><?php echo $version ?></td> </tr> <tr> - <td align="right" class="pageinfo"><?php echo _("Markup") . _(":") ?></td> + <td class="align-right pageinfo"><?php echo _("Markup") . _(":") ?></td> <td><?php echo $markupVersion ?></td> </tr> <tr> - <td align="right" class="pageinfo"><?php echo _("Size") . _(":") ?></td> + <td class="align-right pageinfo"><?php echo _("Size") . _(":") ?></td> <td><?php echo $wordcount ?>, <?php echo $size ?></td> </tr> <?php if ($is_current) { ?> <tr> - <td align="right" class="pageinfo"><?php echo _("Hits") . _(":") ?></td> + <td class="align-right pageinfo"><?php echo _("Hits") . _(":") ?></td> <td><?php echo $hits ?></td> </tr> <?php } ?> <tr> - <td align="right" valign="top" class="pageinfo"><?php echo $label['summary'] ?></td> + <td class="align-right nowrap top pageinfo"><?php echo $label['summary'] ?></td> <td><?php echo $summary ?></td> </tr> <?php if ($is_current) { ?> <tr> - <td align="right"><?php echo $LOCKED_CB ?></td> + <td class="align-right"><?php echo $LOCKED_CB ?></td> <td class="pageinfo"><?php echo _("Locked")?></td> </tr> <tr> - <td align="right" class="pageinfo">ACL type</td> + <td class="align-right pageinfo"><?php echo _("ACL type") . _(":") ?></td> <td><?php echo $type ?></td> </tr> <tr> - <td align="right" valign="top" class="pageinfo">ACL</td> + <td class="align-right top pageinfo"><?php echo _("ACL") . _(":") ?></td> <td><?php echo $perm->asAclLines() ?></td> </tr> <?php } ?> @@ -174,8 +170,8 @@ <?php if (!empty($pagetype)) { $pagetype = implode(", ", $pagetype); ?> <tr> - <td align="right" class="pageinfo"><?php echo _("Page Type") . _(":") ?></td> - <td align="left"><?php echo $pagetype?></td> + <td class="align-right pageinfo"><?php echo _("Page Type") . _(":") ?></td> + <td><?php echo $pagetype?></td> </tr> <?php } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2011-10-03 12:28:00
|
Revision: 8153 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8153&view=rev Author: vargenau Date: 2011-10-03 12:27:54 +0000 (Mon, 03 Oct 2011) Log Message: ----------- Home Page Modified Paths: -------------- trunk/themes/MonoBook/templates/info.tmpl Modified: trunk/themes/MonoBook/templates/info.tmpl =================================================================== --- trunk/themes/MonoBook/templates/info.tmpl 2011-10-03 12:26:30 UTC (rev 8152) +++ trunk/themes/MonoBook/templates/info.tmpl 2011-10-03 12:27:54 UTC (rev 8153) @@ -150,7 +150,7 @@ <?php // determine page type if (HOME_PAGE == $page->getName()) { - $pagetype []= sprintf('%s %s', WIKI_NAME, _("home page")); + $pagetype []= sprintf('%s %s', WIKI_NAME, _("Home Page")); } if (0 && $page->isUserPage($include_empty=true)) { $pagetype []= _("User page"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2022-01-06 17:29:03
|
Revision: 10859 http://sourceforge.net/p/phpwiki/code/10859 Author: vargenau Date: 2022-01-06 17:29:02 +0000 (Thu, 06 Jan 2022) Log Message: ----------- themes/MonoBook/templates/info.tmpl: get pagetype Modified Paths: -------------- trunk/themes/MonoBook/templates/info.tmpl Modified: trunk/themes/MonoBook/templates/info.tmpl =================================================================== --- trunk/themes/MonoBook/templates/info.tmpl 2022-01-06 17:28:01 UTC (rev 10858) +++ trunk/themes/MonoBook/templates/info.tmpl 2022-01-06 17:29:02 UTC (rev 10859) @@ -142,7 +142,7 @@ if (HOME_PAGE == $page->getName()) { $pagetype []= sprintf('%s %s', WIKI_NAME, _("Home Page")); } -if (0 && $page->isUserPage($include_empty=true)) { +if ($page->isUserPage($include_empty=true)) { $pagetype []= _("User page"); } if (isActionPage($page->getName())) { @@ -151,10 +151,10 @@ if ($page->get('pagetype') == 'wikiblog') { $pagetype []= _("Blog page"); } -if ($page->getName() == _("InterWikiMap")) { +if ($page->getName() == __("InterWikiMap")) { $pagetype []= _("InterWikiMap"); } -if (0 and isSubPage($page->getName())) { +if (isSubPage($page->getName())) { $pagetype []= _("Subpage"); } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |