advantage_content_class

The Advantage advantage content class function.

Description

advantage_content_class(); 

Usage

  1. if ( !function_exists( 'advantage_content_class' ) ) { 
  2. require_once '/inc/lib-foundation.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = advantage_content_class(); 
  7.  

Defined (1)

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

/inc/lib-foundation.php  
  1. function advantage_content_class() { 
  2. global $advantage_options; 
  3. $class = "span" . $advantage_options['content'] . ' ' ; 
  4. if ( 2 == $advantage_options['sidebarpos'] && ( $advantage_options['sidebar1'] > 0 || $advantage_options['sidebar2'] > 0 ) ) { 
  5. if ( ( $advantage_options['content'] + $advantage_options['sidebar1'] + $advantage_options['sidebar2'] ) > 12 ) { 
  6. if ($advantage_options['sidebar1'] > $advantage_options['sidebar2']) 
  7. $push_col = $advantage_options['sidebar1'];  
  8. else 
  9. $push_col = $advantage_options['sidebar2']; 
  10. else { 
  11. $push_col = $advantage_options['sidebar1'] + $advantage_options['sidebar2'];  
  12. $class = $class . "push" . $push_col . ' '; 
  13. elseif ( 3 == $advantage_options['sidebarpos'] && $advantage_options['sidebar1'] > 0 ) { 
  14. $push_col = $advantage_options['sidebar1'];  
  15. $class = $class . "push" . $push_col . ' ';  
  16. return $class;