    <li dir=<?php echo JLanguage::getInstance($language->lang_code)->isRTL() ? '"rtl"' : '"ltr"'?> class="@classNames">
        <a class="<?php if ($language->active) : ?> active<?php endif; ?>" href="<?php echo $language->link;?>">
            <span><?php echo $language->title_native;?></span>
        </a>
    </li>