HEX
Server: LiteSpeed
System: Linux onyx.7ho.st 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: atiscoir (1242)
PHP: 8.1.34
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/atiscoir/public_html/wp-content/themes/servin/header.php
<?php
/**
 * The header for our theme
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package WordPress
 * @subpackage Servin
 * @since 1.0.0
 */

?><!doctype html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo('charset'); ?>"/>
    <meta name="viewport" content="width=device-width, height=device-height">
    <link rel="profile" href="https://gmpg.org/xfn/11"/>
    <?php

    $mobile_color =  TMT_Get_Setting('general-settings', 'mobile-color');
    $before_closing_head = TMT_Get_Setting('codes-settings', 'custom-before-head');

    echo "<meta name='theme-color' content='$mobile_color' />";
        if(!is_rtl()) {
            $font = TMT_Get_Setting('general-settings', 'ltr-font');
            $font = $font ? $font: 'Raleway';
            $font_name = str_replace( ' ', '+', $font );
            $font = ':100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic';
            $display_font = sprintf( 'https://fonts.googleapis.com/css?family='. $font_name .'%1$s%2$s', rawurlencode( $font ), '&display=auto' );
            echo '<link href="'. $display_font .'" rel="stylesheet" type="text/css">';
        }
        wp_head();
    if($before_closing_head){echo $before_closing_head;}
    echo '</head>';

    ?>
<body <?php body_class(); ?>>

<?php
$theme_option = get_option('tmt_theme_config_option', [] );
$id = $theme_option['tmt-header'];

if(!empty($id)) {
    $abs_header = TMT_Get_Setting('general-settings', 'abs-header');
    $enable_preloader = TMT_Get_Setting('general-settings', 'enable-preloader');
    $enable_preloader = $enable_preloader ? $enable_preloader : false;
    if($enable_preloader == true) {
        $preloader_logo = TMT_Get_Setting('general-settings', 'preloader-logo');
        $preloader_style = TMT_Get_Setting('general-settings', 'preloader-style');
        $title = wp_title('&raquo;',false);
        echo "<div class='tmt-preloader flex align-items-center justify-content-center'>"
            . "<div class='flex align-items-center justify-content-center flex-column'>";
                if(!empty($preloader_logo)) {echo "<img src='$preloader_logo' alt='$title' />";}
                if($preloader_style != 'none') {
                    switch($preloader_style) {
                        case 'style1' :
                            echo "<div class='tmt-loading $preloader_style'></div>";
                            break;
                        case 'style2' :
                            echo "<div class='tmt-loading $preloader_style'><div></div></div>";
                            break;
                        case 'style3' :
                            echo "<div class='tmt-loading $preloader_style'><div></div><div></div><div></div><div></div></div>";
                            break;
                        case 'style4' :
                            echo "<div class='tmt-loading $preloader_style'><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>";
                            break;
                        case 'style5' :
                            echo "<div class='tmt-loading $preloader_style'><div></div><div></div><div></div><div></div></div>";
                            break;
                        case 'style6' :
                            echo "<div class='tmt-loading $preloader_style'><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>";
                            break;
                        case 'style7' :
                            echo "<div class='tmt-loading $preloader_style'><div></div><div></div></div>";
                            break;
                    }
                }
            echo "</div>"
        . "</div>";
    }
}
echo "<header ". ($abs_header == true ? 'class="position-header"' : '') ." >";

TMT_Elementor::get_header_content();

echo "</header>";