Changeset 4169
- Timestamp:
- 09/29/2016 06:37:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php
r2091 r4169 13 13 add_action( 'admin_init', array( $this, 'admin_init' ) ); 14 14 add_action( 'admin_menu', array( $this, 'admin_menu' ) ); 15 15 16 16 add_action( 'wp_head', array( $this, 'wp_head_typekit' ), 102 ); // after safecss_style 17 17 add_action( 'wp_head', array( $this, 'wp_head_google_web_fonts' ) ); … … 26 26 $this->options = (array) get_option( 'wc-fonts-options', array() ); 27 27 } 28 28 29 29 /** 30 30 * Provides the <head> output for Typekit settings. … … 33 33 if ( ! isset( $this->options['typekit-id'] ) || empty( $this->options['typekit-id'] ) ) 34 34 return; 35 35 36 36 printf( '<script type="text/javascript" src="https://use.typekit.com/%s.js"></script>' . "\n", $this->options['typekit-id'] ); 37 37 printf( '<script type="text/javascript">try{Typekit.load();}catch(e){}</script>' ); … … 94 94 $fonts = add_theme_page( 'Fonts', 'Fonts', 'edit_theme_options', 'wc-fonts-options', array( $this, 'render_admin_page' ) ); 95 95 } 96 96 97 97 /** 98 98 * Uses the Settings API to render the Appearance > Fonts page
Note: See TracChangeset
for help on using the changeset viewer.