Powered by MediaWiki
Personal tools

Tag item has feedback

From b2evolution manual

Jump to: navigation, search

This template tag checks if there is any feedback of a given type.

[edit] Example

<source lang="php"> <?php

 $Item->has_feedback( array(
             'type'   => 'feedbacks',
             'status' => 'published'
   ) );

?> </source>

[edit] Parameters

Name Default Usage
type 'feedbacks' Feedback type. It can be one of the following values: 'feedbacks', 'comments', 'trackbacks', 'pingbacks'.
status 'published' Feedback status. It can be one of the following values: 'published', 'draft', 'deprecated'.

[edit] Return value

This function return true if there is at least one feedback.