<?php

if (!class_exists('dentia_Header')) {

    class dentia_Header
    {
        public function getHeader()
        {
            
            $header_layout = (int)dentia()->get_opt('header_layout'); 
            $header_layout_sticky = (int)dentia()->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 );
            } 
             
        }
 
    }
}
