onetone_get_content_class

The Onetone onetone get content class function.

Description

onetone_get_content_class( (string) $sidebar = '' ); 

Parameters (1)

0. $sidebar — Optional. (string) => ''
The sidebar.

Usage

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

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_get_content_class( $sidebar = '' ) { 
  2.  
  3. if( $sidebar == 'left' ) 
  4. return 'left-aside'; 
  5. if( $sidebar == 'right' ) 
  6. return 'right-aside'; 
  7. if( $sidebar == 'both' ) 
  8. return 'both-aside'; 
  9. if( $sidebar == 'none' ) 
  10. return 'no-aside'; 
  11.  
  12. return 'no-aside'; 
  13.