<?php 
$default_settings = [
    'wg_align' => '',
];
$settings = array_merge($default_settings, $settings);
extract($settings);
?>
<div class="ct-wpml">
	<?php if(class_exists('SitePress')) { ?>
        <div class="site-header-lang">
            <?php do_action('wpml_add_language_selector'); ?>
        </div>
    <?php } else { ?>
        <div class="site-header-lang custom">
            <div class="wpml-ls-statics-shortcode_actions wpml-ls wpml-ls-legacy-dropdown js-wpml-ls-legacy-dropdown">
                <ul>
                    <li tabindex="0" class="wpml-ls-slot-shortcode_actions wpml-ls-item wpml-ls-item-en wpml-ls-current-language wpml-ls-first-item wpml-ls-item-legacy-dropdown">
                        <a href="#" class="js-wpml-ls-item-toggle wpml-ls-item-toggle"><img class="wpml-ls-flag" src="<?php echo esc_url(get_template_directory_uri().'/assets/images/flag/en.png'); ?>" alt="en" title="English"><span class="wpml-ls-native"><?php echo esc_html__('English', 'grupi'); ?></span></a>
                        <ul class="wpml-ls-sub-menu">
                            <li class="wpml-ls-slot-shortcode_actions wpml-ls-item wpml-ls-item-fr">
                                <a href="#" class="wpml-ls-link"><img class="wpml-ls-flag" src="<?php echo esc_url(get_template_directory_uri().'/assets/images/flag/fr.png'); ?>" alt="fr" title="France"><span class="wpml-ls-native"><?php echo esc_html__('France', 'grupi'); ?></span></a>
                            </li>
                            <li class="wpml-ls-slot-shortcode_actions wpml-ls-item wpml-ls-item-de wpml-ls-last-item">
                                <a href="#" class="wpml-ls-link"><img class="wpml-ls-flag" src="<?php echo esc_url(get_template_directory_uri().'/assets/images/flag/ru.png'); ?>" alt="ue" title="Russia"><span class="wpml-ls-native"><?php echo esc_html__('Russia', 'grupi'); ?></span></a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    <?php } ?>
</div>