Sindbad~EG File Manager

Current Path : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt/functions/
Upload File :
Current File : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt/functions/fonts.php

<?php
/*
 * Security 	: blocking direct access
 * Source		: http://codex.wordpress.org/Theme_Development#Template_Files
*/
defined('ABSPATH') or die("Access Restricted");

function fonts_seclector_settings() {
	// Create array of api settings options
	$seclector_list = array(
		/*
		 * Body
		 *
		*/
		"body"										=> "typo-body",
		".menu-section-list a" 						=> "typo-mobile-menu",
		/*
		 * Header
		 *
		*/
		".today" 									=> "typo-header-today",
		".menu-top a,.menu-top-2 a" 				=> "typo-header-topmenu",
		"#header .search input.text" 				=> "typo-header-input",
		".menu-category a,.menu-category2 a" 		=> "typo-header-menu",
		".mega-category a,.mega-category a" 		=> "typo-header-mega",
		".sf-mega .mega-posts li.medium .title a" 	=> "typo-header-mega-posts",
		".nav-news .title" 							=> "typo-header-newsbar-title",
		".nav-news .content a" 						=> "typo-header-newsbar-contant",
		".nav-news .subscribe .text" 				=> "typo-header-newsbar-input",
		".nav-news .subscribe .button" 				=> "typo-header-newsbar-btn",
		".urgent-title" 							=> "typo-header-urgent-title",
		".urgent-content a" 						=> "typo-header-urgent-content",
		
		".header-2-elements .logo .logo-text" 		=> "typo-header-blog-logo",
		".menu-blog a,.mega-blog a" 				=> "typo-header-blog-menu",
		
		/*
		 * Silder
		 *
		*/
		".slider1-content .third h2, .slider1-content .first h2"			=> "typo-slider-1a",
		".slider1-content .fourth h3, .slider1-content .second h3"			=> "typo-slider-1b",
		".slider1-content .slide-date,.slider1-content .slide-meta"			=> "typo-slider-1c",
		".slider2-content h2"												=> "typo-slider-2a",
		".slider2-content .slide-date,.slider2-content .slide-meta"			=> "typo-slider-2b",
		".slider3-content h2"												=> "typo-slider-3a",
		".slider3-content .slide-date,.slider3-content .slide-meta"			=> "typo-slider-3b",
		".slider4 h2"														=> "typo-slider-4a",
		".slider4 h3"														=> "typo-slider-4b",
		".slider4 .slide-date,.slider4-box .slide-meta"						=> "typo-slider-4c",
		".slider4 .slide-desc"												=> "typo-slider-4d",
		".slider6-content h2"												=> "typo-slider-6a",
		".slider6-nav li div"												=> "typo-slider-6b",
		/*
		 * Blog
		 *
		*/
		".recent .ps1 h2" 							=> "typo-blog-1a",
		".recent .ps1 p" 							=> "typo-blog-1b",
		".recent .ps1 .category" 					=> "typo-blog-1b",
		".recent .ps2 h2" 							=> "typo-blog-2a",
		".recent .ps2 p" 							=> "typo-blog-2b",
		".recent .ps2 .category" 					=> "typo-blog-2c",
		".recent .ps3 h2" 							=> "typo-blog-3a",
		".recent .ps3 p" 							=> "typo-blog-3b",
		".recent .ps3 .category" 					=> "typo-blog-3c",
		/*
		 * Modules
		 *
		*/
		".module-head-style1 h2,.module-head-style2 h2"	=> "type-module-name",
		".module-1a h2"								=> "typo-module-1a1",
		".module-1a .meta"							=> "typo-module-1a2",
		".module-1a p"								=> "typo-module-1a3",
		".module-1b h2"								=> "typo-module-1b1",
		".module-1b .meta"							=> "typo-module-1b2",
		".module-2a h2"								=> "typo-module-2a1",
		".module-2a .meta"							=> "typo-module-2a2",
		".module-2a p"								=> "typo-module-2a3",
		".module-2b h2"								=> "typo-module-2b1",
		".module-2b .meta"							=> "typo-module-2b2",
		".module-3a h2"								=> "typo-module-3a1",
		".module-3a .meta"							=> "typo-module-3a2",
		".module-3b h2"								=> "typo-module-3b",
		".module-4 h2"								=> "typo-module-4a1",
		".module-4 .date"							=> "typo-module-4a2",
		".module-5 h2"								=> "typo-module-5a1",
		".module-5 .meta"							=> "typo-module-5a2",
		".module-6 h2"								=> "typo-module-6a1",
		".module-6 .author-name"					=> "typo-module-6a2",
		".module-7 h2"								=> "typo-module-7a1",
		".module-7 .date,.module-7 .mduration"		=> "typo-module-7a2",
		".module-8a h2"								=> "typo-module-8a1",
		".module-8a .meta"							=> "typo-module-8a2",
		".module-8a p"								=> "typo-module-8a3",
		".module-8b h2,.module-8c h2"				=> "typo-module-8b1",
		".module-8b .meta,.module-8c .meta" 		=> "typo-module-8b2",
		".module-9 h2"								=> "typo-module-9a1",
		".module-9 .meta"							=> "typo-module-9a2",
		".module-10 h2"								=> "typo-module-10a1",
		".module-10 .author-name"					=> "typo-module-10a2",
		".module-11a h2"							=> "typo-module-11a1",
		".module-11a .meta"							=> "typo-module-11a2",
		".module-11a p"								=> "typo-module-11a3",
		".module-11b h2"							=> "typo-module-11b1",
		".module-11b .date"							=> "typo-module-11b2",
		".module-12a h2"							=> "typo-module-12a1",
		".module-12a .meta"							=> "typo-module-12a2",
		".module-12a p"								=> "typo-module-12a3",
		".module-12b h2"							=> "typo-module-12b1",
		".module-12b .mduration"					=> "typo-module-12b2",
		".module-13 h2"								=> "typo-module-13a1",
		".module-13 .meta"							=> "typo-module-13a2",
		".module-14 h2"								=> "typo-module-14a1",
		".module-14 .meta"							=> "typo-module-14a2",
		".module-15 h2"								=> "typo-module-15a1",
		".module-15 .date"							=> "typo-module-15a2",
		".module-16 h2"								=> "typo-module-16a1",
		".module-16 .date,.module-16 .mduration"	=> "typo-module-16a2",
		".module-17a h2"							=> "typo-module-17a1",
		".module-17a .date"							=> "typo-module-17a2",
		".module-17b h2"							=> "typo-module-17a3",
		".module-18a h2"							=> "typo-module-18a1",
		".module-18a .date"							=> "typo-module-18a2",
		".module-18b h2"							=> "typo-module-18a3",
		/*
		 * Widgets
		 *
		*/
		".widget-head-style1 h2,.widget-head-style2 h2,.widget-head-style3 h2,.widget-head-style4 h2,.tab-head"	=> "typo-widgets-title",
		".widget-body .first h3"					=> "typo-wss1-h4",
		".widget-body .second h3"					=> "typo-wss2-h4",
		".widget-body .second h4"					=> "typo-wss2-h5",
		".widget-body .third h3"					=> "typo-wss3-h4",
		".widget-body .fourth h3"					=> "typo-wss4-h4",
		".widget-body .fourth .author"				=> "typo-wss4-author",
		".widget-body .fifth h3"					=> "typo-wss5-h4",
		".widget-body .sixth h3"					=> "typo-wss6-h4",
		".gallery-title"							=> "typo-wjg1",
		".gallery-2-title"							=> "typo-wjg2",
		".widget-body .picture h3"					=> "typo-wjp",
		".widget-body .rhours h3"					=> "typo-wj24-title",
		".widget-wrapper ul.tab_nav li a"			=> "typo-wjt-tab",
		".widget-body li.tab-post .title"			=> "typo-wjt-titles",
		".custom-badge .content .title"				=> "typo-wab",
		".widget-body p,.widget-content p"			=> "typo-wasmt",
		".widget-body .subscribe .text"				=> "typo-wasmf",
		".widget-body .subscribe .button span"		=> "typo-wasmb",
		".prayers p"								=> "typo-wapt",
		".prayers .single .name"					=> "typo-wapn",
		".prayers .single .time"					=> "typo-waptime",
		/*
		 * Post content
		 *
		*/
		".content-typography h1.title"				=> "typo-ptf",
		".content-typography h2.title"				=> "typo-pts",
		".el-content p,.el-content div" 			=> "typo-content",
		".el-content h1"							=> "typo-ph1",
		".el-content h2"							=> "typo-ph2",
		".el-content h3"							=> "typo-ph3",
		".el-content h4"							=> "typo-ph4",
		".el-content h5"							=> "typo-ph5",
		".el-content h6"							=> "typo-ph6",
		/*
		 * Post elements
		 *
		*/
		".breadcrumb" 								=> "typo-breadcrumb",
		".meta,.meta-2" 							=> "typo-meta",
		".el-content blockquote" 					=> "typo-blockquote",
		".wp-caption figcaption.wp-caption-text" 	=> "typo-caption",
		".related-title" 							=> "typo-readmore-head",
		".related-inside li a" 						=> "typo-readmore-titles",
		".post-source span, .post-source strong" 	=> "typo-post-source",
		".share-right ul.list-inline li span.text" 	=> "typo-share",
		".tags span" 								=> "typo-tags-name",
		".tags a" 									=> "typo-tags-list",
		".tags a:before" 							=> "typo-tags-before",
		".post-shortlink" 							=> "typo-shortlink",
		".post-shortlink input" 					=> "typo-shortlink-input",
		".author-bio .title" 						=> "typo-author-bio-title",
		".author-bio p" 							=> "typo-author-bio-text",
		".post-nav li span" 						=> "typo-postnav-text",
		".post-nav li" 								=> "typo-postnav-title",
		".alert" 									=> "typo-alert",
		"#jp-relatedposts h3.jp-relatedposts-headline, .related h2" => "typo-related-h2",
		"h4.jp-relatedposts-post-title, #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post .jp-relatedposts-post-title a, .related li h3" => "typo-related-h3",
		"h2.comment-reply-title" 					=> "typo-comment-reply-title",
		".comment-form p" 							=> "typo-comment-form-p",
		".comment-form textarea" 					=> "typo-comment-form-textarea",
		".comment-form input" 						=> "typo-comment-form-input",
		".comments-rules strong" 					=> "typo-comment-form-rules-title",
		".comments-rules p" 						=> "typo-comment-form-rules-text",
		".form-submit input.btn" 					=> "typo-submit-btn",
		".comment-list h2" 							=> "typo-commentlist-h2",
		".comment-meta h3.comment-author" 			=> "typo-comment-author",
		".comment-meta h3 span"	 					=> "typo-comment-ago",
		".comment-content p" 						=> "typo-comment-text",
		".comment-metadata" 						=> "typo-comment-metadata",
		".module-more-comments"						=> "typo-comment-loadmore",
		".el-content ul,.el-content ol" 			=> "typo-content-list",
		/*
		 * Archives
		 *
		*/
		".archive-typography h1" 					=> "typo-archive-title",
		".content-category .first .date" 			=> "typo-category-s1f-date",
		".content-category .first h2" 				=> "typo-category-s1f-h2",
		".content-category .first p" 				=> "typo-category-s1f-p",
		".content-category .second .date" 			=> "typo-category-s1s-date",
		".content-category .second h3" 				=> "typo-category-s1s-h3",
		".content-category .second p" 				=> "typo-category-s1s-p",
		".content-category .third .date" 			=> "typo-category-s1t-date",
		".content-category .third h4" 				=> "typo-category-s1t-h4",
		".content-category .fourth .date" 			=> "typo-category-s2-date",
		".content-category .fourth h2" 				=> "typo-category-s2-h2",
		".content-category .fourth p" 				=> "typo-category-s2-p",
		".content-category .fifth h2" 				=> "typo-category-2columns",
		".content-category .sixth h2" 				=> "typo-category-3columns",
		".content-category .seventh h2" 			=> "typo-category-articles-h2",
		".content-category .seventh .author" 		=> "typo-category-articles-author-name",
		".content-category .tag h2" 				=> "typo-archive-tag-author-h2",
		".content-category .tag .date" 				=> "typo-archive-tag-author-date",
		".content-category .search h2" 				=> "typo-search-h2",
		".content-category .search span" 			=> "typo-search-span",
		".content-category .search p" 				=> "typo-search-p",
		".pagination span" 							=> "typo-pagination-text",
		".pagination a" 							=> "typo-pagination-link",
		".post-load" 								=> "typo-load-more",
		/*
		 * Footer
		 *
		*/
		".menu-nav.footer-style1 a" 				=> "typo-footer-navigation-simple",
		".footer-col .hh5" 							=> "typo-footer-heading",
		".footer-col ul li a" 						=> "typo-footer-posts-list",
		".footer-col li.posts .title a" 			=> "typo-footer-posts-title",
		".footer-col .ul-columns li a" 				=> "typo-footer-pages-catgories-list",
		".footer-col p" 							=> "typo-footer-subscribe-text",
		".footer-col .subscribe .text" 				=> "typo-footer-subscribe-input",
		".footer-col .subscribe .button span" 		=> "typo-footer-subscribe-button",
		".copyright,.copyleft" 						=> "typo-footer-copyright",
	);
	return $seclector_list;
}
/**
 * Google Font White List
 */
