b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Developer Reference
  3. Website Skins/Themes
  4. Skin Tags / API
  5. Item Tags
  6. 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

feedbacks

Type of feedback to count. It can be one of the following: feedbacks, comments, trackbacks, pingbacks, webmentions.

status

#

Status of feedbacks to count. It can be a string for one status or an array for several. # - active front-office comment statuses, #moderation# - "require moderation" statuses.

link_before

''

Displayed before the link.

link_after

''

Displayed after the link.

link_text_zero

#

Link text if there are zero feedbacks, # for default. If link_text_zero => # then it displays nothing.

link_text_one

#

Link text if there is one feedback, # for default. If link_text_one => # then it displays default text.

link_text_more

#

Link text if there is more than one feedback, # for default. If link_text_more => # then it displays default text.

link_anchor_zero

#

Link anchor if there are zero feedbacks, # for default. If link_anchor_zero => # then anchor is #+type, e.g. #feedbacks. This parameter is used as suffix for url parameter.

link_anchor_one

#

Link anchor if there is one feedback, # for default. If link_anchor_one => # then anchor is #+type, e.g. #feedbacks. This parameter is used as suffix for url parameter.

link_anchor_more

#

Link anchor if there is more than one feedback, # for default. If link_anchor_more => # then anchor is #+type, e.g. #feedbacks. This parameter is used as suffix for url parameter.

link_title

#

Link alt text. If link_title => # then it displays default alt text.

link_class

''

Link CSS class

show_in_single_mode

true

Do we want to show this link even if we are viewing the current post in single view mode?

url

#

Special feedback URL. If url => # then it displays default URL.

stay_in_same_collection

auto

auto - follow ‘allow_crosspost_urls’ if we are cross-posted, true - always stay in the same collection if we are cross-posted, false - always go to permalink if we are cross-posted

Return value

This function returns false if feedbacks are disabled.

If feedbacks are enabled then this function returns true and displays content.

Tags: 7.1.1
Created by fatimahnasra • Last edit by yurabakhtin on 2020-08-05 09:04 • •

No feedback yet

On this page

  • Example
  • Quick Template
  • PHP Template
  • Parameters
  • Return value

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
    • Website Skins/Themes
      • Skin Development Primer
      • Loading additional resources into a skin
      • Where are the skin files?
      • CSS Guidelines
      • Targeted CSS Selectors
      • Introducing evoSkins
      • Modifying evoSkins
      • Creating evoSkins
      • Skin Tags / API
        • Template functions
        • Template Tags
        • Tag Plugins Call By Code
        • Tag User Subs Link
        • Tag User Register Link
        • Tag User Profile Link
        • Tag User Logout Link
        • Tag User Login Link
        • Tag Skin Get URL
        • Tag Skin Get Path
        • Tag Skin Container
        • Tag Powered By
        • Tag Is Logged In
        • Include Disp
        • Tag Display If Empty
        • Tag Comment Allowed Tags
        • Tag Blog Tagline
        • Tag Blog Name
        • Tag Blog Longdesc
        • Tag Blog Home Link
        • Tag Blog Footer
        • Tag Blog Contact Link
        • app_version();
        • Tag Request Title
        • Include Item Content
        • User::get_identity_link()
        • Item Tags
          • Anchor -
          • Author +
          • Categories +
          • Category Name+
          • Content Teaser +
          • Contents Last Updated +
          • Creation Time +
          • Custom Fields +
          • Edit Link +
          • Excerpt +
          • Extra Status -
          • Feedback Feed Link -
          • Feedback Link +
          • Files +
          • Flag +
          • Footer +
          • Has Feedback Raw -
          • History Link +
          • ID +
          • Image URL +
          • Images +
          • Intro-Tag
          • Lang Raw -
          • Locale Flag +
          • Locale Raw -
          • Main Category -
          • Mod Time -
          • More Link +
          • Msgform Link +
          • Msgform Link Assigned !
          • Page Links +
          • Permanent Link +
          • Permanent URL -
          • Priority -
          • Propose Change Link +
          • Publish Link !
          • Read Status +
          • Tag Item Can Comment
          • Tag Item Can Rate
          • Tag Item Can Recieve Pings
          • Tag Item Deadline Date
          • Tag Item Deadline Time
          • Tag Item Deprecate Link
          • Tag Item Feedback Moderation
          • Tag Item Language
          • Tag Item Locale Temp Switch
          • Tags +
          • Template Tag: Item Background Image CSS
          • Template Tag: Item Content Extension
          • Template Tag: Item Custom
          • Template Tag: Item Issue Date
          • Template Tag: Item Issue Time
          • Template Tag: Item Last Edit User
          • Template Tag: Item Last Touched
          • Template Tag: Item Mod Date
          • Template Tag: Item Refresh Contents Last Updated Link
          • Title +
          • Trackback RDF Raw -
          • Trackback URL Raw -
          • Type Raw -
          • Visibility Status +
          • Visibility Status Raw -
          • Wordcount Raw -
        • Category Tags
        • User Tags
        • Other Tags
      • Styling widgets
      • Skin Quality Control
      • Using HTML 5 tags
      • Using Custom Item Templates
      • Using bootstrap classes in footers
      • Using Grunt
      • Dev Menu
      • How to add a Google Font (WebFont) ?
      • Custom Fields in a Template
      • Site Skins
    • Email Skins/Themes
    • b2evolution Files
    • Website Integration
    • Plugins
    • Debugging
    • Technical Reference
    • Hacks
    • Credits
    • Development
    • How to... (Customize)
    • Scheduled Tasks Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Free blog engine

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque