Fix for Howdy top sidebar translation

This commit is contained in:
Silvan Calarco 2019-11-02 14:02:54 +01:00
parent ac4868971f
commit 7caaeca526
2 changed files with 1 additions and 2 deletions

View File

@ -254,7 +254,6 @@ $args = array('number' => 10, 'largest' => 20);
return $args;
}
// load_plugin_textdomain('theme-my-login' , get_site_url() . 'wp-content/plugins/theme-my-login/languages/');
// load_plugin_textdomain('user-registration' , get_site_url() . 'wp-content/themes/openmamba/languages/');
add_action('wp_head','hook_cookielaw');

View File

@ -36,7 +36,7 @@ if ( !is_active_sidebar( 'top-widget' )
echo "<a class='mytoplink' href=".site_url('/register/').">".__('Register')."</a>&nbsp;&nbsp;";
} else {
get_currentuserinfo();
$a = sprintf( __('Howdy, %1$s'), $current_user->display_name );
$a = sprintf( __('Howdy, %1$s', 'responsive'), $current_user->display_name );
echo "<a class='mytoplink' href=".site_url('/forums/users/').$current_user->display_name.">".$a." ".get_avatar( $current_user->ID, 20 )."</a>&nbsp;&nbsp;";
echo "/ <a class='mytoplink' href=".wp_logout_url( get_permalink() ).">".__('Logout')."</a>&nbsp";
}