function mwp_google_fonts_whitelist($font) {
	// https://www.xcartmods.co.uk/google-fonts-list.php
	$whitelist = array(' Markazi Text',' Tajawal', ' Droid Arabic Kufi',' Droid Arabic Naskh',' Thabit',' ABeeZee',' Abel',' Abhaya Libre',' Abril Fatface',' Aclonica',' Acme',' Actor',' Adamina',' Advent Pro',' Aguafina Script',' Akronim',' Aladin',' Aldrich',' Alef',' Alegreya',' Alegreya SC',' Alegreya Sans',' Alegreya Sans SC',' Alex Brush',' Alfa Slab One',' Alice',' Alike',' Alike Angular',' Allan',' Allerta',' Allerta Stencil',' Allura',' Almendra',' Almendra Display',' Almendra SC',' Amarante',' Amaranth',' Amatic SC',' Amatica SC',' Amethysta',' Amiko',' Amiri',' Amita',' Anaheim',' Andada',' Andika',' Angkor',' Annie Use Your Telescope',' Anonymous Pro',' Antic',' Antic Didone',' Antic Slab',' Anton',' Arapey',' Arbutus',' Arbutus Slab',' Architects Daughter',' Archivo',' Archivo Black',' Archivo Narrow',' Aref Ruqaa',' Arima Madurai',' Arimo',' Arizonia',' Armata',' Arsenal',' Artifika',' Arvo',' Arya',' Asap',' Asap Condensed',' Asar',' Asset',' Assistant',' Astloch',' Asul',' Athiti',' Atma',' Atomic Age',' Aubrey',' Audiowide',' Autour One',' Average',' Average Sans',' Averia Gruesa Libre',' Averia Libre',' Averia Sans Libre',' Averia Serif Libre',' Bad Script',' Bahiana',' Baloo',' Baloo Bhai',' Baloo Bhaijaan',' Baloo Bhaina',' Baloo Chettan',' Baloo Da',' Baloo Paaji',' Baloo Tamma',' Baloo Tammudu',' Baloo Thambi',' Balthazar',' Bangers',' Barrio',' Basic',' Battambang',' Baumans',' Bayon',' Belgrano',' Bellefair',' Belleza',' BenchNine',' Bentham',' Berkshire Swash',' Bevan',' Bigelow Rules',' Bigshot One',' Bilbo',' Bilbo Swash Caps',' BioRhyme',' BioRhyme Expanded',' Biryani',' Bitter',' Black Ops One',' Bokor',' Bonbon',' Boogaloo',' Bowlby One',' Bowlby One SC',' Brawler',' Bree Serif',' Bubblegum Sans',' Bubbler One',' Buda',' Buenard',' Bungee',' Bungee Hairline',' Bungee Inline',' Bungee Outline',' Bungee Shade',' Butcherman',' Butterfly Kids',' Cabin',' Cabin Condensed',' Cabin Sketch',' Caesar Dressing',' Cagliostro',' Cairo',' Calligraffitti',' Cambay',' Cambo',' Candal',' Cantarell',' Cantata One',' Cantora One',' Capriola',' Cardo',' Carme',' Carrois Gothic',' Carrois Gothic SC',' Carter One',' Catamaran',' Caudex',' Caveat',' Caveat Brush',' Cedarville Cursive',' Ceviche One',' Changa',' Changa One',' Chango',' Chathura',' Chau Philomene One',' Chela One',' Chelsea Market',' Chenla',' Cherry Cream Soda',' Cherry Swash',' Chewy',' Chicle',' Chivo',' Chonburi',' Cinzel',' Cinzel Decorative',' Clicker Script',' Coda',' Coda Caption',' Codystar',' Coiny',' Combo',' Comfortaa',' Coming Soon',' Concert One',' Condiment',' Content',' Contrail One',' Convergence',' Cookie',' Copse',' Corben',' Cormorant',' Cormorant Garamond',' Cormorant Infant',' Cormorant SC',' Cormorant Unicase',' Cormorant Upright',' Courgette',' Cousine',' Coustard',' Covered By Your Grace',' Crafty Girls',' Creepster',' Crete Round',' Crimson Text',' Croissant One',' Crushed',' Cuprum',' Cutive',' Cutive Mono',' Damion',' Dancing Script',' Dangrek',' David Libre',' Dawning of a New Day',' Days One',' Dekko',' Delius',' Delius Swash Caps',' Delius Unicase',' Della Respira',' Denk One',' Devonshire',' Dhurjati',' Didact Gothic',' Diplomata',' Diplomata SC',' Domine',' Donegal One',' Doppio One',' Dorsa',' Dosis',' Dr Sugiyama',' Droid Sans',' Droid Sans Mono',' Droid Serif',' Duru Sans',' Dynalight',' EB Garamond',' Eagle Lake',' Eater',' Economica',' Eczar',' El Messiri',' Electrolize',' Elsie',' Elsie Swash Caps',' Emblema One',' Emilys Candy',' Encode Sans',' Encode Sans Condensed',' Encode Sans Expanded',' Encode Sans Semi Condensed',' Encode Sans Semi Expanded',' Engagement',' Englebert',' Enriqueta',' Erica One',' Esteban',' Euphoria Script',' Ewert',' Exo',' Exo 2',' Expletus Sans',' Fanwood Text',' Farsan',' Fascinate',' Fascinate Inline',' Faster One',' Fasthand',' Fauna One',' Faustina',' Federant',' Federo',' Felipa',' Fenix',' Finger Paint',' Fira Mono',' Fira Sans',' Fira Sans Condensed',' Fira Sans Extra Condensed',' Fjalla One',' Fjord One',' Flamenco',' Flavors',' Fondamento',' Fontdiner Swanky',' Forum',' Francois One',' Frank Ruhl Libre',' Freckle Face',' Fredericka the Great',' Fredoka One',' Freehand',' Fresca',' Frijole',' Fruktur',' Fugaz One',' GFS Didot',' GFS Neohellenic',' Gabriela',' Gafata',' Galada',' Galdeano',' Galindo',' Gentium Basic',' Gentium Book Basic',' Geo',' Geostar',' Geostar Fill',' Germania One',' Gidugu',' Gilda Display',' Give You Glory',' Glass Antiqua',' Glegoo',' Gloria Hallelujah',' Goblin One',' Gochi Hand',' Gorditas',' Goudy Bookletter 1911',' Graduate',' Grand Hotel',' Gravitas One',' Great Vibes',' Griffy',' Gruppo',' Gudea',' Gurajada',' Habibi',' Halant',' Hammersmith One',' Hanalei',' Hanalei Fill',' Handlee',' Hanuman',' Happy Monkey',' Harmattan',' Headland One',' Heebo',' Henny Penny',' Herr Von Muellerhoff',' Hind',' Hind Guntur',' Hind Madurai',' Hind Siliguri',' Hind Vadodara',' Holtwood One SC',' Homemade Apple',' Homenaje',' IM Fell DW Pica',' IM Fell DW Pica SC',' IM Fell Double Pica',' IM Fell Double Pica SC',' IM Fell English',' IM Fell English SC',' IM Fell French Canon',' IM Fell French Canon SC',' IM Fell Great Primer',' IM Fell Great Primer SC',' Iceberg',' Iceland',' Imprima',' Inconsolata',' Inder',' Indie Flower',' Inika',' Inknut Antiqua',' Irish Grover',' Istok Web',' Italiana',' Italianno',' Itim',' Jacques Francois',' Jacques Francois Shadow',' Jaldi',' Jim Nightshade',' Jockey One',' Jolly Lodger',' Jomhuria',' Josefin Sans',' Josefin Slab',' Joti One',' Judson',' Julee',' Julius Sans One',' Junge',' Jura',' Just Another Hand',' Just Me Again Down Here',' Kadwa',' Kalam',' Kameron',' Kanit',' Kantumruy',' Karla',' Karma',' Katibeh',' Kaushan Script',' Kavivanar',' Kavoon',' Kdam Thmor',' Keania One',' Kelly Slab',' Kenia',' Khand',' Khmer',' Khula',' Kite One',' Knewave',' Kotta One',' Koulen',' Kranky',' Kreon',' Kristi',' Krona One',' Kumar One',' Kumar One Outline',' Kurale',' La Belle Aurore',' Laila',' Lakki Reddy',' Lalezar',' Lancelot',' Lateef',' Lato',' League Script',' Leckerli One',' Ledger',' Lekton',' Lemon',' Lemonada',' Libre Barcode 128',' Libre Barcode 128 Text',' Libre Barcode 39',' Libre Barcode 39 Extended',' Libre Barcode 39 Extended Text',' Libre Barcode 39 Text',' Libre Baskerville',' Libre Franklin',' Life Savers',' Lilita One',' Lily Script One',' Limelight',' Linden Hill',' Lobster',' Lobster Two',' Londrina Outline',' Londrina Shadow',' Londrina Sketch',' Londrina Solid',' Lora',' Love Ya Like A Sister',' Loved by the King',' Lovers Quarrel',' Luckiest Guy',' Lusitana',' Lustria',' Macondo',' Macondo Swash Caps',' Mada',' Magra',' Maiden Orange',' Maitree',' Mako',' Mallanna',' Mandali',' Manuale',' Marcellus',' Marcellus SC',' Marck Script',' Margarine',' Marko One',' Marmelad',' Martel',' Martel Sans',' Marvel',' Mate',' Mate SC',' Maven Pro',' McLaren',' Meddon',' MedievalSharp',' Medula One',' Meera Inimai',' Megrim',' Meie Script',' Merienda',' Merienda One',' Merriweather',' Merriweather Sans',' Metal',' Metal Mania',' Metamorphous',' Metrophobic',' Michroma',' Milonga',' Miltonian',' Miltonian Tattoo',' Miniver',' Miriam Libre',' Mirza',' Miss Fajardose',' Mitr',' Modak',' Modern Antiqua',' Mogra',' Molengo',' Molle',' Monda',' Monofett',' Monoton',' Monsieur La Doulaise',' Montaga',' Montez',' Montserrat',' Montserrat Alternates',' Montserrat Subrayada',' Moul',' Moulpali',' Mountains of Christmas',' Mouse Memoirs',' Mr Bedfort',' Mr Dafoe',' Mr De Haviland',' Mrs Saint Delafield',' Mrs Sheppards',' Mukta',' Mukta Mahee',' Mukta Malar',' Mukta Vaani',' Muli',' Mystery Quest',' NTR',' Neucha',' Neuton',' New Rocker',' News Cycle',' Niconne',' Nixie One',' Nobile',' Nokora',' Norican',' Nosifer',' Nothing You Could Do',' Noticia Text',' Noto Sans',' Noto Serif',' Nova Cut',' Nova Flat',' Nova Mono',' Nova Oval',' Nova Round',' Nova Script',' Nova Slim',' Nova Square',' Numans',' Nunito',' Nunito Sans',' Odor Mean Chey',' Offside',' Old Standard TT',' Oldenburg',' Oleo Script',' Oleo Script Swash Caps',' Open Sans',' Open Sans Condensed',' Oranienbaum',' Orbitron',' Oregano',' Orienta',' Original Surfer',' Oswald',' Over the Rainbow',' Overlock',' Overlock SC',' Overpass',' Overpass Mono',' Ovo',' Oxygen',' Oxygen Mono',' PT Mono',' PT Sans',' PT Sans Caption',' PT Sans Narrow',' PT Serif',' PT Serif Caption',' Pacifico',' Padauk',' Palanquin',' Palanquin Dark',' Pangolin',' Paprika',' Parisienne',' Passero One',' Passion One',' Pathway Gothic One',' Patrick Hand',' Patrick Hand SC',' Pattaya',' Patua One',' Pavanam',' Paytone One',' Peddana',' Peralta',' Permanent Marker',' Petit Formal Script',' Petrona',' Philosopher',' Piedra',' Pinyon Script',' Pirata One',' Plaster',' Play',' Playball',' Playfair Display',' Playfair Display SC',' Podkova',' Poiret One',' Poller One',' Poly',' Pompiere',' Pontano Sans',' Poppins',' Port Lligat Sans',' Port Lligat Slab',' Pragati Narrow',' Prata',' Preahvihear',' Press Start 2P',' Pridi',' Princess Sofia',' Prociono',' Prompt',' Prosto One',' Proza Libre',' Puritan',' Purple Purse',' Quando',' Quantico',' Quattrocento',' Quattrocento Sans',' Questrial',' Quicksand',' Quintessential',' Qwigley',' Racing Sans One',' Radley',' Rajdhani',' Rakkas',' Raleway',' Raleway Dots',' Ramabhadra',' Ramaraja',' Rambla',' Rammetto One',' Ranchers',' Rancho',' Ranga',' Rasa',' Rationale',' Ravi Prakash',' Redressed',' Reem Kufi',' Reenie Beanie',' Revalia',' Rhodium Libre',' Ribeye',' Ribeye Marrow',' Righteous',' Risque',' Roboto',' Roboto Condensed',' Roboto Mono',' Roboto Slab',' Rochester',' Rock Salt',' Rokkitt',' Romanesco',' Ropa Sans',' Rosario',' Rosarivo',' Rouge Script',' Rozha One',' Rubik',' Rubik Mono One',' Ruda',' Rufina',' Ruge Boogie',' Ruluko',' Rum Raisin',' Ruslan Display',' Russo One',' Ruthie',' Rye',' Sacramento',' Sahitya',' Sail',' Saira',' Saira Condensed',' Saira Extra Condensed',' Saira Semi Condensed',' Salsa',' Sanchez',' Sancreek',' Sansita',' Sarala',' Sarina',' Sarpanch',' Satisfy',' Scada',' Scheherazade',' Schoolbell',' Scope One',' Seaweed Script',' Secular One',' Sedgwick Ave',' Sedgwick Ave Display',' Sevillana',' Seymour One',' Shadows Into Light',' Shadows Into Light Two',' Shanti',' Share',' Share Tech',' Share Tech Mono',' Shojumaru',' Short Stack',' Shrikhand',' Siemreap',' Sigmar One',' Signika',' Signika Negative',' Simonetta',' Sintony',' Sirin Stencil',' Six Caps',' Skranji',' Slabo 13px',' Slabo 27px',' Slackey',' Smokum',' Smythe',' Sniglet',' Snippet',' Snowburst One',' Sofadi One',' Sofia',' Sonsie One',' Sorts Mill Goudy',' Source Code Pro',' Source Sans Pro',' Source Serif Pro',' Space Mono',' Special Elite',' Spectral',' Spicy Rice',' Spinnaker',' Spirax',' Squada One',' Sree Krushnadevaraya',' Sriracha',' Stalemate',' Stalinist One',' Stardos Stencil',' Stint Ultra Condensed',' Stint Ultra Expanded',' Stoke',' Strait',' Sue Ellen Francisco',' Suez One',' Sumana',' Sunshiney',' Supermercado One',' Sura',' Suranna',' Suravaram',' Suwannaphum',' Swanky and Moo Moo',' Syncopate',' Tangerine',' Taprom',' Tauri',' Taviraj',' Teko',' Telex',' Tenali Ramakrishna',' Tenor Sans',' Text Me One',' The Girl Next Door',' Tienne',' Tillana',' Timmana',' Tinos',' Titan One',' Titillium Web',' Trade Winds',' Trirong',' Trocchi',' Trochut',' Trykker',' Tulpen One',' Ubuntu',' Ubuntu Condensed',' Ubuntu Mono',' Ultra',' Uncial Antiqua',' Underdog',' Unica One',' UnifrakturCook',' UnifrakturMaguntia',' Unkempt',' Unlock',' Unna',' VT323',' Vampiro One',' Varela',' Varela Round',' Vast Shadow',' Vesper Libre',' Vibur',' Vidaloka',' Viga',' Voces',' Volkhov',' Vollkorn',' Voltaire',' Waiting for the Sunrise',' Wallpoet',' Walter Turncoat',' Warnes',' Wellfleet',' Wendy One',' Wire One',' Work Sans',' Yanone Kaffeesatz',' Yantramanav',' Yatra One',' Yellowtail',' Yeseva One',' Yesteryear',' Yrsa',' Zeyada',' Zilla Slab',' Zilla Slab Highlight');
	foreach ($whitelist as $font_name) {
		if (strpos($font_name, $font) !== false) {
			return true;
		}
	}
}
/**
 * Google Font URL
 * Combine multiple google font in one URL
 * @link https://shellcreeper.com/?p=1476
 * @author David Chandra <[email protected]>
 *
 * Alternative
 * http://wordpress.stackexchange.com/a/77264 
 * http://wordpress.stackexchange.com/a/17061/40961
 */
