advantage_meta_comment

The Advantage advantage meta comment function.

Description

advantage_meta_comment( (int) $meta_icon = 0 ); 

Parameters (1)

0. $meta_icon — Optional. (int)
The meta icon.

Usage

  1. if ( !function_exists( 'advantage_meta_comment' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The meta icon. 
  5. $meta_icon = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = advantage_meta_comment($meta_icon); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function advantage_meta_comment( $meta_icon = 0 ) { 
  2. if ( comments_open() && ! post_password_required() ) { 
  3. $comment_icon = '<i class="icon-comment meta-icon"></i>'; 
  4. printf( '<span class="meta-comment">' ); 
  5. comments_popup_link( $comment_icon . __( 'Comment', 'advantage' ), $comment_icon . __( '1 Comment', 'advantage' ) , $comment_icon . __( '% Comments', 'advantage' ) );  
  6. printf( '</span>' );