<?php

$options = get_option('persian_elementor');
if ( $options['efa-all-font']) {

 /**
 * Add Font Group
 */
add_filter( 'elementor/fonts/groups', function( $font_groups ) {
	$font_groups['FARSI'] = __( 'فونت فارسی' );
	return $font_groups;
} );

if ( get_option( 'efa_11101_license_status', false) == 'valid' ){
	
	// Add Premium Font
	
add_filter( 'elementor/fonts/additional_fonts', function( $additional_fonts ) {
	// Key/value
	//Font name/font group
	$additional_fonts['Anjoman'] = 'FARSI';
	$additional_fonts['AnjomanFN'] = 'FARSI';
	$additional_fonts['Aviny'] = 'FARSI';
	$additional_fonts['Artin'] = 'FARSI';
	$additional_fonts['Daal'] = 'FARSI';
	$additional_fonts['Damavand'] = 'FARSI';
	$additional_fonts['Dana'] = 'FARSI';
	$additional_fonts['DanaFN'] = 'FARSI';
	$additional_fonts['Emkan'] = 'FARSI';
	$additional_fonts['Estedad'] = 'FARSI';
	$additional_fonts['EstedadFN'] = 'FARSI';
	$additional_fonts['Farhang'] = 'FARSI';
	$additional_fonts['FarhangFN'] = 'FARSI';
	$additional_fonts['Gandom'] = 'FARSI';
	$additional_fonts['Irancell'] = 'FARSI';
	$additional_fonts['IRANSans'] = 'FARSI';
	$additional_fonts['IRANSansDN'] = 'FARSI';
	$additional_fonts['IRANSansDNFN'] = 'FARSI';
	$additional_fonts['IRANSansFN'] = 'FARSI';
	$additional_fonts['IRANSansX'] = 'FARSI';
	$additional_fonts['IRANSansXFN'] = 'FARSI';
	$additional_fonts['IRANSharp'] = 'FARSI';
	$additional_fonts['IRANYekan'] = 'FARSI';
	$additional_fonts['IRANYekanFN'] = 'FARSI';
	$additional_fonts['IRANYekanX'] = 'FARSI';
	$additional_fonts['IRANYekanXFN'] = 'FARSI';
	$additional_fonts['Kara'] = 'FARSI';
	$additional_fonts['Mikhak'] = 'FARSI';
	$additional_fonts['Kalameh'] = 'FARSI';
	$additional_fonts['Katibeh'] = 'FARSI';
	$additional_fonts['Maneli'] = 'FARSI';
	$additional_fonts['Nahid'] = 'FARSI';
	$additional_fonts['Noora'] = 'FARSI';
	$additional_fonts['NooraFN'] = 'FARSI';
	$additional_fonts['Parastoo'] = 'FARSI';
	$additional_fonts['Pelak'] = 'FARSI';
	$additional_fonts['PelakFN'] = 'FARSI';
	$additional_fonts['Peyda'] = 'FARSI';
	$additional_fonts['Sahel'] = 'FARSI';
	$additional_fonts['Samim'] = 'FARSI';
	$additional_fonts['Shabnam'] = 'FARSI';
	$additional_fonts['ShabnamFN'] = 'FARSI';
	$additional_fonts['Tanha'] = 'FARSI';
	$additional_fonts['TanhaFN'] = 'FARSI';
	$additional_fonts['Vazir'] = 'FARSI';
	$additional_fonts['VazirFN'] = 'FARSI';
	$additional_fonts['VazirMatn'] = 'FARSI';
	$additional_fonts['VazirMatnFN'] = 'FARSI';
	$additional_fonts['Yekanbakh2'] = 'FARSI';
	$additional_fonts['Yekanbakh2FN'] = 'FARSI';
	return $additional_fonts;
} );
}

else {

	// Add Free Font
	
add_filter( 'elementor/fonts/additional_fonts', function( $additional_fonts ) {
	// Key/value
	//Font name/font group
	$additional_fonts['Estedad'] = 'FARSI';
	$additional_fonts['EstedadFN'] = 'FARSI';
	$additional_fonts['Gandom'] = 'FARSI';
	$additional_fonts['IRANYekan'] = 'FARSI';
	$additional_fonts['IRANYekanFN'] = 'FARSI';
	$additional_fonts['Kara'] = 'FARSI';
	$additional_fonts['Mikhak'] = 'FARSI';
	$additional_fonts['Nahid'] = 'FARSI';
	$additional_fonts['Parastoo'] = 'FARSI';
	$additional_fonts['Sahel'] = 'FARSI';
	$additional_fonts['Samim'] = 'FARSI';
	$additional_fonts['Shabnam'] = 'FARSI';
	$additional_fonts['ShabnamFN'] = 'FARSI';
	$additional_fonts['Tanha'] = 'FARSI';
	$additional_fonts['TanhaFN'] = 'FARSI';
	$additional_fonts['Vazir'] = 'FARSI';
	$additional_fonts['VazirFN'] = 'FARSI';
	$additional_fonts['VazirMatn'] = 'FARSI';
	$additional_fonts['VazirMatnFN'] = 'FARSI';
	return $additional_fonts;
} );
}

}