$signed_in, 'profile' => $profile, 'avatar' => first($profile['avatar_url'] ?? false, $profile['profile_image'] ?? false), 'display_name' => first($profile['username'] ?? false, $profile['email'] ?? false, 'Account'), ); } function theme_render_account_links($options = array()) { $context = theme_get_user_context(); $wrapper_class = trim((string)first($options['wrapper_class'] ?? false, 'nav-account')); $name_class = trim((string)first($options['name_class'] ?? false, 'account-name')); $links_wrapper_class = trim((string)($options['links_wrapper_class'] ?? '')); $show_avatar = !empty($options['show_avatar']); $show_name = array_key_exists('show_name', $options) ? (bool)$options['show_name'] : true; ?>