use_gwi

The Google WebFonts Integrate use gwi function.

Description

use_gwi(); 

Usage

  1. if ( !function_exists( 'use_gwi' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-webfonts-integrate/google-webfonts-integrate.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = use_gwi(); 
  7.  

Defined (1)

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

/google-webfonts-integrate.php  
  1. function use_gwi() { 
  2. $font1 = get_option('gwi_font'); 
  3. $font2 = str_replace("+", " ", $font1); 
  4. $font3 = get_option('gwi_sl1'); 
  5. $font4 = str_replace("+", " ", $font3); 
  6. $subss = get_option('gwi_sub'); 
  7. $script1 ="latin, "; 
  8. $where1 = get_option('use_style_where'); 
  9. $where2 = get_option('use_style_where2'); 
  10.  
  11. echo "<link href='http://fonts.googleapis.com/css?family=$font1|$font3&subset=$script1$subss&v2' rel='stylesheet' type='text/css'>" . "\n"; 
  12. echo "<style>$where1 {font-family:$font2}</style>" . "\n"; 
  13. echo "<style>$where2 {font-family:$font4}</style>" . "\n"; 
  14.  
  15.