<?php
if (!function_exists('prato_store_theme_options')) :
    function prato_store_theme_options()
    {
        $defaults = array(

            'banner_title' => '',
            'banner_button_url' => '',
            'banner_button_txt' => '',
            'title_size' => '',
            'banner_height' => '',
            'site_title_show' => 1,
            'banner_bg_image' => '',
            'cta_show' => 0,
            'header_hover' => 0,

            'product_section_show' => 1,
            'product_section_title' => '',
            'product_column' => '4',
            'display_product' => 'recent',
            'add_to_cart' => 'belowprice',
            'noofproduct' => 4,

            'cta_title' => '',
            'cta_subtitle' => '',
            'cta_button_txt' => '',
            'cta_button_url' => '',
            'cta_bg_image' => '',

            'category_layout' => 'layout1',
            'category_item_show' => '1',

            
            'blog_show' => 1,
            'small_blog_img' => 0,
            'blog_title' => '',
            'blog_desc' => '',
            'blog_category' => '',
            'show_prefooter' => 1,


        );

        $options = get_option('prato_store_theme_options', $defaults);

        //Parse defaults again - see comments
        $options = wp_parse_args($options, $defaults);

        return $options;
    }
endif;
