Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-----------------------------------------------------------------
- # Load Cutom Font Face
- #-----------------------------------------------------------------
- if(isset($theme_options['custom_font']) && is_array($theme_options['custom_font'])) :
- foreach ($theme_options['custom_font'] as $key => $value) {
- $finalcss .= "\n"."@font-face {\n";
- if(!empty($value['title']))
- $finalcss .= "font-family: '".$value['title']."';"."\n";
- if(!empty($value['embedded-opentype'])) {
- $finalcss .= "\t" ."src: url('".$value['embedded-opentype']."');"."\n";
- $finalcss .= "\t" ."src: url('".$value['embedded-opentype']."?#iefix') format('embedded-opentype'),"."\n";
- }
- if(!empty($value['svg']))
- $finalcss .= "\t" . "url('".$value['svg']."') format('svg');"."\n";
- $finalcss .="font-weight: normal;\nfont-style: normal;"."\n";
- $finalcss .= "}"."\n\n";
- if(!empty($value['truetype']) && (!empty($value['title']))){
- $finalcss .= "/*if mozilla*/"."\n";
- $finalcss .= "@-moz-document url-prefix() {"."\n";
- $finalcss .= "\t"."@font-face {"."\n";
- $finalcss .= "\t\t"."font-family: '".$value['title']."';"."\n";
- $finalcss .= "\t\t"."src: url('".$value['truetype']."') format('truetype');"."\n";
- $finalcss .= "\t"."font-weight: normal;"."\n"."\t"."font-style: normal;"."\n";
- $finalcss .= "\t"."}"."\n";
- $finalcss .= "}"."\n\n";
- }
- }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement