onetone_get_typography

The Onetone onetone get typography function.

Description

onetone_get_typography( (array) $option = array() ); 

Parameters (1)

0. $option — Optional. (array) => array()
The option.

Usage

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

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_get_typography( $option= array() ) { 
  2.  
  3. $return = ""; 
  4. if( $option && is_array($option) ) { 
  5. if($option['face']) { 
  6. $return .= 'font-family:'.$option['face'].';' ; 
  7.  
  8. if(isset($option['size'])) 
  9. $return .= 'font-size:'.$option['size'].';' ; 
  10. if($option['style']) 
  11. $return .= 'font-weight:'.$option['style'].';' ; 
  12. if($option['color']) 
  13. $return .= 'color:'.$option['color'].';' ; 
  14.  
  15. return $return ; 
  16.