function mwp_google_fonts_url($fonts, $subsets = array()){
	/* URL */
	$base_url = "https://fonts.googleapis.com/css";
	$font_args = array();
	$family = array();
	/* Format Each Font Family in Array */
	foreach($fonts as $font_name => $font_weight) {
		$font_name = str_replace(' ', '+', $font_name);
		if (!empty($font_weight)) {
			if (is_array($font_weight)) {
				$font_weight = implode(",", $font_weight);
			}
			$family[] = trim($font_name . ':' . urlencode(trim($font_weight)));
		} else {
			$family[] = trim($font_name);
		}
	}
	/* Only return URL if font family defined. */
	if (!empty($family)) {
		/* Make Font Family a String */
		$family = implode("%7C", $family);
		/* Add font family in args */
		$font_args['family'] = $family;
		/* Add font subsets in args */
		if (!empty($subsets)) {
			/* format subsets to string */
			if (is_array($subsets)){
				$subsets = implode(',', $subsets);
			}
			$font_args['subset'] = urlencode(trim($subsets));
		}
		return esc_url(add_query_arg($font_args, $base_url));
	}
	return '';
}
/*
 * Gutenberg : Extract Classes From Post Content
 *
*/
function mwp_get_content_classes($content){
	$class_attr = array();
	preg_match_all('/\s+class="(.+)?">/i', $content, $classes);
	foreach ($classes[0] as $class => $value) {
		$class_attr[] = $value;
	}
	return $class_attr;
}

