    <?php foreach ($languages as $language) { ?>
    <?php if ($language['code'] == $code) { ?>
    <span class="leng-active">
        <a href="<?php echo $language['href']; ?>"><?php echo $language['name']; ?></a>
      </span>|
    <?php }else{ ?>
    <span>
        <a href="<?php echo $language['href']; ?>"><?php echo $language['name']; ?></a>
      </span>|
    <?php } ?>
    <?php } ?>