evolve_post_class_2

Function to print out css class according to post format used in content-blog.php, index.php.

Description

evolve_post_class_2(); 

added by Denzel


Usage

  1. if ( !function_exists( 'evolve_post_class_2' ) ) { 
  2. require_once '/library/functions/basic-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = evolve_post_class_2(); 
  7.  

Defined (1)

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

/library/functions/basic-functions.php  
  1. function evolve_post_class_2() { 
  2. if (has_post_format(array( 
  3. 'aside',  
  4. 'audio',  
  5. 'chat',  
  6. 'gallery',  
  7. 'image',  
  8. 'link',  
  9. 'quote',  
  10. 'status',  
  11. 'video' 
  12. ), '') || is_sticky() 
  13. ) { 
  14. echo 'formatted-post formatted-single margin-40';