- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Item Tags
- Template Tag: Item Has Feedback
Template Tag: Item Has Feedback
This template tag checks if there are comments of a given type.
== Example ==
<?php
$Item->has_feedback( array(
'type' => 'feedbacks',
'status' => 'published'
) );
?>
== Parameters ==
* Name: type
* Default: ‘feedbacks’
* Usage: Feedback type. It can be one of the following values: ‘feedbacks’, ‘comments’, ‘trackbacks’, ‘pingbacks’.
* Name: status
* Default: ‘published’
* Usage: Feedback status. It can be one of the following values: ‘published’, ‘draft’, ‘deprecated’.
== Return value ==
This function returns true if there is at least one feedback.