From: <var...@us...> - 2022-04-19 14:23:16
|
Revision: 11020 http://sourceforge.net/p/phpwiki/code/11020 Author: vargenau Date: 2022-04-19 14:23:13 +0000 (Tue, 19 Apr 2022) Log Message: ----------- Whitespace, braces Modified Paths: -------------- trunk/themes/default/templates/head.tmpl trunk/themes/wikilens/templates/head.tmpl Modified: trunk/themes/default/templates/head.tmpl =================================================================== --- trunk/themes/default/templates/head.tmpl 2022-04-19 14:18:34 UTC (rev 11019) +++ trunk/themes/default/templates/head.tmpl 2022-04-19 14:23:13 UTC (rev 11020) @@ -27,12 +27,12 @@ $args = $request->getArgs(); $action = empty($args['action']) ? 'browse' : $args['action']; if (!($action == "viewsource")) { - $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName()); - $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource')); + $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName()); + $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource')); } if (!($action == "browse")) { - $alternatelinkTitle = $page->getName(); - $alternatelinkUrl = WikiURL($revision, array('action' => 'browse')); + $alternatelinkTitle = $page->getName(); + $alternatelinkUrl = WikiURL($revision, array('action' => 'browse')); } ?> <link rel="alternate" title="<?php echo $alternatelinkTitle ?>" href="<?php echo $alternatelinkUrl ?>" /> <?php } @@ -50,7 +50,7 @@ <?php if (!$user->isSignedIn()) { /* For users not signed in */ ?> <?php } ?> -<link rel="alternate" type="application/x-wiki" title="Edit this page!" href="<?php echo WikiURL($page,array('action'=>'edit')) ?>" /> +<link rel="alternate" type="application/x-wiki" title="Edit this page!" href="<?php echo WikiURL($page, array('action'=>'edit')) ?>" /> <?php if ($user->isAdmin()) { /* Only for the Administrator */ ?> <?php } ?> @@ -73,10 +73,11 @@ <?php echo $WikiTheme->getCSS() ?> <?php // avoid redundant bookmark title for custom home page - if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME) + if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME) { $pagetitle = ""; - else + } else { $pagetitle = " - ". AsString($TITLE); + } ?> <title><?php echo WIKI_NAME.$pagetitle ?></title> <?php if (ENABLE_OPEN_GRAPH) { ?> Modified: trunk/themes/wikilens/templates/head.tmpl =================================================================== --- trunk/themes/wikilens/templates/head.tmpl 2022-04-19 14:18:34 UTC (rev 11019) +++ trunk/themes/wikilens/templates/head.tmpl 2022-04-19 14:23:13 UTC (rev 11020) @@ -27,12 +27,12 @@ $args = $request->getArgs(); $action = empty($args['action']) ? 'browse' : $args['action']; if (!($action == "viewsource")) { - $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName()); - $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource')); + $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName()); + $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource')); } if (!($action == "browse")) { - $alternatelinkTitle = $page->getName(); - $alternatelinkUrl = WikiURL($revision, array('action' => 'browse')); + $alternatelinkTitle = $page->getName(); + $alternatelinkUrl = WikiURL($revision, array('action' => 'browse')); } ?> <link rel="alternate" title="<?php echo $alternatelinkTitle ?>" href="<?php echo $alternatelinkUrl ?>" /> <?php } @@ -50,7 +50,7 @@ <?php if (!$user->isSignedIn()) { /* For users not signed in */ ?> <?php } ?> -<link rel="alternate" type="application/x-wiki" title="Edit this page!" href="<?php echo WikiURL($page,array('action'=>'edit')) ?>" /> +<link rel="alternate" type="application/x-wiki" title="Edit this page!" href="<?php echo WikiURL($page, array('action'=>'edit')) ?>" /> <?php if ($user->isAdmin()) { /* Only for the Administrator */ ?> <?php } ?> @@ -73,10 +73,11 @@ <?php echo $WikiTheme->getCSS() ?> <?php // avoid redundant bookmark title for custom home page - if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME) + if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME) { $pagetitle = ""; - else + } else { $pagetitle = " - ". AsString($TITLE); + } ?> <title><?php echo WIKI_NAME.$pagetitle ?></title> <?php if (ENABLE_OPEN_GRAPH) { ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |