display_name;
}
if (get_theme_mod('has_account_page_quick_actions', 'no') === 'yes') {
$account_details_url = wc_get_endpoint_url(
'edit-account',
'',
get_permalink(get_option('woocommerce_myaccount_page_id'))
);
$username .= '' . __('Account', 'blocksy') . ' | ' . __("Log out", 'blocksy') . '';
}
if (! empty($username)) {
$username = '
' . $username . '
';
}
if (get_theme_mod('has_account_page_avatar', 'no') === 'yes') {
$avatar_size = intval(get_theme_mod(
'account_page_avatar_size',
'35'
)) * 2;
$username = blocksy_simple_image(
get_avatar_url(
get_current_user_id(),
[
'size' => $avatar_size
]
),
[
'tag_name' => 'span',
'suffix' => 'static',
'ratio_blocks' => false,
'img_atts' => [
'width' => $avatar_size / 2,
'height' => $avatar_size / 2,
'style' => 'height:' . (
intval($avatar_size) / 2
) . 'px',
],
]
) . $username;
}
if (! empty($username)) {
echo '';
echo $username;
echo '
';
}
});