/*!
 * Fonts Helper : load a CSS file asynchronously.
 *
 * [c]2014 @scottjehl, Filament Group, Inc.
 * Licensed MIT
 *
*/
function mwp_typography_async($got_font=false, $got_size=false){
	
	$content_fonts 	= mwp_single_load_google_fonts();
	$content_fonts_2 = mwp_gb_single_load_google_fonts();
	
	// Add additional character set
	$subsets = 'latin';
	if( mwp_option('typography-latin-extended') || 
		mwp_option('typography-cyrillic') ||
		mwp_option('typography-cyrillic-extended') || 
		mwp_option('typography-greek') ||
		mwp_option('typography-greek-extended') || 
		mwp_option('typography-vietnamese') || 
		mwp_option('typography-khmer') 
	) {
		if( mwp_option('typography-latin-extended') == 1) 
			$subsets .= ',latin-ext';
		if( mwp_option('typography-cyrillic') == 1)
			$subsets .= ',cyrillic';
		if( mwp_option('typography-cyrillic_extended') == 1)
			$subsets .= ',cyrillic-ext';
		if( mwp_option('typography-greek') == 1)
			$subsets .= ',greek';
		if( mwp_option('typography-greek_extended') == 1)
			$subsets .= ',greek-ext';
		if( mwp_option('typography-khmer') == 1)
			$subsets .= ',khmer';
		if( mwp_option('typography-vietnamese') == 1)
			$subsets .= ',vietnamese';
	}
	$selectors = fonts_seclector_settings();
	$fonts = array();
	
	foreach($selectors as $selector => $value){
		
		$option = mwp_option( $value );
		// check if post content has inline font-family
		if ($content_fonts == false) {
			
		} else {
			foreach ($content_fonts as $index => $val ) {
				$fonts[$val['font-family']] = $val['font-size'];
			}
		}
		
		// check if post content has inline font-family
		if ($content_fonts_2 == false) {
			
		} else {
			foreach ($content_fonts_2 as $index => $val ) {
				$fonts[$val['font-family']] = $val['font-size'];
			}
		}
		
		// check if Ready font Droid Arabic Kufi & Naskh
		if (mwp_option('fonts-library') == 4):
			if (is_rtl()) {
				$fonts['Droid Arabic Kufi'] = '400,700';
				$fonts['Droid Arabic Naskh'] = '400,700';
			} else {
				$fonts['Roboto'] = '300,400,500,700';
			}
		endif;
		// check if Ready font Roboto
		if (mwp_option('fonts-library') == 5) :
			if (is_rtl()) {
				$fonts['Droid Arabic Kufi'] = '400,700';
				$fonts['Droid Arabic Naskh'] = '400,700';
			} else {
				$fonts['Roboto'] = '300,400,500,700';
			}
		endif;
		
		if( !empty($option['font-family'])) {
			$check_variants = substr($option['font-family'], strpos($option['font-family'], ":") + 1);
			if ($check_variants == 'default') {
				$fonts = array();
			} elseif ($check_variants == 'system') {
				$fonts = array();
			} else {
				$font_name = substr($option['font-family'] , 0, strpos ($option['font-family'], ':'));
				$font_name_clean = str_replace ('+', ' ',$font_name);
				$font_variants = substr($option['font-family'], strpos($option['font-family'], ":") + 1);
				$fonts[$font_name_clean] = $font_variants;
			}
		}

	} 
	
	$final_fonts_url = mwp_google_fonts_url(array_filter($fonts), $subsets);
	
	if (!empty($final_fonts_url)) {
		if (mwp_option('google-fonts-async') == 1) {
			echo '<script>load_MWP_CSS("'.$final_fonts_url.'");</script>';
			echo '<noscript><link rel="stylesheet" type="text/css" href="'.$final_fonts_url.'" /></noscript>';
		} else {
			echo '<link rel="stylesheet" type="text/css" href="'.$final_fonts_url.'" />';
		}
	}
}
add_action('wp_footer', 'mwp_typography_async', 999999999999);

