Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Google Font Function For SMOF
- ==============================================================================
- $of_options[] = array( "name" => "Select Google Font",
- "desc" => "Normal Select Box.",
- "id" => "google_font_select",
- "type" => "select",
- "options" => array("PT Sans","Open Sans","Droid Sans", "Caesar Dressing")
- );
- Google Font Theming
- ==============================================================================
- <?php global $data; ?>
- <?php if($data['google_font_select']): ?>
- <link href='http://fonts.googleapis.com/css?family=<?php echo $data['google_font_select']; ?>:300,400,400italic,500,600,700,700italic&subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese' rel='stylesheet' type='text/css' />
- <style type="text/css">
- body.custom-font-enabled {font-family: '<?php echo $data['google_font_select']; ?>', sans-serif !important}
- </style>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment