<?php
/**
 * Default theme options.
 *
 * @package United Blog
 */

if (!function_exists('united_blog_get_default_theme_options')):

    /**
     * Get default theme options
     *
     * @return array Default theme options.
     * @since 1.0.0
     *
     */
    function united_blog_get_default_theme_options()
    {

        $defaults = array();

        $defaults['enable_header_favorites'] = 1;
        $defaults['enable_header_search'] = 1;
        $defaults['enable_random_post'] = 0;
        $defaults['random_post_category'] = 0;
        $defaults['header_section_dropdown'] = 'header_layout_1';
        $defaults['enable_suggested_blog'] = 0;
        $defaults['select_category_for_suggested_blog'] = 0;
        $defaults['suggested_blog_title'] = esc_html__('You May Also Like', 'united-blog');
        $defaults['show_suggested_blog_category'] = 1;
        $defaults['suggested_blog_category_color_display'] = 'none';
        $defaults['suggested_blog_category_limit'] = 1;
        $defaults['suggested_blog_post_meta'] = array('author', 'date');
        $defaults['show_suggested_blog_post_meta_icon'] = 1;
        $defaults['suggested_blog_posts_date_format'] = 'format_2';


        $defaults['enable_grid_line_option'] = 0;
        
        $defaults['single_pagination_section'] = 1;

        $defaults['united_floating_post_navigation'] = 1;

        // Dark/Light setting
        $defaults['show_light_dark_switch'] = 0;
        $defaults['force_dark_mode'] = 0;

        //ticker post
        $defaults['enable_ticker_posts'] = false;
        $defaults['enable_ticker_label'] = true;
        $defaults['ticker_label_text'] = esc_html__('Latest Blog', 'united-blog');
        $defaults['ticker_posts_cat'] = '';
        $defaults['no_of_ticker_posts'] = 7;
        $defaults['ticker_posts_orderby'] = 'date';
        $defaults['ticker_posts_order'] = 'desc';
        $defaults['show_ticker_category'] = 1;
        $defaults['ticker_category_color_display'] = 'none';
        $defaults['ticker_category_limit'] = 1;
        $defaults['ticker_post_meta'] = array('author', 'date');
        $defaults['show_ticker_post_meta_icon'] = 1;
        $defaults['ticker_posts_date_format'] = 'format_2';
        


        // banner slider
        $defaults['enable_banner'] = 0;
        $defaults['banner_section_bg_color'] = '#ffffff';
        $defaults['banner_layout'] = 'full-width';
        $defaults['select_banner_style'] = 'banner-style-1';
        $defaults['banner_display_as'] = 'carousel';
        $defaults['select_slider_from'] = 'from-category';
        $defaults['banner_cat'] = '';
        $defaults['banner_post_ids'] = '';
        $defaults['banner_section_title_limit'] = 'line-clamp-2';
        $defaults['no_of_banner_posts'] = '6';
        $defaults['banner_carousel_item_gap'] = '48';
        $defaults['banner_posts_orderby'] = 'date';
        $defaults['banner_posts_order'] = 'asc';
        $defaults['enable_banner_autoplay'] = 1;
        $defaults['enable_banner_arrows'] = 1;
        $defaults['enable_banner_dots'] = 0;
        $defaults['enable_banner_overlay'] = 0;
        $defaults['banner_overlay_color'] = '#000';
        $defaults['banner_overlay_opacity'] = 0.5;
        $defaults['enable_banner_desc'] = 1;
        $defaults['banner_desc_length'] = '20';
        $defaults['enable_banner_read_more_btn'] = 1;
        $defaults['banner_read_more_btn_text'] = esc_html__('Read More', 'united-blog');
        $defaults['banner_read_more_icon'] = 'arrow-right';
        $defaults['show_banner_category'] = 1;
        $defaults['banner_category_color_display'] = 'none';
        $defaults['banner_category_limit'] = 1;
        $defaults['banner_post_meta'] = array('author', 'date');
        $defaults['show_banner_post_meta_icon'] = 1;
        $defaults['banner_posts_date_format'] = 'format_2';
        $defaults['slider_text_link_color'] = '#171A1B';
        $defaults['slider_text_color'] = '#7A7E83';
        
        // Author section setting
        $defaults['enable_author_section'] = 0;
        $defaults['author_section_title'] = '';
        $defaults['author_section_description'] = '';
        $defaults['author_section_image'] = '';
        $defaults['author_facebook_url'] = '';
        $defaults['author_twiter_url'] = '';
        $defaults['author_instagram_url'] = '';
        $defaults['author_linkedin_url'] = '';

        // social share
        $defaults['enable_social_share'] = 1;
        $defaults['enable_facebook'] = 1;
        $defaults['enable_twitter'] = 1;
        $defaults['enable_pinterest'] = 1;
        $defaults['enable_linkedin'] = 0;
        $defaults['enable_telegram'] = 1;
        $defaults['enable_reddit'] = 1;
        $defaults['enable_whatsapp'] = 1;
        $defaults['enable_email'] = 1;
        
        // frontpage setting
        $defaults['hide_front_page_sidebar_mobile'] = 1;
        $defaults['front_page_enable_sidebar'] = 1;


        // single setting
        $defaults['single_page_layout'] = 'fullwidth_banner_layout';
        $defaults['show_single_category'] = 1;
        $defaults['single_category_color_display'] = 'display_as_bg';
        $defaults['single_category_limit'] = 1;
        $defaults['single_post_meta'] = array('author', 'date');
        $defaults['show_single_post_meta_icon'] = 1;
        $defaults['single_posts_date_format'] = 'format_2';


        // archive setting
        $defaults['archive_posts_layout'] = 'archive-layout-1';
        $defaults['show_archive_category'] = 1;
        $defaults['archive_category_color_display'] = 'none';
        $defaults['archive_category_limit'] = 1;
        $defaults['archive_post_meta'] = array('author', 'date');
        $defaults['show_archive_post_meta_icon'] = 1;
        $defaults['archive_posts_date_format'] = 'format_2';

        /*layout*/
        $defaults['read_more_button_text'] = esc_html__('Continue Reading', 'united-blog');
        $defaults['global_layout'] = 'right-sidebar';
        $defaults['related_post_title'] = esc_html__('Related Post', 'united-blog');
        $defaults['related_post'] = 1;
        $defaults['excerpt_length_global'] = 50;
        $defaults['pagination_type'] = 'numeric';
        $defaults['copyright_text'] = esc_html__('Copyright All rights reserved.', 'united-blog');

        $defaults['enable_preloader_option'] = 1;
        $defaults['enable_cursor_option'] = 1;

        // footer widget section
        $defaults['enable_footer_widget'] = true;
        $defaults['footer_column_layout'] = 'footer_layout_2';
        $defaults['enable_footer_social_menu'] = true;
        $defaults['enable_footer_social_menu'] = 'theme_color';


        $defaults['footer_background_color'] = '#171A1B';
        $defaults['footer_text_color'] = '#BFC2C9';
        $defaults['select_site_mode'] = 'united-scheme-none';

        // Pass through filter.
        $defaults = apply_filters('united_blog_filter_default_theme_options', $defaults);

        return $defaults;

    }

endif;