advantage_body_classes

The Advantage advantage body classes function.

Description

advantage_body_classes( $classes ); 

Parameters (1)

0. $classes
The classes.

Usage

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

Defined (1)

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

/functions.php  
  1. function advantage_body_classes( $classes ) { 
  2. global $advantage_options, $advantage_layout; 
  3.  
  4. if ( ! is_single() ) 
  5. $classes[] = 'multi'; 
  6. elseif ( 2 == $advantage_layout ) 
  7. $classes[] = 'fullscreen'; 
  8.  
  9. if ( is_page_template( 'pages/featured.php' ) 
  10. || ( is_home() && 1 == $advantage_options['homepage'] ) ) 
  11. $classes[] = 'featured-home'; 
  12.  
  13. return $classes;