<?php
['show' => $show, 'list' => $list, 'current' => $current, 'param' => $param, 'action' => $action, 'query' => $query] = $this->getLangChoiceData(false);
if ($show): ?>
<div class="am-lang-choice">
    <span class="am-lang-title"><?php __e('Language') ?>:</span>
    <button type="button" class="am-lang-val am-button-as-link local" title="<?php __e('Change Language') ?>">
        <span class="am-lang-val-text"><?php p($list[$current]) ?></span>
        <span class="am-lang-val-code"><?php p($current) ?></span>
    </button>
    <div class="am-lang-choice_list">
        <form method="get" action="<?php p($action) ?>">
            <?php echo Am_Html::renderArrayAsInputHiddens($query); ?>
            <select name="<?php p($param) ?>" size="1" class="am-lang-choice_select">
                <?php echo Am_Html::renderOptions($list, $current); ?>
            </select>
        </form>
    </div>
</div>
<?php endif;