- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Other Tags
- Template Tag: Comment Author
Template Tag: Comment Author
This tag displays the author of the current Comment.
The tag can display not only the author’s name but also their avatar.
Examples
Quick Template
[Comment:author|
before=<span class="author">|
after=</span>|
link_text=auto|
thumb_size=crop-top-32x32|
thumb_class=|
thumb_zoomable=false|
login_mask=|
display_bubbletip=true]
PHP Template
$Comment->get_author( array(
'before' => '<span class="author">',
'after' => '</span>',
'link_text' => 'auto',
'thumb_size' => 'crop-top-32x32',
'thumb_class' => '',
'thumb_zoomable' => false,
'login_mask' => '',
'display_bubbletip' => true,
'nowrap' => true,
) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
|
Displayed before the anonymous user name |
|
|
Displayed after the anonymous user name |
|
|
Displayed before the Member user name |
|
|
Displayed after the Member user name |
|
|
Possible values: |
|
|
Format to output. Possible values: |
|
|
Possible values: |
|
|
Possible values: |
|
||
|
|
CSS class applied to the link. |
|
|
Image size of the avatar. |
|
|
Avatar image CSS class |
|
|
Do we want the avatar image to be zoomed in when clicked? |
|
|
|
|
|
CSS class applied to login. Not use if |
|
|
Do we want to display a bubbletip on mouseover? |
|
|
Do we want to use |
|
|
|
|
|
|
|
|
|
|
|
Protocol is used for gravatar, example: |
Return value
This tag displays content only, it does not have a return value.