Powered by MediaWiki
Personal tools

Tag item type

From b2evolution manual

Jump to: navigation, search

Display type of item.

Type can be one of the following values: Post, Page, Intro-Main, Intro-Cat, Intro-Tag, Intro-Sub, Intro-All, Podcast, Sidebar link.

[edit] Example

<source lang="php"> $Item->type( $before = , $after = , $format = 'htmlbody' ); </source>

[edit] Parameters

Name Default Usage
before (no space) String to display before type.
after (no space) String to display after type.
format 'htmlbody' Format to output.

[edit] Return value

This function return false for unknown type instead it displays content.