Update footer.php

if statement on line 19 will stop testing conditions when it reaches its first true value for efficiency reasons, leading to the rest of the dynamics sidebar not to be loaded