|
From: <var...@us...> - 2022-04-19 14:36:36
|
Revision: 11022
http://sourceforge.net/p/phpwiki/code/11022
Author: vargenau
Date: 2022-04-19 14:36:33 +0000 (Tue, 19 Apr 2022)
Log Message:
-----------
Whitespace, braces
Modified Paths:
--------------
trunk/themes/Crao/templates/signin.tmpl
trunk/themes/MonoBook/templates/signin.tmpl
trunk/themes/Sidebar/templates/signin.tmpl
trunk/themes/Wordpress/templates/signin.tmpl
trunk/themes/default/templates/signin.tmpl
trunk/themes/shamino_com/templates/signin.tmpl
trunk/themes/smaller/templates/signin.tmpl
Modified: trunk/themes/Crao/templates/signin.tmpl
===================================================================
--- trunk/themes/Crao/templates/signin.tmpl 2022-04-19 14:28:00 UTC (rev 11021)
+++ trunk/themes/Crao/templates/signin.tmpl 2022-04-19 14:36:33 UTC (rev 11022)
@@ -1,8 +1,9 @@
<?php
-if (empty($FORMNAME))
+if (empty($FORMNAME)) {
$FORMNAME = 'signin';
-else
+} else {
$NOFORM = true;
+}
?>
<?php if (empty($NOFORM)) { ?>
<form method="post" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8" name="<?php echo $FORMNAME?>">
Modified: trunk/themes/MonoBook/templates/signin.tmpl
===================================================================
--- trunk/themes/MonoBook/templates/signin.tmpl 2022-04-19 14:28:00 UTC (rev 11021)
+++ trunk/themes/MonoBook/templates/signin.tmpl 2022-04-19 14:36:33 UTC (rev 11022)
@@ -5,10 +5,10 @@
<ul>
<?php if ($user->isAuthenticated()) { ?>
<li id="pt-userpage"><?php echo WikiLink($id, 'auto') ?></li>
- <li><?php echo WikiLink($id . "/Discussion", 'auto' , _("My Discussion")) ?></li>
+ <li><?php echo WikiLink($id . "/Discussion", 'auto', _("My Discussion")) ?></li>
<li><?php echo WikiLink(__("UserPreferences"), "", _("My Preferences")) ?></li>
<li><?php echo WikiLink(__("MyRecentChanges"), "", _("My Changes")) ?></li>
- <li><?php echo HTML::a(array('href'=>'?'.urlencode('auth[logout]').'=1'),$sp,_("Logout"),$sp) ?></li>
+ <li><?php echo HTML::a(array('href'=>'?'.urlencode('auth[logout]').'=1'), $sp, _("Logout"), $sp) ?></li>
<?php } else {
if ($id) { ?>
<li id="pt-userpage"><?php echo WikiLink($id, 'auto') ?></li>
Modified: trunk/themes/Sidebar/templates/signin.tmpl
===================================================================
--- trunk/themes/Sidebar/templates/signin.tmpl 2022-04-19 14:28:00 UTC (rev 11021)
+++ trunk/themes/Sidebar/templates/signin.tmpl 2022-04-19 14:36:33 UTC (rev 11022)
@@ -3,10 +3,10 @@
<ul>
<?php if ($user->isAuthenticated()) {
$sp = HTML::raw(" "); $id = $user->getAuthenticatedId(); ?>
- <li id="pt-mypages"><?php echo WikiLink(__("RecentChangesMyPages"), 'auto', HTML($sp,"MyPages",$sp)) ?></li>
- <li id="pt-mychanges"><?php echo WikiLink(__("MyRecentChanges"), 'auto', HTML($sp,"MyChanges",$sp)) ?></li>
+ <li id="pt-mypages"><?php echo WikiLink(__("RecentChangesMyPages"), 'auto', HTML($sp, "MyPages", $sp)) ?></li>
+ <li id="pt-mychanges"><?php echo WikiLink(__("MyRecentChanges"), 'auto', HTML($sp, "MyChanges", $sp)) ?></li>
<li id="pt-userpage"><?php echo WikiLink($id, 'auto') ?></li>
- <li id="pt-logout"><?php echo HTML::a(array('href'=>'?'.urlencode('auth[logout]').'=1'), $sp,_("Logout"),$sp) ?></li>
+ <li id="pt-logout"><?php echo HTML::a(array('href'=>'?'.urlencode('auth[logout]').'=1'), $sp, _("Logout"), $sp) ?></li>
<?php } elseif (ALLOW_ANON_USER) {
$sp = HTML::raw(" "); $id = $user->getAuthenticatedId();
if ($id) { ?>
Modified: trunk/themes/Wordpress/templates/signin.tmpl
===================================================================
--- trunk/themes/Wordpress/templates/signin.tmpl 2022-04-19 14:28:00 UTC (rev 11021)
+++ trunk/themes/Wordpress/templates/signin.tmpl 2022-04-19 14:36:33 UTC (rev 11022)
@@ -1,8 +1,9 @@
<?php
-if (empty($FORMNAME))
+if (empty($FORMNAME)) {
$FORMNAME = 'signin';
-else
+} else {
$NOFORM = true;
+}
?>
<?php if (empty($NOFORM)) { ?>
<li>
Modified: trunk/themes/default/templates/signin.tmpl
===================================================================
--- trunk/themes/default/templates/signin.tmpl 2022-04-19 14:28:00 UTC (rev 11021)
+++ trunk/themes/default/templates/signin.tmpl 2022-04-19 14:36:33 UTC (rev 11022)
@@ -1,8 +1,9 @@
<?php
-if (empty($FORMNAME))
+if (empty($FORMNAME)) {
$FORMNAME = 'signin';
-else
+} else {
$NOFORM = true;
+}
?>
<?php if (empty($NOFORM)) { ?>
<form method="post" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8" name="<?php echo $FORMNAME?>">
@@ -27,23 +28,23 @@
<?php echo Button("submit:auth[logout]", _("Sign Out"), 'wikiaction') ?>
</noscript>
<?php } else {
- $SignInInput = HTML::input(array('type' => 'text',
- 'name' => "auth[userid]",
- 'size' => 12,
- 'maxlength' => 256,
- 'onchange' => "SignIn(this.form,false);"));
- $SignInInput->addTooltip(_("Enter your UserId to sign in"));
- $userid = $user->getId();
- if ($user->isSignedIn()) {
- echo sprintf(_("You are signed but not authenticated as %s. "),
- asXML(HTML::a(array(
- 'href'=>'#',
- 'title' => sprintf(_("Click to authenticate as %s"),$userid),
- 'onclick'=>'SignIn(document.forms["'.$FORMNAME.'"],"'.$userid.'");'),
+ $SignInInput = HTML::input(array('type' => 'text',
+ 'name' => "auth[userid]",
+ 'size' => 12,
+ 'maxlength' => 256,
+ 'onchange' => "SignIn(this.form,false);"));
+ $SignInInput->addTooltip(_("Enter your UserId to sign in"));
+ $userid = $user->getId();
+ if ($user->isSignedIn()) {
+ echo sprintf(_("You are signed but not authenticated as %s. "),
+ asXML(HTML::a(array(
+ 'href'=>'#',
+ 'title' => sprintf(_("Click to authenticate as %s"),$userid),
+ 'onclick'=>'SignIn(document.forms["'.$FORMNAME.'"],"'.$userid.'");'),
$userid)));
- }
- $editing_policy = (defined('EDITING_POLICY') and $request->_dbi->isWikiPage(EDITING_POLICY));
- $SignInJS = JavaScript('
+ }
+ $editing_policy = (defined('EDITING_POLICY') and $request->_dbi->isWikiPage(EDITING_POLICY));
+ $SignInJS = JavaScript('
function SignIn(form,userid) {
if (userid) {
form.elements["auth[userid]"].value = userid;
Modified: trunk/themes/shamino_com/templates/signin.tmpl
===================================================================
--- trunk/themes/shamino_com/templates/signin.tmpl 2022-04-19 14:28:00 UTC (rev 11021)
+++ trunk/themes/shamino_com/templates/signin.tmpl 2022-04-19 14:36:33 UTC (rev 11022)
@@ -1,8 +1,9 @@
<?php
-if (empty($FORMNAME))
+if (empty($FORMNAME)) {
$FORMNAME = 'signin';
-else
+} else {
$NOFORM = true;
+}
?>
<?php if (empty($NOFORM)) { ?>
<form method="post" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8" name="<?php echo $FORMNAME?>">
Modified: trunk/themes/smaller/templates/signin.tmpl
===================================================================
--- trunk/themes/smaller/templates/signin.tmpl 2022-04-19 14:28:00 UTC (rev 11021)
+++ trunk/themes/smaller/templates/signin.tmpl 2022-04-19 14:36:33 UTC (rev 11022)
@@ -1,8 +1,9 @@
<?php
-if (empty($FORMNAME))
+if (empty($FORMNAME)) {
$FORMNAME = 'signin';
-else
+} else {
$NOFORM = true;
+}
?>
<?php if (empty($NOFORM)) { ?>
<form style="display:inline" method="post" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8" name="<?php echo $FORMNAME?>">
@@ -25,17 +26,17 @@
<?php echo Button("submit:auth[logout]", _("Sign Out"), 'wikiaction') ?>
</noscript>
<?php } else {
- $SignInInput = HTML::input(array('type' => 'text',
- 'name' => "auth[userid]",
- 'size' => 12,
- 'maxlength' => 256,
- 'onchange' => "SignIn(this.form,false);"));
- if ($user->isSignedIn()) {
- $SignInInput->setAttr('value', $user->getId());
- }
- $SignInInput->addTooltip(_("Enter your UserId to sign in"));
- $editing_policy = (defined('EDITING_POLICY') and $request->_dbi->isWikiPage(EDITING_POLICY));
- $SignInJS = JavaScript('
+ $SignInInput = HTML::input(array('type' => 'text',
+ 'name' => "auth[userid]",
+ 'size' => 12,
+ 'maxlength' => 256,
+ 'onchange' => "SignIn(this.form,false);"));
+ if ($user->isSignedIn()) {
+ $SignInInput->setAttr('value', $user->getId());
+ }
+ $SignInInput->addTooltip(_("Enter your UserId to sign in"));
+ $editing_policy = (defined('EDITING_POLICY') and $request->_dbi->isWikiPage(EDITING_POLICY));
+ $SignInJS = JavaScript('
function SignIn(form,userid) {
if (userid) {
form.elements["auth[userid]"].value = userid;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|