- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Item Tags
- Template Tag: Item Feedback Link
Template Tag: Item Feedback Link
This template tag displays a link to feedback to an Item. Feedback can include comments, trackbacks, pingbacks, and webmentions.
The tag can display the number of feedbacks for an Item.
The tag can show all feedbacks or only a specific type like just comments, or just trackbacks, etc.
Example
Quick Template
[Item:feedback_link|type=comments|status=#]
PHP Template
$Item->feedback_link( array(
'type' => 'feedbacks',
'status' => 'published',
'link_before' => '',
'link_after' => '',
'link_text_zero' => '#',
'link_text_one' => '#',
'link_text_more' => '#',
'link_anchor_zero' => '#',
'link_anchor_one' => '#',
'link_anchor_more' => '#',
'link_title' => '#',
'url' => '#',
) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
|
Type of feedback to count. It can be one of the following: |
|
|
Status of feedbacks to count. It can be a string for one status or an array for several. |
|
|
Displayed before the link. |
|
|
Displayed after the link. |
|
|
Link text if there are zero feedbacks, |
|
|
Link text if there is one feedback, |
|
|
Link text if there is more than one feedback, |
|
|
Link anchor if there are zero feedbacks, |
|
|
Link anchor if there is one feedback, |
|
|
Link anchor if there is more than one feedback, |
|
|
Link alt text. If |
|
|
Link CSS class |
|
|
Do we want to show this link even if we are viewing the current post in single view mode? |
|
|
Special feedback URL. If |
|
|
|
Return value
This function returns false if feedbacks are disabled.
If feedbacks are enabled then this function returns true and displays content.