jetpack_the_content_customizer_class

Returns a class value, `output-the-content` by default.

Description

jetpack_the_content_customizer_class( (null) $new_class = null ); 

Used for themes with a Mixed Blog Display so we can tell which output is by default.

Parameters (1)

0. $new_class — Optional. (null) => null
The new class.

Usage

  1. if ( !function_exists( 'jetpack_the_content_customizer_class' ) ) { 
  2. require_once '/modules/theme-tools/content-options/blog-display.php'; 
  3.  
  4. // The new class. 
  5. $new_class = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_the_content_customizer_class($new_class); 
  9.  

Defined (1)

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

/modules/theme-tools/content-options/blog-display.php  
  1. function jetpack_the_content_customizer_class( $new_class = null ) { 
  2. static $class; 
  3. if ( isset( $new_class ) ) { 
  4. // Assign a new class and return. 
  5. $class = $new_class; 
  6. } else if ( isset( $class ) ) { 
  7. // Reset the class after getting value. 
  8. $prev_class = $class; 
  9. $class = null; 
  10. return $prev_class; 
  11. } else { 
  12. // Return default class value. 
  13. return 'output-the-content';