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>
This commit is contained in:
Lukas Fleischer 2012-09-21 08:57:29 +02:00
parent 964ea083e6
commit 6102759b7c
26 changed files with 368 additions and 366 deletions

View file

@ -3,10 +3,10 @@
<div id="footer">
<?php if ($ver): ?>
<p>AUR <?php echo htmlspecialchars($ver) ?></p>
<p>AUR <?= htmlspecialchars($ver) ?></p>
<?php endif; ?>
<p>Copyright &copy; 2004-2012 AUR Development Team.</p>
<p><?php echo __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.') ?></p>
<p><?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.') ?></p>
</div>
</div>
</body>