evolved_display_rating

The Evolved evolved display rating function.

Description

evolved_display_rating( $content ); 

Parameters (1)

0. $content
The content.

Usage

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

Defined (1)

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

/functions.php  
  1. function evolved_display_rating($content) { 
  2.  
  3. global $post; 
  4.  
  5. if($post->post_type == 'evolved_game_reviews' && get_post_meta($post->ID, "Evolved_score", true)) { 
  6.  
  7. $content .= '<h2>'. __('The Verdict', 'evolved') .'</h2>'; 
  8. $content .= '<div class="rating">'; 
  9. $content .= '<div class="rating-box">'; 
  10. $content .= evolved_rating(get_post_meta($post->ID, "Evolved_score", true)); 
  11. $content .= '</div>'; 
  12.  
  13. if(get_post_meta($post->ID, "Evolved_the_good", true)) { 
  14. $content .= '<p><span class="label">'. __( 'The Good: ', 'evolved' ).'</span>'. get_post_meta($post->ID, "Evolved_the_good", true).'</p>'; 
  15. if(get_post_meta($post->ID, "Evolved_the_bad", true)) {  
  16. $content .= '<p><span class="label">'. __( 'The Bad: ', 'evolved' ).'</span>'. get_post_meta($post->ID, "Evolved_the_bad", true) .'</p>'; 
  17. $content .= '</div>'; 
  18.  
  19.  
  20. return $content;