/*
 * Load Google Fonts based on post content
*/
function mwp_single_load_google_fonts(){

	if (is_singular()) :
		$queried_object = get_queried_object();
		$post_data 		= get_post($queried_object->ID);
		$data 			= $post_data->post_content;
		preg_match_all('/(font-family:)([^;]*)/', $data, $family);
		array_filter($family);
		$font_size = '200,300,400,500,700,800,900';
		$custom_f1	= ' '.mwp_option('typo-custom-font1-name');
		$custom_f2	= ' '.mwp_option('typo-custom-font2-name');
		$custom_f3	= ' '.mwp_option('typo-custom-font3-name');
		$output = false;
		foreach ($family[2] as $index => $font) {
			if (
			is_rtl() && mwp_option('fonts-library') == 4 && $font == ' Droid Arabic Kufi' ||
			is_rtl() && mwp_option('fonts-library') == 4 && $font == ' Droid Arabic Naskh' ||
			!is_rtl() && mwp_option('fonts-library') == 5 && $font == ' Roboto' ||
			$font == 'Arial' ||
			$font == 'Tahoma' ||
			$font == 'arial' ||
			$font == 'tahoma' ||
			$font == $custom_f1 || 
			$font == $custom_f2 || 
			$font == $custom_f3) {
				$output = false;
			} elseif ( mwp_google_fonts_whitelist($font) == true ) {
				$font_trim = trim($font);
				$output[] = array(
					'font-family' => $font_trim, 
					'font-size' => $font_size
				);
			}
			
		}
		return $output;
	endif;
}
/*
 * Gutenberg
 *
 * Load Google Fonts based on post content
 *
*/
function mwp_gb_single_load_google_fonts(){

	if (is_singular()) :
		$font_size 		= '200,300,400,500,700,800,900';
		$prefix 		= 'font-';
		$array		 	= array();
		$queried_object = get_queried_object();
		$get_data 		= get_post($queried_object->ID);
		$get_classes 	= mwp_get_content_classes($get_data->post_content);

		foreach ($get_classes as $classes => $class) {
			if(preg_match("/\b$prefix\b/i", $class)) {
				$array[] = $class;
			}
		}
		$rewrite_data = implode(',',$array);
		$rewrite_data = preg_replace('/has-huge-font-size/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/has-large-font-size/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/has-medium-font-size/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/has-small-font-size/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-100/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-200/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-300/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-400/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-500/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-600/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-700/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-800/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/font-weight-900/i', ',', $rewrite_data);
		$rewrite_data = preg_replace('/class="/i', '', $rewrite_data);
		$rewrite_data = preg_replace('/">/i', '', $rewrite_data);
		$rewrite_data = preg_replace('/false/i', '', $rewrite_data);
		$rewrite_data = preg_replace('!\s+!', ',', $rewrite_data);
		
		$data_array = explode(',',$rewrite_data);
		$data_array = array_filter($data_array);
		$custom_f1	= mwp_option('typo-custom-font1-name');
		$custom_f2	= mwp_option('typo-custom-font2-name');
		$custom_f3	= mwp_option('typo-custom-font3-name');
		$output = false;

		foreach ($data_array as $index => $fontfamily) {
			
			$fontfamily = preg_replace('/font/i', '', $fontfamily);
			$fontfamily = preg_replace('/-/i', ' ', $fontfamily);
			$fontfamily = trim($fontfamily);
			$fontfamily = ucwords($fontfamily);
			
			if ( is_rtl() && mwp_option('fonts-library') == 4 && $fontfamily == 'Droid Arabic Kufi' ||
				is_rtl() && mwp_option('fonts-library') == 4 && $fontfamily == 'Droid Arabic Naskh' ||
				!is_rtl() && mwp_option('fonts-library') == 5 && $fontfamily == 'Roboto' ||
				$fontfamily == 'Arial' ||
				$fontfamily == 'Tahoma' ||
				$fontfamily == $custom_f1 || 
				$fontfamily == $custom_f2 || 
				$fontfamily == $custom_f3
			) {
				$output = false;
			} elseif ( mwp_google_fonts_whitelist($fontfamily) == true ) {
				$output[] = array(
					'font-family' => $fontfamily,
					'font-size' => $font_size
				);
			}
		}
		return $output;
	endif;
}

