onetone_get_summary

The Onetone onetone get summary function.

Description

onetone_get_summary(); 

Usage

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

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_get_summary() { 
  2.  
  3. $excerpt_or_content = onetone_option('archive_content', 'excerpt'); 
  4.  
  5. if( $excerpt_or_content == 'content' ) { 
  6. $output = get_the_content(); 
  7. else{ 
  8. $output = get_the_excerpt(); 
  9. return $output;