Tag item footer
From b2evolution manual
b2evolution version 2.4
This template tag displays a footer text below the Item. This footer text can be edited by the blog owner in the admin interface under Blog Settings > Advanced > Meta Data.
Two different texts can be configured:
- One that displays in single post view. (That is when 'mode' is set to 'single' or to '#')
- One that displays in RSS/Atom feeds. (That is when mode is set to 'xml')
[edit] Example
<source lang="php"> <?php // Display Item footer text (text can be edited in Blog Settings): $Item->footer( array(
'mode' => '#' // Will detect 'single' from $disp automatically'block_start' => '',
) );
?> </source>
[edit] Parameters
| Name | Default | Usage |
|---|---|---|
| mode | '#' | Effective valid values are 'single' and 'xml'. If you pass '#' , this will be replaced with the value of $disp which will result in displaying the 'single" footer text on single post page and displaying nothing on other pages. |
| block_start | <div class="item_footer"> | Displayed before the text (if a footer text is displayed) |
| block_end | </div> | Displayed after the text (if a footer text is displayed) |
[edit] Return value
This function return false, if there is no any text defined for item footer.
If there is defined text then this function return true and displays content.
