diff --git a/wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php b/wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php
index a7df9ce..58aca1d 100644
a
|
b
|
class WordCamp_Fonts_Plugin { |
12 | 12 | add_action( 'init', array( $this, 'init' ) ); |
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' ) ); |
18 | 18 | add_action( 'wp_head', array( $this, 'wp_head_font_awesome' ) ); |
… |
… |
class WordCamp_Fonts_Plugin { |
25 | 25 | function init() { |
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. |
31 | 31 | */ |
32 | 32 | function wp_head_typekit() { |
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>' ); |
38 | 38 | } |
… |
… |
class WordCamp_Fonts_Plugin { |
93 | 93 | function admin_menu() { |
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 |
99 | 99 | */ |
… |
… |
class WordCamp_Fonts_Plugin { |
101 | 101 | ?> |
102 | 102 | <div class="wrap"> |
103 | 103 | <?php screen_icon(); ?> |
104 | | <h1>Fonts</h1> |
| 104 | <h1>WordCamp Fonts</h1> |
105 | 105 | <?php settings_errors(); ?> |
106 | 106 | <form method="post" action="options.php" enctype="multipart/form-data"> |
107 | 107 | <?php |
… |
… |
class WordCamp_Fonts_Plugin { |
225 | 225 | } |
226 | 226 | |
227 | 227 | // Go! |
228 | | new WordCamp_Fonts_Plugin; |
229 | | No newline at end of file |
| 228 | new WordCamp_Fonts_Plugin; |