[insert_php]
if ( is_user_logged_in() )
{
$current_user = wp_get_current_user();
echo '

Hi ' . substr($current_user->user_login,0,10) . '';
echo 'logout

';
}
else
{
echo ICL_LANGUAGE_CODE;
if (ICL_LANGUAGE_CODE == "en") {
echo '';}
else {
echo '';}
}
[/insert_php]