function mwp_extract_font_name($str) {

	$font_variants = substr($str, strpos($str, ":") + 1);
	if ($font_variants == 'default') {
		$str = '';
		return $str;
	} elseif ($font_variants == 'system') {
		$str = str_replace ('+', ' ', substr ($str , 0, strpos ($str, ':')));
		return $str;
	} elseif ($font_variants == 'early') {
		$str = str_replace ('+', ' ', substr ($str , 0, strpos ($str, ':')));
		return $str;
	} else {
		$str = '\'' . str_replace ('+', ' ', substr ($str , 0, strpos ($str, ':'))) . '\'';
		return $str;	
	}
		
}
function mwp_font_inline_style($option, $selectors) {
	
	if( !empty( $option['font-family'] ) || !empty( $option['font-size'] ) || !empty( $option['font-weight'] ) || !empty( $option['line-height'] )  ){
		$output = $selectors . ' {';
		if( !empty( $option['font-family'] ) )
		$output .= 'font-family:' . mwp_extract_font_name(esc_attr($option['font-family'])) . '; ';
		if( !empty( $option['font-weight'] ))
		$output .= 'font-weight:' . esc_attr($option['font-weight']) . '; ';
		if( !empty( $option['line-height'] ) )
		$output .= 'line-height:' . esc_attr($option['line-height']) .'px !important; ';
		if( !empty( $option['font-size'] ) )
		$output .= 'font-size:' . esc_attr($option['font-size']) . 'px' . '; ';
		$output .= '}';
		$output .= "\n";
		return $output;
	}
}

