Template functions
This man page refers to b2evo version 0.9.0.11
This is a list of functions you can use in templates. They are sorted by purpose.
Blogs
- $Blog->dget() : get a blog property without displaying it (advanced function)
- $Blog->disp() : display a blog property (semi advanced function)
- $Blog->ID() : display ID of blog
- bloginfo() : deprecated by $Blog->disp()
Comments
- $Comment->anchor() : display anchor for permalinks to refer to
- $Comment->author() : display author of comment
- $Comment->author_email() : display link to comment author's provided email
- $Comment->author_ip() : display comment's author's IP
- $Comment->author_url() : display link to comment author's provided URL
- $Comment->author_User->...() : display data about the post author, see Users below. WARNING: can be NULL if this is not a member comment.
- $Comment->content() : display content of comment
- $CommentList->display_if_empty() : display message if no comment available
- $Comment->date() : display date (datetime) of comment
- $Comment->dget() : get a comment property without displaying it (advanced function)
- $Comment->disp() : display a comment property (semi advanced function)
- $Comment->edit_link() : display link to edit the comment if user has edit rights
- $Comment->ID() : display ID of comment
- $Comment->permalink() : display permalink to comment
- $Comment->msgform_link() : display link to message the comment's author (added in version 'phoenix')
- $Comment->Item->...() : display data about comment's original post, see Items
- $Comment->time() : display time (datetime) of comment
- comment_author() : deprecated by $Comment->author()
- comment_author_email() : deprecated by $Comment->author_email()
- comment_author_email_link() : deprecated by $Comment->author_email()
- comment_author_IP() : deprecated by $Comment->author_ip()
- comment_author_url() : deprecated by $Comment->author_url()
- comment_author_url_basedomain() : deprecated
- comment_author_url_link() : deprecated by $Comment->author_url()
- comment_blog_name() : deprecated
- comment_date() : deprecated by $Comment->date()
- comment_ID() : deprecated by $Comment->ID()
- comment_post_link() : deprecated by $Comment->post_link()
- comment_post_title() : deprecated by $Comment->post_title()
- comment_text() : deprecated by $Comment->content()
- comment_time() : deprecated by $Comment->time()
internationalization (i18n)
- locale_charset() : Returns the charset of the current locale
- locale_datefmt() : Returns the current locale's default date format (advanced function)
- locale_flag() : Displays a flag for the current locale
- locale_lang() : Displays/Returns the current locale
- locale_temp_switch() : Temporarily switch to another locale
- locale_timefmt() : Returns the current locale's default timeformat (advanced function)
- locale_restore_previous() : Restore the locale in use before locale_temp_switch()
- T_() : Returns argument translated to current locale, if translation exists. (advanced function)
Items
- $Item->anchor() : display anchor for permalinks to refer to
- $Item->Author->...() : display data about the post author, see Users
- $Item->can_comment() : Check if user can leave comment on this post or display error
- $Item->categories() : list all the category names for this item
- $Item->content() : display content (text) of item
- $ItemList->date_if_changed() : display the date if it has changed since last call
- $ItemList->display_if_empty() : display message if no post is available for display
- $Item->disp() : display an item parameter (semi advanced function)
- $Item->edit_link() : display link to edit the post if user has edit rights
- $Item->feedback_link() : Displays link to feedback page (under some conditions)
- $Item->msgform_link() : display link to message the post's author (added in version 'phoenix')
- $Item->gen_permalink() : generate permalink for item (advanced function)
- $Item->get() : get an item parameter without displaying it (advanced function)
- $Item->ID() : display ID of item
- $Item->issue_date() : display issue date (datetime) of item
- $Item->issue_time() : display issue time (datetime) of item
- $Item->lang() : display language code for the item
- $Item->language() : display language name for the item
- $Item->locale() : display locale for the item
- $Item->main_category() : display main category name for item
- $Item->mod_date() : display last mod date (datetime) of item
- $ItemList->mod_date() : display last mod date (datetime) of item list
- $Item->mod_time() : display last mod time (datetime) of item
- $Item->permalink() : display permalink for item
- $Item->status() : display status ('published', 'draft', 'protected'...) of item
- $Item->title() : display title of item
- $Item->trackback_rdf() : displays trackback autodiscovery information for item
- $Item->trackback_url() : displays url to use to trackback this item
- $Item->url_link() : display link to item related url
- $Item->views() : Display the number of times the Item has been viewed (Added in version 'phoenix')
- $Item->wordcount() : display the number of words in the post
- comments_link() : deprecated deprecated by Item->feedback_link()
- comments_number() : deprecated deprecated by Item->feedback_link()
- gen_permalink() : deprecated by $Item->gen_permalink()
- permalink_anchor() : deprecated by $Item->anchor()
- permalink_link() : deprecated by $Item->permalink()
- permalink_single() : deprecated by $Item->permalink()
- pingback_link() : deprecated deprecated by Item->feedback_link()
- pingback_number() : deprecated deprecated by Item->feedback_link()
- the_author() : deprecated by $Item->Author->prefered_name()
- the_author_url() : deprecated by $Item->Author->url()
- the_categories() : deprecated by $Item->categories()
- the_category() : deprecated by $Item->main_category()
- the_content() : deprecated by $Item->content()
- the_date() : deprecated by $""ItemList""->date_if_changed()
- the_lang() : deprecated by $Item->lang()
- the_link(): deprecated by $Item->url_link()
- the_time() : deprecated by $Item->time() / $Item->date()
- the_title() : deprecated by $Item->title()
- the_wordcount() : deprecated by $Item->wordcount()
- trackback_link() : deprecated deprecated by Item->feedback_link()
- trackback_number() : deprecated deprecated by Item->feedback_link()
- trackback_rdf() : deprecated by $Item->trackback_rdf()
- trackback_url() : deprecated by $Item->trackback_url()
Page
General
- imgbase() : output base URL to b2evo's image folder
- skinbase() : output base URL to current skin
Title
- arcdir_title() : deprecated by request_title()
- last_comments_title() : deprecated by request_title()
- msgform_title() : deprecated by request_title()
- profile_title() : deprecated by request_title()
- request_title() : Display a global title matching url params
- single_cat_title() : deprecated by request_title()
- single_month_title() : deprecated by request_title()
- single_post_title() : deprecated by request_title()
- stats_title() : deprecated by request_title()
Header
- comments_popup_script() : include the javascript that is required to open comments, trackback and pingback in popup windows.
Footer
- debug_info() : output debug info for this page, if requested
- log_hit() : log the hit on this page
Posts
Posts are Items. See Items.
Users
Authors
- $User->ID() : display ID of user
- $User->disp() : display a user parameter (semi advanced function)
- $User->get() : get a user parameter without displaying it (advanced function)
- $User->level() : display user's level
- $User->login() : display user's login
- $User->msgform_link() : display link to message the user (added in version 'phoenix')
- $User->prefered_name() : display user's preferred name
- $User->url() : display user's url
Current user
- user_login_link()
- user_register_link()
- user_admin_link()
- user_profile_link()
- user_logout_link()