Created
October 24, 2021 23:27
-
-
Save ammaridris/6e5006a0f0421f53882b38690a108e64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('_JEXEC') or die; ?> | |
<ul class="<?php echo $params->get('inline', 1) ? 'lang-inline' : 'lang-block';?>"> | |
<?php foreach($list as $language):?> | |
<?php if ($params->get('show_active', 0) || !$language->active):?> | |
<li class="<?php echo $language->active ? 'lang-active' : '';?>" dir="<?php echo $language->rtl ? 'rtl' : 'ltr' ?>"> | |
<?php if ($language->display) { ?> | |
<a href="<?php echo $language->link;?>" class="uk-button uk-button-secondary uk-button-small uk-text-uppercase uk-text-bold uk-text-small"> | |
<?php if ($params->get('image', 1)):?> | |
<?php echo JHtml::_('image', $imagesPath.$language->image.'.'.$imagesType, $language->title_native, array('title'=>$language->title_native), $relativePath);?> | |
<?php endif; ?> | |
<?php if ($params->get('show_name', 1)):?> | |
<?php echo $params->get('full_name', 1) ? $language->title_native : strtoupper($language->sef);?> | |
<?php endif; ?> | |
</a> | |
<?php } else { ?> | |
<?php if ($params->get('image', 1)):?> | |
<?php echo JHtml::_('image', $imagesPath.$language->image.'.'.$imagesType, $language->title_native, array('title'=>$language->title_native,'style'=>'opacity:0.5'), $relativePath);?> | |
<?php endif; ?> | |
<?php if ($params->get('show_name', 1)):?> | |
<?php echo $params->get('full_name', 1) ? $language->title_native : strtoupper($language->sef);?> | |
<?php endif; ?> | |
<?php } ?> | |
</li> | |
<?php endif;?> | |
<?php endforeach;?> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment