- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Item Tags
- Template Tag: Item Read Status
Template Tag: Item Read Status
Displays a colored status icon indicating whether or not the Post/Item has been read by the current User.
Examples
Quick Template
[Item:read_status|style=text|before=<span class="read_status">|after=</span>]
PHP Template
$Item->display_unread_status( array(
'before' => '<span class="read_status">',
'after' => '</span>',
'style' => 'text',
) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
|
Displayed before the read status |
|
|
Displayed after the read status |
|
|
CSS class applied to read status when the style is set to |
|
|
Display style for the read status. Possible values: |
|
|
Title tooltip for a post new to the current user and has never been opened. |
|
|
Title tooltip for an updated post that is not yet read by the current user. |
|
|
Title tooltip for a post that is already read by the current user. |
|
|
Text to display for a post new to the current user and has never been opened. Only used when |
|
|
Text to display for an updated post that is not yet read by the current user. Only used when |
|
|
Text to display for a post that is already read by the current user. Only used when |
|
|
CSS class to apply for a post new to the current user and has never been opened. Only used when |
|
|
CSS class to apply for an updated post that is not yet read by the current user. Only used when |
|
|
CSS class to apply for a post that is already read by the current user. Only used when |
Return value
This tag displays content only, it does not have a return value.