the_app_fonts_url

The SKT The App the app fonts url function.

Description

the_app_fonts_url(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function the_app_fonts_url() { 
  2. $fonts_url = ''; 
  3.  
  4. /** Translators: If there are characters in your language that are not 
  5. * supported by Lora, translate this to 'off'. Do not translate 
  6. * into your own language. 
  7. */ 
  8. $open_sans = _x( 'on', 'Open Sans font: on or off', 'the-app' ); 
  9.  
  10.  
  11. if ('off' !== $open_sans ) { 
  12. $font_families = array(); 
  13.  
  14. if ( 'off' !== $open_sans ) { 
  15. $font_families[] = 'Open Sans:700italic, 300, 400, 800, 800italic, 600'; 
  16.  
  17. $query_args = array( 
  18. 'family' => urlencode( implode( '|', $font_families ) ),  
  19. 'subset' => urlencode( 'latin, latin-ext' ),  
  20. ); 
  21.  
  22. $fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' ); 
  23.  
  24. return $fonts_url;