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/inc/font-loader.php
<?php
$active_fonts = array("Lateef", "Amiri");
if(!empty(get_theme_mod('urdupress_active_fonts'))) {
    $active_fonts = get_theme_mod('urdupress_active_fonts');
}
$amiri = $alkalami = $amiri_q = $gulzar = $katibeh = $markazi = $reem = '';
if (in_array("Alkalami", $active_fonts)) {
    $alkalami = '&family=Alkalami';
}
if (in_array("Amiri Quran", $active_fonts)) {
    $amiri_q = '&family=Amiri+Quran';
}
if (in_array("Amiri", $active_fonts)) {
    $amiri = '&family=Amiri:wght@400;700';
}
if (in_array("Gulzar", $active_fonts)) {
    $gulzar = '&family=Gulzar';
}
if (in_array("Katibeh", $active_fonts)) {
    $katibeh = '&family=Katibeh';
}
if (in_array("Markazi Text", $active_fonts)) {
    $markazi = '&family=Markazi+Text:wght@400;700';
}
if (in_array("Reem Kufi Fun", $active_fonts)) {
    $reem = '&family=Reem+Kufi+Fun:wght@400;700';
}
//print_r($active_fonts);
if(!empty($active_fonts)):
?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lateef:wght@400;700<?php echo $alkalami.$amiri_q.$amiri.$gulzar.$katibeh.$markazi.$reem ?>&display=swap" rel="stylesheet">
<?php endif; ?>