    <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;?>">
            <?php echo $language->title_native;?>
        </a>
    </li>