Powered by MediaWiki
Personal tools

Tag item footer

From B2evolution

Jump to: navigation, search

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

<?php
// Display Item footer text (text can be edited in Blog Settings):
$Item->footer( array(
    'mode'        => '#'       // Will detect 'single' from $disp automatically
    'block_start' => '<div class="item_footer">',
    'block_end'   => '</div>',
  ) );
?>

[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)