Powered by MediaWiki
Personal tools

Tag plugins call by code

From b2evolution manual

Jump to: navigation, search

This tag display plugin.

[edit] Example

The calendar plugin. Its code is evo_Calr.

<source lang="php"> // Calendar plugin $Plugins->call_by_code( 'evo_Calr', array(

    'block_start'        => ,
    'block_end'          => ,
    'displaycaption'     => true,
    'linktomontharchive' => false,
 ) );

</source>

<source lang="php"> // Calendar plugin $Plugins->call_by_code( 'evo_Calr', array(

    'block_start'        => ,
    'block_end'          => ,
    'displaycaption'     => true,
    'linktomontharchive' => false,
    'headerdisplay'      => 'e',
'tablestart' => ''."\n", ) ); </source> The archive plugin. Its code is evo_Arch. <source lang="php"> // Archives plugin $Plugins->call_by_code( 'evo_Arch', array( 'block_start' => '
', 'block_end' => '
', 'block_title_start' => '

', 'block_title_end' => '

',

) ); </source>

The bookmarklet plugin. Its code is cafeBkmk.

<source lang="php"> // Bookmarklet plugin $Plugins->call_by_code( 'cafeBkmk', array(

    'block_start'        => ,
    'block_end'          => ,
    'displaycaption'     => true
 ) );

</source>

[edit] Parameters

Name Default Usage
block_start (no space) Displayed before calendar.
block_end (no space) Displayed after calendar.
displaycaption true Display caption, if 'displaycaption' is true.
linktomontharchive false Display link to monthly archive, if 'linktomontharchive' is true.

[edit] Return value

This function return false, if there is no calendar plugin.

If calendar plugin is available then this function return true and displays content.