* * @param array $args style (dropdown|list), label (native|name|code), flags (1|0), class. */ function softml_language_switcher( $args = array() ) { Soft_ML_Kses::echo_html( Soft_ML_Switcher::render( (array) $args ) ); } } if ( ! function_exists( 'softml_current_language' ) ) { /** * Language code of the page being viewed (e.g. "en", "fr"). * * @return string */ function softml_current_language() { return Soft_ML_Router::current_language(); } }