<?php

if (! defined('ABSPATH')) {
    exit;
} class PufferGo_Header_Data
{
    public $menu_items = array();

    public $has_menu = false;

    public $current_page_id = 0;

    public $home_url = '';

    public $is_current;

    public $site_name = '';

    public $site_description = '';

    public $logo_id = 0;

    public $logo_url = '';

    public $logo_alt = '';

    public $brand_name = '';

    public $show_header_style_selector = false;

    public $current_footer_template = '';

    public static function from_current_page()
    {
        return new self();
    }

    public function __construct()
    {
        $ctx = puffergo_get_header_context(array('with_site_identity' => true, 'with_fullpage_ui' => true, ));
        $this->menu_items = $ctx['menu_items'] ?? array();
        $this->has_menu = $ctx['has_menu'] ?? false;
        $this->current_page_id = $ctx['current_page_id'] ?? 0;
        $this->home_url = $ctx['home_url'] ?? '';
        $this->is_current = $ctx['is_current'] ?? '__return_false';
        $this->site_name = $ctx['site_name'] ?? '';
        $this->site_description = $ctx['site_description'] ?? '';
        $this->logo_id = $ctx['logo_id'] ?? 0;
        $this->logo_url = $ctx['logo_url'] ?? '';
        $this->logo_alt = $ctx['logo_alt'] ?? '';
        $this->brand_name = $ctx['brand_name'] ?? '';
        $this->show_header_style_selector = $ctx['show_header_style_selector'] ?? false;
        $this->current_footer_template = $ctx['current_footer_template'] ?? '';
    }
}
