<?php
/**
 * Faced Theme Customizer default values
 *
 * @package Faced
 */
if ( !function_exists('faced_default_theme_options_values') ) :
    function faced_default_theme_options_values() {
        $default_theme_options = array(
            /*Top Header*/
            'faced-enable-top-header'=> true,
            'faced-enable-top-header-social'=> true,
            'faced-enable-top-header-menu'=> true,
            'faced-enable-top-header-search'=> true,
            'faced-top-header-ad-section-image'=> get_template_directory_uri().'/candidthemes/assets/custom/img/900x60.png',
            'faced-enable-ads-header'=> true,
            'faced-header-ads-image-link'=> esc_url('https://www.candidthemes.com/themes/faced/'),

            /*Slider Settings Option*/
            'faced-enable-slider'=> false,
            'faced-select-category'=> 0,
            'faced-image-size-slider'=> 'cropped-image',

            /*Category Boxes*/
            'faced-enable-category-boxes'=> false,
            'faced-single-cat-posts-select-1'=> 0,


            /*Sidebar Options*/
            'faced-sidebar-blog-page'=>'no-sidebar',
            'faced-sidebar-single-page' =>'right-sidebar',
            'faced-enable-sticky-sidebar'=> true,


            /*Blog Page Default Value*/
            'faced-column-blog-page'=> 'one-column',
            'faced-content-show-from'=>'excerpt',
            'faced-excerpt-length'=>25,
            'faced-pagination-options'=>'ajax',
            'faced-read-more-text'=> esc_html__('Read More','faced'),
            'faced-blog-page-masonry-normal'=> 'masonry',
            'faced-blog-page-image-position'=> 'left-image',
            'faced-image-size-blog-page'=> 'original-image',

            /*Blog Layout Overlay*/
            'faced-site-layout-blog-overlay'=> 1,

            /*Single Page Default Value*/
            'faced-single-page-featured-image'=> true,
            'faced-single-page-tags'=> false,
            'faced-enable-underline-link' => true,
            'faced-single-page-related-posts'=> true,
            'faced-single-page-related-posts-title'=> esc_html__('Related Posts','faced'),


            /*Breadcrumb Settings*/
            'faced-blog-site-breadcrumb'=> true,
            'faced-breadcrumb-display-from-option'=> 'theme-default',
            'faced-breadcrumb-text'=> '',

            /*General Colors*/
            'faced-primary-color' => '#0025ff',
            'faced-header-description-color'=>'#0025ff',

            'faced-overlay-color' => 'rgba(37,37,162,0.5)',
            'faced-overlay-second-color'=>'rgba(0, 0, 0, 0.5)',

            /*Footer Options*/
            'faced-footer-copyright'=> esc_html__('All Rights Reserved 2023.','faced'),
            'faced-go-to-top'=> true,
            'faced-go-to-top-icon'=> esc_html__('fa-long-arrow-up','faced'),
            'faced-go-to-top-icon-new'=> esc_html__('fa-long-arrow-alt-up','faced'),
            'faced-footer-social-icons'=> false,
            'faced-footer-mailchimp-subscribe'=> false,
            'faced-footer-mailchimp-form-id'=> '',
            'faced-footer-post-enable'=> true,
            'faced-related-post-section-title'=> esc_html( 'You May Also Like', ),
            'faced-related-post-select-category'=> 0,
            'faced-footer-mailchimp-form-title'=>  esc_html__('Subscribe to my Newsletter','faced'),
            'faced-footer-mailchimp-form-subtitle'=> esc_html__('Be the first to receive the latest buzz on upcoming contests & more!','faced'),

            /*Font Options*/
            'faced-font-family-url'=> 'Poppins:400,500,600,700',
            'faced-font-heading-family-url'=> 'Oswald:400,300,700',

            /*Extra Options*/
            'faced-post-published-updated-date'=> 'post-published',

        );
        return apply_filters( 'faced_default_theme_options_values', $default_theme_options );
    }
endif;

/**
 *  Faced Theme Options and Settings
 *
 * @since Faced 1.0.0
 *
 * @param null
 * @return array faced_get_options_value
 *
 */
if ( !function_exists('faced_get_options_value') ) :
    function faced_get_options_value() {
        $faced_default_theme_options_values = faced_default_theme_options_values();
        $faced_get_options_value = get_theme_mod( 'faced_options');
        if( is_array( $faced_get_options_value )){
            return array_merge( $faced_default_theme_options_values, $faced_get_options_value );
        }
        else{
            return $faced_default_theme_options_values;
        }
    }
endif;
