Powered by MediaWiki
Personal tools

Tag item msgform link

From b2evolution manual

Jump to: navigation, search

Display link to message form for this item's author.

Using this link you can send a message to the author.

[edit] Example

<?php
  $Item->msgform_link( array(
            'before'   => ' ',
            'after'    => ' ',
            'text'     => '#',
            'title'    => '#',
            'class'    => ''
    ) );
?>

[edit] Parameters

Name Default Usage
before (1 space) Displayed before the link.
after (1 space) Displayed after the link.
text '#' Link text, '#' for default. If 'text' is not '#' then link will be displayed instead email image.
title '#' Link title/alt, '#' for default.
class (no space) CSS class.

[edit] Return value

This function return false, if there is no email address for the item's author.
If there is email then this function return true and displays content.