westdc-zf1/application/admin/views/scripts/footer.phtml

7 lines
241 B
PHTML
Executable File

<?php
$path = explode('?',$_SERVER['REQUEST_URI']);
$url = explode('/',$path[0]);
if (isset($url[2]) && isset($url[3]))
$text = '-'.$url[2].'-'.$url[3];
?>
<script>$('#Nav<?= $text; ?>').addClass("active");</script>