skt_itconsultant_font_url

The SKT IT Consultant skt itconsultant font url function.

Description

skt_itconsultant_font_url(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function skt_itconsultant_font_url() { 
  2. $font_url = ''; 
  3.  
  4. /** Translators: If there are any character that are 
  5. * not supported by Roboto, translate this to off, do not 
  6. * translate into your own language. 
  7. */ 
  8. $ptsans = _x('on', 'PT Sans font:on or off', 'itconsultant'); 
  9.  
  10. if('off' !== $ptsans) { 
  11. $font_family = array(); 
  12.  
  13. if('off' !== $ptsans) { 
  14. $font_family[] = 'PT Sans:300, 400, 600, 700, 800, 900'; 
  15.  
  16. $query_args = array( 
  17. 'family' => urlencode(implode('|', $font_family)),  
  18. ); 
  19.  
  20. $font_url = add_query_arg($query_args, '//fonts.googleapis.com/css'); 
  21.  
  22. return $font_url;