layers_print_typekit

The Layers layers print typekit function.

Description

layers_print_typekit(); 

Usage

  1. if ( !function_exists( 'layers_print_typekit' ) ) { 
  2. require_once '/core/helpers/custom-fonts.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = layers_print_typekit(); 
  7.  

Defined (1)

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

/core/helpers/custom-fonts.php  
  1. function layers_print_typekit() { 
  2. if( '' == layers_get_theme_mod( 'typekit-id' ) ) return; ?> 
  3. <script type="text/javascript" src="//use.typekit.net/<?php echo esc_js( layers_get_theme_mod( 'typekit-id' ) ); ?>.js"></script> 
  4. <script type="text/javascript">try{Typekit.load();}catch(e) {}</script> 
  5. <?php }