summaryrefslogtreecommitdiffstats
path: root/web/html/addvote.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/html/addvote.php
parent964ea083e68310ca7c09ca938219f4146f0ca5b9 (diff)
downloadaur-6102759b7cb9fd23f4e7fa5f12137334ff30a410.tar.gz
aur-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/html/addvote.php')
-rw-r--r--web/html/addvote.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/web/html/addvote.php b/web/html/addvote.php
index d1cd809a..55750317 100644
--- a/web/html/addvote.php
+++ b/web/html/addvote.php
@@ -62,29 +62,29 @@ if ($atype == "Trusted User" || $atype == "Developer") {
?>
<?php if (!empty($error)): ?>
- <p style="color: red;" class="pkgoutput"><?php print $error ?></p>
+ <p style="color: red;" class="pkgoutput"><?= $error ?></p>
<?php endif; ?>
<div class="box">
- <h2><?php print __("Submit a proposal to vote on.") ?></h2>
+ <h2><?= __("Submit a proposal to vote on.") ?></h2>
- <form action="<?php echo get_uri('/addvote/'); ?>" method="post">
+ <form action="<?= get_uri('/addvote/'); ?>" method="post">
<p>
- <b><?php print __("Applicant/TU") ?></b>
+ <b><?= __("Applicant/TU") ?></b>
<input type="text" name="user" value="<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>" />
- <?php print __("(empty if not applicable)") ?>
+ <?= __("(empty if not applicable)") ?>
</p>
<p>
- <b><?php print __("Length in days") ?></b>
+ <b><?= __("Length in days") ?></b>
<input type="text" name="length" value="<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>" />
- <?php print __("(defaults to 7 if empty)") ?>
+ <?= __("(defaults to 7 if empty)") ?>
</p>
<p>
- <b><?php print __("Proposal") ?></b><br />
+ <b><?= __("Proposal") ?></b><br />
<textarea name="agenda" rows="15" cols="80"><?php if (!empty($_POST['agenda'])) { print htmlentities($_POST['agenda']); } ?></textarea><br />
<input type="hidden" name="addVote" value="1" />
- <input type="hidden" name="token" value="<?php print htmlspecialchars($_COOKIE['AURSID']) ?>" />
- <input type="submit" class="button" value="<?php print __("Submit"); ?>" />
+ <input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
+ <input type="submit" class="button" value="<?= __("Submit"); ?>" />
</p>
</form>
</div>