Browse Source

relate links with the document root

pull/7/head
ghost 2 years ago
parent
commit
494db5b0ad
  1. 19
      public/index.phtml

19
public/index.phtml

@ -4,9 +4,8 @@
<link rel="stylesheet" type="text/css" href="/css/app.css?v=4" /> <link rel="stylesheet" type="text/css" href="/css/app.css?v=4" />
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="description" content="Open Source Content Exploring Platform for Kevacoin Blockchain" /> <meta name="description" content="Open Source Content Exploring Platform for Kevacoin Blockchain" />
<base href="<?php echo BASE_URL; ?>" />
<?php if ($namespaceHash) { ?> <?php if ($namespaceHash) { ?>
<link rel="icon" type="image/png" href="image.php?hash=<?php echo $namespaceHash; ?>&radius=30" /> <link rel="icon" type="image/png" href="/image.php?hash=<?php echo $namespaceHash; ?>&radius=30" />
<?php } ?> <?php } ?>
<?php if ($ns) { ?> <?php if ($ns) { ?>
<?php if ($page) { ?> <?php if ($page) { ?>
@ -34,7 +33,7 @@
</div> </div>
<?php if ($ns) { ?> <?php if ($ns) { ?>
<div class="mx-a mw-560 px-16 pb-16"> <div class="mx-a mw-560 px-16 pb-16">
<img class="br-50 shine" src="image.php?hash=<?php echo $ns; ?>" alt="<?php echo $ns; ?>" /> <img class="br-50 shine" src="/image.php?hash=<?php echo $ns; ?>" alt="<?php echo $ns; ?>" />
</div> </div>
<?php } ?> <?php } ?>
<div class="mb-36 c-1"><?php echo $namespaceValue ? $namespaceValue : 'Observe Kevacoin Universe'; ?></div> <div class="mb-36 c-1"><?php echo $namespaceValue ? $namespaceValue : 'Observe Kevacoin Universe'; ?></div>
@ -49,18 +48,18 @@
<?php if (!$ns) { ?> <?php if (!$ns) { ?>
<div class="mx-a mw-560 mb-16"> <div class="mx-a mw-560 mb-16">
<?php if (SEF_MODE) { ?> <?php if (SEF_MODE) { ?>
<a href="<?php echo $item['namehash']; ?>"> <a href="/<?php echo $item['namehash']; ?>">
<img class="br-50" src="image.php?hash=<?php echo $item['namehash']; ?>" alt="<?php echo $item['namehash']; ?>" /> <img class="br-50" src="/image.php?hash=<?php echo $item['namehash']; ?>" alt="<?php echo $item['namehash']; ?>" />
</a> </a>
<?php } else { ?> <?php } else { ?>
<a href="?ns=<?php echo $item['namehash']; ?>"> <a href="/?ns=<?php echo $item['namehash']; ?>">
<img class="br-50" src="image.php?hash=<?php echo $item['namehash']; ?>" alt="<?php echo $item['namehash']; ?>" /> <img class="br-50" src="/image.php?hash=<?php echo $item['namehash']; ?>" alt="<?php echo $item['namehash']; ?>" />
</a> </a>
<?php } ?> <?php } ?>
</div> </div>
<?php } ?> <?php } ?>
<?php if (!$tx) { ?> <?php if (!$tx) { ?>
<a class="d-block" href="<?php echo (SEF_MODE ? $item['txid'] : '?tx=' . $item['txid']); ?>"> <a class="d-block" href="/<?php echo (SEF_MODE ? $item['txid'] : '?tx=' . $item['txid']); ?>">
<?php } ?> <?php } ?>
<div class="f-s-16 mb-16 of-a"> <div class="f-s-16 mb-16 of-a">
<?php echo $item['key']; ?> <?php echo $item['key']; ?>
@ -81,13 +80,13 @@
<?php if (!$tx && ($newer !== false || $older !== false)) { ?> <?php if (!$tx && ($newer !== false || $older !== false)) { ?>
<div class="t-center pt-16 pb-27"> <div class="t-center pt-16 pb-27">
<?php if ($newer !== false) { ?> <?php if ($newer !== false) { ?>
<a href="<?php echo $newer; ?>"<?php echo $newer ? ' rel="nofollow"' : false; ?>>newer</a> <a href="/<?php echo $newer; ?>"<?php echo $newer ? ' rel="nofollow"' : false; ?>>newer</a>
<?php } ?> <?php } ?>
<?php if ($newer !== false && $older !== false) { ?> <?php if ($newer !== false && $older !== false) { ?>
| |
<?php } ?> <?php } ?>
<?php if ($older !== false) { ?> <?php if ($older !== false) { ?>
<a href="<?php echo $older; ?>"<?php echo $older ? ' rel="nofollow"' : false; ?>>older</a> <a href="/<?php echo $older; ?>"<?php echo $older ? ' rel="nofollow"' : false; ?>>older</a>
<?php } ?> <?php } ?>
</div> </div>
<?php } ?> <?php } ?>

Loading…
Cancel
Save