User.prototype.imageLink()

Display the user’s profile image linking his/her home page.

Syntax

user.imageLink(size int) string user.imageLink(size int, className string) string

Parameters

className string

Use a custom class name for styling purposes. The outer <a> tag will use the className directly, the inner <img> tag will use it with the suffix -img.

Description

Get the user’s profile image wrapped in an anchor tag linking his/her home page that you can directly embed in your HTML code.

Examples

Display the profile image of the sandbox user.

Provide a custom class name.

Subscribe to our newsletter!