Does anyone know how can i check if href is equal to current page link in smarty? I want to add a class “active” to a link from a menu.
My code goes something like this
<div id="navigation-menu">
<a href="index.php" class="active">Home</a>
<a href="index.php?page=how_it_works">How it Works</a>
<a href="index.php?page=prices">Prices</a>
</div>
Think you can do something like:
But not sure, don’t know smarty.