evolve_post_class

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

Description

evolve_post_class( $xyz ); 

added by Denzel

Parameters (1)

0. $xyz
The xyz.

Usage

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

Defined (1)

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

/library/functions/basic-functions.php  
  1. function evolve_post_class($xyz) { 
  2.  
  3. $evolve_post_layout = evolve_get_option('evl_post_layout', 'two'); 
  4.  
  5. if ($evolve_post_layout == "two") { 
  6. echo ' col-md-6 odd' . ( $xyz % 2 ); 
  7. } else { 
  8. echo ' col-md-4 odd' . ( $xyz % 3 ); 
  9.  
  10. if (has_post_format(array( 
  11. 'aside',  
  12. 'audio',  
  13. 'chat',  
  14. 'gallery',  
  15. 'image',  
  16. 'link',  
  17. 'quote',  
  18. 'status',  
  19. 'video' 
  20. ), '')) { 
  21. echo ' formatted-post';