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

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

[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.