summaryrefslogtreecommitdiffstats
path: root/web/template/account_details.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-09-21 08:57:29 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-24 12:23:04 +0200
commit6102759b7cb9fd23f4e7fa5f12137334ff30a410 (patch)
treefba81fdedea0dd6ca3f1e1bdd260fa55ebc36ee9 /web/template/account_details.php
parent964ea083e68310ca7c09ca938219f4146f0ca5b9 (diff)
downloadaurweb-6102759b7cb9fd23f4e7fa5f12137334ff30a410.tar.xz
Use echo shortcut syntax
Replace all occurrences of "<?php echo" and "<?php print" by "<?=" to reduce noise in templates. Note that as of PHP 5.4.0, "<?=" is always available and no longer requires "short_open_tag" to be set. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/account_details.php')
-rw-r--r--web/template/account_details.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/web/template/account_details.php b/web/template/account_details.php
index 8551533..082a3f7 100644
--- a/web/template/account_details.php
+++ b/web/template/account_details.php
@@ -4,12 +4,12 @@
</tr>
<tr>
- <td align="left"><?php echo __("Username") . ":" ?></td>
- <td align="left"><?php echo $row["Username"] ?></td>
+ <td align="left"><?= __("Username") . ":" ?></td>
+ <td align="left"><?= $row["Username"] ?></td>
</tr>
<tr>
- <td align="left"><?php echo __("Account Type") . ":" ?></td>
+ <td align="left"><?= __("Account Type") . ":" ?></td>
<td align="left">
<?php
if ($row["AccountType"] == "User") {
@@ -24,34 +24,34 @@
</tr>
<tr>
- <td align="left"><?php echo __("Email Address") . ":" ?></td>
- <td align="left"><a href="mailto:<?php echo htmlspecialchars($row["Email"], ENT_QUOTES) ?>"><?php echo htmlspecialchars($row["Email"], ENT_QUOTES) ?></a></td>
+ <td align="left"><?= __("Email Address") . ":" ?></td>
+ <td align="left"><a href="mailto:<?= htmlspecialchars($row["Email"], ENT_QUOTES) ?>"><?= htmlspecialchars($row["Email"], ENT_QUOTES) ?></a></td>
</tr>
<tr>
- <td align="left"><?php echo __("Real Name") . ":" ?></td>
- <td align="left"><?php echo htmlspecialchars($row["RealName"], ENT_QUOTES) ?></td>
+ <td align="left"><?= __("Real Name") . ":" ?></td>
+ <td align="left"><?= htmlspecialchars($row["RealName"], ENT_QUOTES) ?></td>
</tr>
<tr>
- <td align="left"><?php echo __("IRC Nick") . ":" ?></td>
- <td align="left"><?php echo htmlspecialchars($row["IRCNick"], ENT_QUOTES) ?></td>
+ <td align="left"><?= __("IRC Nick") . ":" ?></td>
+ <td align="left"><?= htmlspecialchars($row["IRCNick"], ENT_QUOTES) ?></td>
</tr>
<tr>
- <td align="left"><?php echo __("PGP Key Fingerprint") . ":" ?></td>
- <td align="left"><?php echo html_format_pgp_fingerprint($row["PGPKey"]) ?></td>
+ <td align="left"><?= __("PGP Key Fingerprint") . ":" ?></td>
+ <td align="left"><?= html_format_pgp_fingerprint($row["PGPKey"]) ?></td>
</tr>
<tr>
- <td align="left"><?php echo __("Last Voted") . ":" ?></td>
+ <td align="left"><?= __("Last Voted") . ":" ?></td>
<td align="left">
- <?php print $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
+ <?= $row["LastVoted"] ? date("Y-m-d", $row["LastVoted"]) : __("Never"); ?>
</td>
</tr>
<tr>
- <td colspan="2"><a href="<?php echo get_uri('/packages/'); ?>?K=<?php echo $row['Username'] ?>&amp;SeB=m"><?php echo __("View this user's packages") ?></a></td>
+ <td colspan="2"><a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&amp;SeB=m"><?= __("View this user's packages") ?></a></td>
</tr>
</table>