<?php

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

    public $copyright_text = '';

    public $home_url = '';

    public $year = '';

    public $brand_name = '';

    public $logo_id = 0;

    public $logo_url = '';

    public $logo_alt = '';

    public $contact_email = '';

    public $contact_phone = '';

    public $contact_address = '';

    public $contact_channels = array();

    public $wechat_value = '';

    public $site_description = '';

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

    public function __construct()
    {
        $ctx = puffergo_get_footer_context();
        $this->sections = $ctx['sections'] ?? array();
        $this->copyright_text = $ctx['copyright_text'] ?? '';
        $this->home_url = $ctx['home_url'] ?? '';
        $this->year = $ctx['year'] ?? gmdate('Y');
        $this->brand_name = $ctx['brand_name'] ?? '';
        $this->logo_id = $ctx['logo_id'] ?? 0;
        $this->logo_url = $ctx['logo_url'] ?? '';
        $this->logo_alt = $ctx['logo_alt'] ?? '';
        $this->contact_email = $ctx['contact_email'] ?? '';
        $this->contact_phone = $ctx['contact_phone'] ?? '';
        $this->contact_address = $ctx['contact_address'] ?? '';
        $this->contact_channels = $ctx['contact_channels'] ?? array();
        $this->wechat_value = $ctx['wechat_value'] ?? '';
        $this->site_description = get_bloginfo('description');
    }
}