/*
 * Typography
 *
*/
function mwp_print_font_inline_style(){
    $selectors = fonts_seclector_settings();
	$output = '';
	foreach ($selectors as $selector => $value) {
		$option = mwp_option( $value );
		if( !empty( $option['font-family'] ) || !empty( $option['font-size'] ) || !empty( $option['font-weight'] ) || !empty( $option['line-height'] )  ){
			$output .= mwp_font_inline_style( $option , $selector);
		}
	}
	return $output;
}
function mwp_organize_inline_style() {
	$output = '';
	$output .= mwp_print_font_inline_style();
	$output .= color_urgent();
	$output .= print_custom_color();
	if ( $output != '' ) {
		$output = "\n<style>\n" . $output . "</style>\n";
		echo $output;
    }
}
add_action('wp_head', 'mwp_organize_inline_style', 9999999998);

/*
 * Get Custom @Font-Face Option
 *
*/
function mwp_get_custom_fonts_option() {

	$font1_name 	= mwp_option('typo-custom-font1-name');
	$font1_eot 		= mwp_option('typo-custom-font1-url-eot');
	$font1_woff 	= mwp_option('typo-custom-font1-url-woff');
	$font1_woff2 	= mwp_option('typo-custom-font1-url-woff2');
	$font1_ttf 		= mwp_option('typo-custom-font1-url-ttf');
	
	$font2_name 	= mwp_option('typo-custom-font2-name');
	$font2_eot 		= mwp_option('typo-custom-font2-url-eot');
	$font2_woff 	= mwp_option('typo-custom-font2-url-woff');
	$font2_woff2 	= mwp_option('typo-custom-font2-url-woff2');
	$font2_ttf 		= mwp_option('typo-custom-font2-url-ttf');
	
	$font3_name 	= mwp_option('typo-custom-font3-name');
	$font3_eot 		= mwp_option('typo-custom-font3-url-eot');
	$font3_woff 	= mwp_option('typo-custom-font3-url-woff');
	$font3_woff2 	= mwp_option('typo-custom-font3-url-woff2');
	$font3_ttf 		= mwp_option('typo-custom-font3-url-ttf');
	
	mwp_print_custom_fonts_styles($font1_name, $font1_eot, $font1_woff, $font1_woff2, $font1_ttf);
	
	mwp_print_custom_fonts_styles($font2_name, $font2_eot, $font2_woff, $font2_woff2, $font2_ttf);
	
	mwp_print_custom_fonts_styles($font3_name, $font3_eot, $font3_woff, $font3_woff2, $font3_ttf);
	
}
add_action('wp_head', 'mwp_get_custom_fonts_option');
/*
 * Print Custom @Font-Face Styles
 *
*/
function mwp_print_custom_fonts_styles($family, $eot, $woff, $woff2, $ttf) {
	
	// All Font Set
	if (!empty($eot) && !empty($woff) && !empty($woff2) && !empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $eot; ?>);
			src:url(<?php echo $eot; ?>?#iefix) format('embedded-opentype'),
			url(<?php echo $woff; ?>) format('woff'),
			url(<?php echo $woff2; ?>) format('woff2'),
			url(<?php echo $ttf; ?>) format('truetype')
		}
	</style>
	<?php
	} 
	// EOT
	elseif (!empty($eot) && empty($woff) && empty($woff2) && empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $eot; ?>);
			src:url(<?php echo $eot; ?>?#iefix) format('embedded-opentype')
		}
	</style>
	<?php	
	}
	// EOT + WOFF
	elseif (!empty($eot) && !empty($woff) && empty($woff2) && empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $eot; ?>);
			src:url(<?php echo $eot; ?>?#iefix) format('embedded-opentype'),
			url(<?php echo $woff; ?>) format('woff'),
		}
	</style>
	<?php	
	}
	// EOT + WOFF2
	elseif (!empty($eot) && empty($woff) && !empty($woff2) && empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $eot; ?>);
			src:url(<?php echo $eot; ?>?#iefix) format('embedded-opentype'),
			url(<?php echo $woff2; ?>) format('woff2')
		}
	</style>
	<?php	
	}
	// EOT + TTF
	elseif (!empty($eot) && empty($woff) && empty($woff2) && !empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $eot; ?>);
			src:url(<?php echo $eot; ?>?#iefix) format('embedded-opentype'),
			url(<?php echo $ttf; ?>) format('truetype')
		}
	</style>
	<?php	
	}
	// EOT + WOFF2 + TTF
	elseif (!empty($eot) && empty($woff) && !empty($woff2) && !empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $eot; ?>);
			src:url(<?php echo $eot; ?>?#iefix) format('embedded-opentype'),
			url(<?php echo $woff2; ?>) format('woff2'),
			url(<?php echo $ttf; ?>) format('truetype')
		}
	</style>
	<?php	
	}
	// EOT + WOFF + TTF
	elseif (!empty($eot) && !empty($woff) && empty($woff2) && !empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $eot; ?>);
			src:url(<?php echo $eot; ?>?#iefix) format('embedded-opentype'),
			url(<?php echo $woff; ?>) format('woff'),
			url(<?php echo $ttf; ?>) format('truetype')
		}
	</style>
	<?php	
	}
	// EOT + WOOF + WOFF2
	elseif (!empty($eot) && !empty($woff) && !empty($woff2) && empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $eot; ?>);
			src:url(<?php echo $eot; ?>?#iefix) format('embedded-opentype'),
			url(<?php echo $woff; ?>) format('woff'),
			url(<?php echo $woff2; ?>) format('woff2')
		}
	</style>
	<?php	
	}
	// WOOF
	elseif (empty($eot) && !empty($woff) && empty($woff2) && empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $woff; ?>) format('woff')
		}
	</style>
	<?php	
	}
	// WOOF + WOFF2
	elseif (empty($eot) && !empty($woff) && !empty($woff2) && empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $woff; ?>) format('woff'),
			url(<?php echo $woff2; ?>) format('woff2')
		}
	</style>
	<?php	
	}
	// WOOF + TTF
	elseif (empty($eot) && !empty($woff) && empty($woff2) && !empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $woff; ?>) format('woff'),
			url(<?php echo $ttf; ?>) format('truetype')
		}
	</style>
	<?php	
	}
	// WOFF2
	elseif (empty($eot) && empty($woff) && !empty($woff2) && empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $woff2; ?>) format('woff2')
		}
	</style>
	<?php	
	}
	// WOFF2 + TTF
	elseif (empty($eot) && empty($woff) && !empty($woff2) && !empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $woff2; ?>) format('woff2'),
			url(<?php echo $ttf; ?>) format('truetype')
		}
	</style>
	<?php	
	}
	// TTF
	elseif (empty($eot) && empty($woff) && empty($woff2) && !empty($ttf) ) {
	?>
	<style>
		@font-face{
			font-family:"<?php echo $family; ?>";
			src:url(<?php echo $ttf; ?>) format('truetype')
		}
	</style>
	<?php	
	} else {
		
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists