<?php

if (!class_exists('IntegratePalace_Properties_Template_Defaults')) {

    class IntegratePalace_Properties_Template_Defaults {

        public static function get_defaults() {
            return [
                'palace-property' => [
                    'colors' => [
                        'primary_color'      => '#1d4ed8',
                        'secondary_color'    => '#0433ff',
                        'primary_color_h'    => '#091057',
                        'secondary_color_h'  => '#020fa6',
                    ],
                    'buttons_primary' => [
                        'button_primary_color'   => '#fff',
                        'button_primary_color_h' => '#fff',
                        'button_primary_bg_color' => '#1d4ed8',
                        'button_primary_bg_color_h' => '#091057',
                        'button_primary_border_color' => '#1d4ed8',
                        'button_primary_border_color_h' => '#091057',
                    ],
                    'buttons_secondary' => [
                        'button_secondary_color' => '#1d4ed8',
                        'button_secondary_color_h' => '#fff',
                        'button_secondary_bg_color' => '#fff',
                        'button_secondary_bg_color_h' => '#1d4ed8',
                        'button_secondary_border_color' => '#1d4ed8',
                        'button_secondary_border_color_h' => '#1d4ed8',
                    ],
                ],
                'modern' => [],
            ];
        }

        public static function initialize_defaults() {
            $option_name = 'IPPR_CUSTOMIZER_SETTING_DEFAULTS';
            $defaults = self::get_defaults();

            //if (!get_option($option_name)) {
                update_option($option_name, $defaults);
            //}
        }
    }
}
