Hi,
I haven’t yet make shortcode for language switcher.
The language switcher with 1.3.5 version can be display in 3 ways
1) widget
2) in menu
3) by do_action(‘falang_print_language_switch’);
with the 3)
The display can be changed with
add_action(‘print_custom_language_switch’, ‘custom_language_switch’, 10, 2);
function custom_language_switch($languages, $falang) {
?>
<ul class=”falang-language-switcher nav”>
<?php
foreach ($languages as $language) {
$file = FALANG_DIR.’/flags/’ . $language->flag_code . ‘.png’;
if ( ! empty( $language->flag_code ) && file_exists( $file) ) {
$flag_url = plugins_url( ‘flags/’.$language->flag_code . ‘.png’, FALANG_FILE );
}
?>
<li class=”<?php echo $language->slug; ?><?php if ($falang->is_default($language)) echo ‘ current’; ?>”>
get_translated_url($language); ?>”>” alt=”<?php echo $language->name;?>”/>
<?php } ?>
<?php
}