fbcomments_schema

The Facebook Comments fbcomments schema function.

Description

fbcomments_schema( $attr ); 

Parameters (1)

0. $attr
The attr.

Usage

  1. if ( !function_exists( 'fbcomments_schema' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'facebook-comments/class-frontend.php'; 
  3.  
  4. // The attr. 
  5. $attr = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = fbcomments_schema($attr); 
  9.  

Defined (1)

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

/class-frontend.php  
  1. function fbcomments_schema($attr) { 
  2. $options = get_option('fbcomments'); 
  3. if (!isset($options['fbns'])) {$options['fbns'] = "";} 
  4. if (!isset($options['opengraph'])) {$options['opengraph'] = "";} 
  5. if ($options['opengraph'] == 'on') {$attr .= "\n xmlns:og=\"http://ogp.me/ns#\"";} 
  6. if ($options['fbns'] == 'on') {$attr .= "\n xmlns:fb=\"http://ogp.me/ns/fb#\"";} 
  7. return $attr;