Commit f66445e9 authored by Petr Balga's avatar Petr Balga

Getting permalink of topup page, due to it's inability to work on server.

parent 012a71b1
<footer>
<?php $actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$landing = get_home_url() .'/';
$topup = get_home_url() . '/topup/';
$topup = get_permalink(get_page_by_title('topup'));
?>
<a href='<?php echo get_home_url() ?>' <?php if($actual_link == $landing) {echo 'class="active"';} ?>>
......@@ -12,7 +12,7 @@
<div class='icon cards'></div>
<p>Cards</p>
</a>
<a href='<?php echo get_home_url() . '/topup/'; ?> ' <?php if($actual_link == $topup) {echo 'class="active"';} ?>>
<a href='<?php echo get_permalink(get_page_by_title('topup')); ?> ' <?php if($actual_link == $topup) {echo 'class="active"';} ?>>
<div class='icon topup'></div>
<p>Top Up</p>
</a>
......
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