<?php
['show' => $show, 'list' => $list, 'current' => $current, 'param' => $param, 'action' => $action, 'query' => $query] = $this->getLangChoiceData(true);
if ($show): ?>
<?= $this->icon('earth', ['id' => 'lang-switch-icon-open', 'title' => ___('Switch Language')]) ?>
<?= $this->icon('close', ['id' => 'lang-switch-icon-close', 'title' => ___('Close')]) ?>
<div class="am-lang-choice" style="display: none; position: absolute">
    <div>
        <form method="get" action="<?php p($action) ?>">
        <?php echo Am_Html::renderArrayAsInputHiddens($query); ?>
        <select name="<?php p($param) ?>">
            <?= Am_Html::renderOptions($list, $current) ?>
        </select>
        </form>
    </div>
</div>
<?php endif;