- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Item Tags
- Template Tag: Item Visibility Status
Template Tag: Item Visibility Status
Display status of the Post/Item. Status can be one of the following: published
, community
, protected
, review
, private
, draft
, deprecated
, redirected
.
Example
Quick Template
[Item:visibility_status|format=htmlbody]
PHP Template
$Item->get_format_status( array(
'template' => '<div class="evo_status evo_status__$status$ badge" data-toggle="tooltip" data-placement="top" title="$tooltip_title$">$status_title$</div>'
'format' => 'htmlbody'
) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
|
Template to display the status. There are 3 possible variables to use in the template:
|
|
|
Format to output. Possible values: |
Return value
This tag displays content only, it does not have a return value.