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

6 lines
219 B
PHTML
Raw Normal View History

2014-07-23 09:29:00 +00:00
<?php
2014-08-27 09:37:20 +00:00
$url = substr_replace(parse_url("$_SERVER[REQUEST_URI]"), '', 0, 6);
2014-07-23 09:29:00 +00:00
$nav = str_replace("/","-",$url);
$text = implode(",", $nav);
?>
<script>$('#Nav<?= $text; ?>').addClass("active");</script>