<?php /* Smarty version Smarty-3.1.8, created on 2020-01-01 15:21:22
         compiled from "/home/agmc/public_html/beta/application/core/views/frontend/custom/CommonLanguageOptions.tpl" */ ?>
<?php /*%%SmartyHeaderCode:17528627445e0c80b24729f8-43218991%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '85296c403f5c0bd1aeef3931ba3441b36ac70788' => 
    array (
      0 => '/home/agmc/public_html/beta/application/core/views/frontend/custom/CommonLanguageOptions.tpl',
      1 => 1577772525,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17528627445e0c80b24729f8-43218991',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'view_common_languages' => 0,
    'resCommonLanguages' => 0,
    'AjaxCurrLanguage' => 0,
    'view_common_languageName' => 0,
    'currentLanguageID' => 0,
    'view_public_path' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e0c80b2488b34_14862433',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e0c80b2488b34_14862433')) {function content_5e0c80b2488b34_14862433($_smarty_tpl) {?><?php if (count($_smarty_tpl->tpl_vars['view_common_languages']->value)>1){?>
    <?php if (count($_smarty_tpl->tpl_vars['view_common_languages']->value)==2){?>
        <div class="languageList xs-list lang-option">
            <?php  $_smarty_tpl->tpl_vars["resCommonLanguages"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resCommonLanguages"]->_loop = false;
 $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['view_common_languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["resCommonLanguages"]->key => $_smarty_tpl->tpl_vars["resCommonLanguages"]->value){
$_smarty_tpl->tpl_vars["resCommonLanguages"]->_loop = true;
 $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["resCommonLanguages"]->key;
?>
                <span class="lang-optionlist lang-optionlist-btn lang-btn font-weight-bold text-white cursor-pointer  <?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageCode'];?>
" id="common_language_<?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageID'];?>
_<?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['LanguageLCIDstring'];?>
"> 
                    <?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageName'];?>
 
                </span>
            <?php } ?>
        </div>
    <?php }else{ ?>
        <div class="dropdown lang-option mt-lg-1 col">
             <a class="languagebox_head" data-toggle="dropdown" id="<?php echo $_smarty_tpl->tpl_vars['AjaxCurrLanguage']->value;?>
" title="<?php echo $_smarty_tpl->tpl_vars['view_common_languageName']->value;?>
">
                <?php echo $_smarty_tpl->tpl_vars['view_common_languageName']->value;?>

          </a>
          <ul class="dropdown-menu p-lg-2 languageList">
               <?php  $_smarty_tpl->tpl_vars["resCommonLanguages"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resCommonLanguages"]->_loop = false;
 $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['view_common_languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["resCommonLanguages"]->key => $_smarty_tpl->tpl_vars["resCommonLanguages"]->value){
$_smarty_tpl->tpl_vars["resCommonLanguages"]->_loop = true;
 $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["resCommonLanguages"]->key;
?>
      <?php if ($_smarty_tpl->tpl_vars['currentLanguageID']->value!=$_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageID']){?>
       <li class="pb-1"> 
          <a href="javascript:void(0);" class="lang-optionlist" id="common_language_<?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageID'];?>
_<?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['LanguageLCIDstring'];?>
"> <img src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/languages/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageImage'], ENT_QUOTES, 'UTF-8', true);?>
" width="22" height="16" alt="<?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageName'];?>
" /> <?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageName'];?>
</a></li>
              <?php }?>
      <?php } ?>
                        </ul>
          </div>
    <?php }?>

<?php }?><?php }} ?>