Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / index.php
diff options
context:
space:
mode:
Commitff740779b6d09e26416a348a22a7380b13068ac2 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-26 08:45:02 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-26 08:45:02 +0200
Filesf4cd3791ad6d5cbb5febe0c8f2c67f0b6093f947 /views/archive/index.php
nowayforward_human-ff740779b6d09e26416a348a22a7380b13068ac2.tar
nowayforward_human-ff740779b6d09e26416a348a22a7380b13068ac2.tar.gz
nowayforward_human-ff740779b6d09e26416a348a22a7380b13068ac2.zip
Parentf1246e8b009ce3cd3229225bf1d57237cad58ce0 (diff)
chore(views): Replace <?php echo with <?=
1 files changed, 10 insertions, 10 deletions
-rw-r--r--views/archive/index.php20
diff --git a/views/archive/index.php b/views/archive/index.php
index 0b5dff6..de01503 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -5,10 +5,10 @@
?>
<?php if ($page !== null): ?>
- <iframe src="<?php echo "/archives/{$page->WID}" ?>" scrolling="no"></iframe>
+ <iframe src="<?= "/archives/{$page->WID}" ?>" scrolling="no"></iframe>
<form action="/sample_archive/index.php" method="POST">
- <input type="hidden" name="page_url" value="<?php echo $_GET["page_url"] ?>">
+ <input type="hidden" name="page_url" value="<?= $_GET["page_url"] ?>">
<input type="submit" value="Archive Now!">
</form>
<!-- Button to add to list -->
@@ -19,13 +19,13 @@
<section class="item">
<section>
<div>
- <img src="<?php echo "/archives/{$page->WID}/favicon.ico" ?>" class="favicon">
- <a href="<?php echo "/archives/{$page->WID}" ?>"><?php echo $page->URL ?></a>
- <span class="float-right"><?php echo $page->Date ?></span>
+ <img src="<?= "/archives/{$page->WID}/favicon.ico" ?>" class="favicon">
+ <a href="<?= "/archives/{$page->WID}" ?>"><?= $page->URL ?></a>
+ <span class="float-right"><?= $page->Date ?></span>
</div>
<div class="details">
- <span>Visits: <?php echo $page->Visits ?></span>
- <span class="float-right"><?php echo Database\User::fromDBuid($page->RequesterUID)->Username ?></span>
+ <span>Visits: <?= $page->Visits ?></span>
+ <span class="float-right"><?= Database\User::fromDBuid($page->RequesterUID)->Username ?></span>
</div>
</section>
<?php if (false): # If user logged-in ?>
@@ -38,15 +38,15 @@
<?php endforeach; ?>
<?php elseif(!doesWebsiteExist($_GET["page_url"])): ?>
- <h2>"<?php echo $_GET["page_url"] ?>" Does not exist!</h2>
+ <h2>"<?= $_GET["page_url"] ?>" Does not exist!</h2>
<p>Submit another request or check the spelling of the site and try again</p>
<a href="/home/index.php">Go back!</a>
<?php else: ?>
- <h2>"<?php echo $_GET["page_url"] ?>" hasn't been archived yet!</h2>
+ <h2>"<?= $_GET["page_url"] ?>" hasn't been archived yet!</h2>
<form action="/sample_archive/index.php" method="POST">
- <input type="hidden" name="page_url" value="<?php echo $_GET["page_url"] ?>">
+ <input type="hidden" name="page_url" value="<?= $_GET["page_url"] ?>">
<input type="submit" value="Archive Now!">
</form>