D
D
Dwellss2018-08-24 23:38:21
Smarty
Dwellss, 2018-08-24 23:38:21

How to remove a link from the current page?

I have a link to the page displayed in the script like this:

<a{{if $smarty.server.SCRIPT_NAME=='/index.php'}} class="active"{{/if}} href="http://site.com/">Главная страница</a>

And I need that, if I am on the index.php page itself, the inscription Home page is inactive .... How can I do this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question