HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux box12.multicloud.host 4.18.0-553.52.1.el8_10.x86_64 #1 SMP Wed May 14 09:36:12 EDT 2025 x86_64
User: kashmira (1008)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /home/kashmira/public_html/razitahir.com/wp-content/themes/upress/css/fonts.php
<?php
header("Content-Type: text/css; charset=utf-8");
require_once("../../../../wp-load.php");
if ( ! function_exists( 'get_theme_mod' ) ) {
	require_once( ABSPATH . '/wp-includes/theme.php.' );
}
$active_local_fonts = get_theme_mod('urdupress_active_fonts', 'Noto Nastaleeq');
?>
/*==========================================
Custom Urdu Fonts
Styling and Conversion by Mian Shahzad Raza
All Fonts remains property of respective 
owners & credited in each font section
==========================================*/
<?php if (in_array("AhmadLT Regular", $active_local_fonts)): ?>
/************************
01: Ahmad LT Regular
Developer:	Syed Manzar Hasan Zaidi http://www.inpage.com.pk/Main/Default.aspx?x=3
************************/
@font-face {
	font-family: "AhmadLT Regular";
	src: url("<?php echo get_template_directory_uri() ?>/css/fonts/ahmad_regular/ahmed-lt-regular-1.eot");
	src: url("<?php echo get_template_directory_uri() ?>/css/fonts/ahmad_regular/ahmed-lt-regular-1.eot#iefix") format("embedded-opentype"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/ahmad_regular/ahmed-lt-regular-1.woff") format("woff"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/ahmad_regular/ahmed-lt-regular-1.ttf") format("truetype"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/ahmad_regular/ahmed-lt-regular-1.svg") format("svg");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
<?php endif; ?>
<?php if (in_array("Alkatib Regular", $active_local_fonts)): ?>
/************************
02: Alkatib Regular
Developer:	Naseem Amjad http://naseem.amjad.ajsoftpk.com/urdu/
************************/
@font-face {
	font-family: "Alkatib Regular";
	src: url("<?php echo get_template_directory_uri() ?>/css/fonts/alkatib_regular/alkatib-regular-1.eot");
	src: url("<?php echo get_template_directory_uri() ?>/css/fonts/alkatib_regular/alkatib-regular-1.eot#iefix") format("embedded-opentype"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alkatib_regular/alkatib-regular-1.woff") format("woff"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alkatib_regular/alkatib-regular-1.ttf") format("truetype"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alkatib_regular/alkatib-regular-1.svg") format("svg");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
<?php endif; ?>
<?php if (in_array("AlQalam Regular", $active_local_fonts)): ?>
/************************
03: AlQalam Regular
Developer:	Muhammad Ishtiaq Ali Attari http://www.alqlm.org/forum/downloads.php?do=cat&id=3
************************/
@font-face {
	font-family: "AlQalam Regular";
	src: url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_regular/alqalam-irzan-regular-1.eot");
	src: url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_regular/alqalam-irzan-regular-1.eot#iefix") format("embedded-opentype"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_regular/alqalam-irzan-regular-1.woff") format("woff"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_regular/alqalam-irzan-regular-1.ttf") format("truetype"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_regular/alqalam-irzan-regular-1.svg") format("svg");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
<?php endif; ?>
<?php if (in_array("AlQalam Telenor", $active_local_fonts)): ?>
/************************
04: AlQalam Telenor
Developer:	Ishtiaq Ali Attari http://www.alqlm.org/forum/downloads.php?do=cat&id=3
************************/
@font-face {
	font-family: "AlQalam Telenor";
	src: url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_telenor/alqalam-telenor-regular-1.eot");
	src: url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_telenor/alqalam-telenor-regular-1.eot#iefix") format("embedded-opentype"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_telenor/alqalam-telenor-regular-1.woff") format("woff"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_telenor/alqalam-telenor-regular-1.ttf") format("truetype"),
	url("<?php echo get_template_directory_uri() ?>/css/fonts/alqalam_telenor/alqalam-telenor-regular-1.svg") format("svg");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
<?php endif; ?>
<?php if (in_array("Nafees Nastaleeq", $active_local_fonts)): ?>
/************************
05: Nafees Nastaleeq
Developer:	Mr. Jamil-ur-Rehman http://www.crulp.org/software/localization.htm
************************/
@font-face {
    font-family: 'Nafees Nastaleeq';
    src: url('<?php echo get_template_directory_uri() ?>/css/fonts/nafees/nafeesnastaleeq.eot');
    src: url('<?php echo get_template_directory_uri() ?>/css/fonts/nafees/nafeesnastaleeq.eot?#iefix') format('embedded-opentype'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/nafees/nafeesnastaleeq.woff') format('woff'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/nafees/nafeesnastaleeq.ttf') format('truetype'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/nafees/nafeesnastaleeq.svg#nafeesnastaleeq') format('svg');
    font-weight: normal;
    font-style: normal;
	font-display: swap;
}
<?php endif; ?>
<?php if (in_array("Noto Nastaleeq", $active_local_fonts)): ?>
/************************
06: Noto Nastaleeq
Developer:	https://fonts.google.com/noto/specimen/Noto+Nastaliq+Urdu?query=nasta
************************/
@font-face {
    font-family: 'Noto Nastaleeq';
    src: url('<?php echo get_template_directory_uri() ?>/css/fonts/noto/NotoNastaliqUrdu-Regular.eot');
    src: url('<?php echo get_template_directory_uri() ?>/css/fonts/noto/NotoNastaliqUrdu-Regular.eot?#iefix') format('embedded-opentype'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/noto/NotoNastaliqUrdu-Regular.woff') format('woff'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/noto/NotoNastaliqUrdu-Regular.ttf') format('truetype'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/noto/NotoNastaliqUrdu-Regular.svg#NotoNastaliqUrdu-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
	font-display: swap;
}
<?php endif; ?>
<?php if (in_array("Sindhi", $active_local_fonts)): ?>
/************************
07: SSRead - Sindhi
Developer:	https://font.sindhsalamat.com/developer/SindhSalamt
************************/
@font-face {
    font-family: 'Sindhi';
    src: url('<?php echo get_template_directory_uri() ?>/css/fonts/ss_read/SSRead.eot');
    src: url('<?php echo get_template_directory_uri() ?>/css/fonts/ss_read/SSRead.eot?#iefix') format('embedded-opentype'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/ss_read/SSRead.woff') format('woff'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/ss_read/SSRead.ttf') format('truetype'),
         url('<?php echo get_template_directory_uri() ?>/css/fonts/ss_read/SSRead.svg#SSRead') format('svg');
    font-weight: normal;
    font-style: normal;
	font-display: swap;
}
<?php endif; ?>