Created
November 20, 2019 05:49
-
-
Save ammaridris/826799cba4c36d5ab02024c96d13709c to your computer and use it in GitHub Desktop.
Falang + JFontSize
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 | |
/** | |
* @package Falang for Joomla! | |
* @author Stéphane Bouey <stephane.bouey@faboba.com> - http://www.faboba.com | |
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html | |
* @copyright Copyright (C) 2010-2017. Faboba.com All rights reserved. | |
*/ | |
// No direct access to this file | |
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 JLanguage::getInstance($language->lang_code)->isRTL() ? 'rtl' : 'ltr' ?>"> | |
<?php if ($language->display) { ?> | |
<a href="<?php echo $language->link;?>"> | |
<?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;?> | |
<li><a class="jfontsize-button" id="jfontsize-minus">A-</a></li> | |
<li><a class="jfontsize-button" id="jfontsize-default">A</a></li> | |
<li><a class="jfontsize-button" id="jfontsize-plus">A+</a></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment