If I'm on the test / 1 page, it adds the class logoPrincipalHosp
to li if not the logoPrincipalElev
class.
My PHP:
<li <?php if (preg_match('/teste\/1/')) echo 'class="logoPrincipalHosp"';
else (preg_match('/teste\/2/')) echo 'class="logoPrincipalElev"';
?>>
However, it is not working