- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- User Tags
- Template Tag: User Picture
Template Tag: User Picture
Displays the user’s picture.
Examples
Quick Template
[User:picture|size=crop-top-128x128|class=avatar|zoomable=true]
PHP Template
$User->get_avatar_styled( array(
'size' => 'crop-top-128x128',
'class' => 'avatar',
'zoomable' => true ) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
|
Image size of the picture. |
|
|
CSS class applied to the image element. |
|
|
Image align attribute |
|
|
Do we want the avatar image to be zoomed in when clicked? |
|
|
Avatar overlay text |
|
|
Group name for lightbox plugin. |
|
|
Change size of the attributes "width" & "height".
|
|
|
Protocol is used for gravatar, example: |
Return value
This tag displays content only, it does not have a return value.