Use echo instead of PHP shorthand

parent 36845d56
......@@ -117,47 +117,47 @@ save_binaries_json($files, $stable);
<h1>Borg ARM builds</h1> <br>Currently there are automated builds for three different versions of ARM hardware:
<div class="flavor">
<a class="download" href="<?= get_dl_link('armv5', $stable) ?>">
<a class="download" href="<?php echo get_dl_link('armv5', $stable); ?>">
<h2>ARMv5 / ARMv4t</h2><br>
<b class="download-link">Borg <?= $stable ?><br><br><?= human_filesize($files["borg-{$stable}-armv5"]->size ?? null) ?></b>
<b class="download-link">Borg <?php echo $stable; ?><br><br><?php echo human_filesize($files["borg-{$stable}-armv5"]->size ?? null); ?></b>
</a>
<span class="description">
This version is built for 32Bit-ARM CPUs without a Floating-Point-Unit (ARM v4t and v5).<br>
<br>
A lot of NAS devices are using this type of hardware.<br>
<span class="code">
<b style="color:#2aa198">wget</b> <b style="color:#d33682"><?= get_dl_link('armv5', $stable) ?></b> -O /usr/bin/borg<br>
<b style="color:#2aa198">wget</b> <b style="color:#d33682"><?php echo get_dl_link('armv5', $stable); ?></b> -O /usr/bin/borg<br>
<b style="color:#2aa198">chmod</b> a+x /usr/bin/borg
</span>
</span>
</div>
<div class="flavor">
<a class="download" href="<?= get_dl_link('armv6', $stable) ?>">
<a class="download" href="<?php echo get_dl_link('armv6', $stable); ?>">
<h2>ARMv7 / ARMv6</h2><br>
<b class="download-link">Borg <?= $stable ?><br><br><?= human_filesize($files["borg-{$stable}-armv6"]->size ?? null) ?></b>
<b class="download-link">Borg <?php echo $stable ?><br><br><?php echo human_filesize($files["borg-{$stable}-armv6"]->size ?? null); ?></b>
</a>
<span class="description">
This version is built for 32Bit-ARM CPUs with a Floating-Point-Unit (ARM v6 and v7).<br>
<br>A lot of modern ARM boards and devices ship with a floating-point unit (FPU).
This includes Raspberry Pis and some powerful NAS devices.<br>
<span class="code">
<b style="color:#2aa198">wget</b> <b style="color:#d33682"><?= get_dl_link('armv6', $stable) ?></b> -O /usr/bin/borg<br>
<b style="color:#2aa198">wget</b> <b style="color:#d33682"><?php echo get_dl_link('armv6', $stable); ?></b> -O /usr/bin/borg<br>
<b style="color:#2aa198">chmod</b> a+x /usr/bin/borg
</span>
</span>
</div>
<div class="flavor">
<a class="download" href="<?= get_dl_link('arm64', $stable) ?>">
<a class="download" href="<?php echo get_dl_link('arm64', $stable); ?>">
<h2>ARMv8 (or ARM64)</h2><br>
<b class="download-link">Borg <?= $stable ?><br><br><?= human_filesize($files["borg-{$stable}-arm64"]->size ?? null) ?></b>
<b class="download-link">Borg <?php echo $stable ?><br><br><?php echo human_filesize($files["borg-{$stable}-arm64"]->size ?? null); ?></b>
</a>
<span class="description">
This version is built for modern 64Bit-ARM CPUs (ARM v8).<br>
Examples include modern smartphones or the Pine64.<br>
<span class="code">
<b style="color:#2aa198">wget</b> <b style="color:#d33682"><?= get_dl_link('arm64', $stable) ?></b> -O /usr/bin/borg<br>
<b style="color:#2aa198">wget</b> <b style="color:#d33682"><?php echo get_dl_link('arm64', $stable); ?></b> -O /usr/bin/borg<br>
<b style="color:#2aa198">chmod</b> a+x /usr/bin/borg
</span>
</span>
......@@ -198,10 +198,10 @@ save_binaries_json($files, $stable);
</li>
<?php foreach ($files as $f) : ?>
<li class="item file">
<a href="<?= get_dl_link(null, null, $f->name) ?>">
<span class="label" title="<?= $f->name ?>"><?= $f->name ?></span>
<span class="date" data-time="<?= $f->created ?>"><?= $f->created ?></span>
<span class="size" data-bytes="<?= $f->size ?>"><?= human_filesize($f->size) ?></span>
<a href="<?php echo get_dl_link(null, null, $f->name); ?>">
<span class="label" title="<?php echo $f->name ?>"><?php echo $f->name ?></span>
<span class="date" data-time="<?php echo $f->created ?>"><?php echo $f->created ?></span>
<span class="size" data-bytes="<?php echo $f->size ?>"><?php echo human_filesize($f->size); ?></span>
</a>
</li>
<?php endforeach; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment