<?php

if (!class_exists('hubsteel_Header')) {

    class hubsteel_Header
    {
        public function getHeader()
        {
            
            $header_layout = (int)hubsteel()->get_opt('header_layout'); 
            $header_layout_sticky = (int)hubsteel()->get_opt('header_layout_sticky'); 
             
            if ($header_layout <= 0 || !class_exists('Pxltheme_Core') || !is_callable( 'Elementor\Plugin::instance' )) {
                get_template_part( 'template-parts/header/default');
            } else {
                $args = [
                    'header_layout' => $header_layout,
                    'header_layout_sticky' => $header_layout_sticky
                ];
                get_template_part( 'template-parts/header/elementor','', $args );
            } 
             
        }
 
    }
}
