<?php
/*
 * Theme Options
 * @package Ethrik
 * @since 1.0.0
 * */

if (!defined('ABSPATH')) {
    exit(); // exit if access directly
}

if (class_exists('CSF')) {

    // Set a unique slug-like ID
    $prefix = 'ethrik';

    // Create options
    CSF::createOptions($prefix . '_theme_options', array(
        'menu_title' => esc_html__('Ethrik Options', 'ethrik'),
        'menu_slug' => 'ethrik-theme-option',
        'menu_type' => 'menu',
        'enqueue_webfont' => false,
        'show_footer' => false,
        'framework_title' => esc_html__('Ethrik Theme Options', 'ethrik'),
    ));

    // Create a section
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('General', 'ethrik'),
        'icon' => 'fa fa-wrench',
        'fields' => array(

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Site Logo', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'theme_logo',
                'title' => esc_html__('Main Logo', 'ethrik'),
                'type' => 'media',
                'library' => 'image',
                'desc' => esc_html__('Upload Your Static Logo Image on Header Static', 'ethrik'),
            ),

            array(
                'id' => 'logo_width',
                'type' => 'slider',
                'title' => esc_html__('Set Logo Width', 'ethrik'),
                'min' => 0,
                'max' => 300,
                'step' => 1,
                'unit' => 'px',
                'default' => 103,
                'desc' => esc_html__('Set Logo Width in px. Default Width 103px.', 'ethrik'),
                'output' => '.logo.theme-logo img',
                'output_mode' => 'width',
            ),

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('White Mode', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'dark_mode_enable',
                'title' => esc_html__('Show White Mode', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Show or Hide White Mode Switch', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'theme_dark_logo',
                'title' => esc_html__('White Mode Logo', 'ethrik'),
                'type' => 'media',
                'library' => 'image',
                'desc' => esc_html__('Upload Your White Mode Logo', 'ethrik'),
            ),

            array(
                'id' => 'dark_logo_width',
                'type' => 'slider',
                'title' => esc_html__('Set White Mode Logo Width', 'ethrik'),
                'min' => 0,
                'max' => 300,
                'step' => 1,
                'unit' => 'px',
                'default' => 103,
                'desc' => esc_html__('Set Logo Width in px. Default Width 103px.', 'ethrik'),
                'output' => '.dark-mode-logo img',
                'output_mode' => 'width',
            ),

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Preloader', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'preloader_enable',
                'title' => esc_html__('Enable Preloader', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Preloader', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'preloader_letter',
                'type' => 'repeater',
                'title' => esc_html__('Set Preloader Letters', 'ethrik'),
                'dependency' => array(
                    'preloader_enable',
                    '==',
                    'true',
                ),
                'fields' => array(

                    array(
                        'id' => 'ptext',
                        'type' => 'text',
                        'title' => esc_html__('Insert Preloader Letter', 'ethrik'),
                        'default' => esc_html__('E', 'ethrik'),
                    ),
                ),
            ),

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Back Top Options', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'back_top_enable',
                'title' => esc_html__('Scroll Top Button', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable scroll button', 'ethrik'),
                'default' => true,
            ),
        ),
    ));

    /*-------------------------------------------------------
     ** Entire Site Header  Options
    --------------------------------------------------------*/
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('Header', 'ethrik'),
        'id' => 'header_options',
        'icon' => 'fa fa-header',
        'fields' => array(
            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Header Layout', 'ethrik') . '</h3>',
            ),

            // nav select
            // array(
            //     'id' => 'nav_menu',
            //     'type' => 'image_select',
            //     'title' => esc_html__('Select Header Navigation Style', 'ethrik'),
            //     'options' => array(
            //         'nav-style-one' => ETHRIK_IMG . '/admin/header-style/style1.png',
            //         'nav-style-two' => ETHRIK_IMG . '/admin/header-style/style2.png',
            //     ),
            //     'default' => 'nav-style-one',
            // ),

            array(
                'id' => 'theme_header_sticky',
                'title' => esc_html__('Sticky Header', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable Sticky Header', 'ethrik'),
                'default' => true,
            ),

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Mobile Menu', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'different_mobile_menu',
                'title' => esc_html__('Enable Different Mobile Menu', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
                'desc' => esc_html__('You can set a different mobile menu from here', 'ethrik'),
            ),

            array(
                'id' => 'mobile_menu_social',
                'type' => 'repeater',
                'title' => esc_html__('Set Mobile Menu Social Accounts', 'kalliope'),
                'dependency' => array('different_mobile_menu', '==', 'true'),
                'fields' => array(

                    array(
                        'id'    => 'social_account_icon',
                        'type'  => 'icon',
                        'title' => 'Select Account',
                    ),

                    array(
                        'id' => 'social_account_link',
                        'type' => 'link',
                        'title' => esc_html__('Account Link', 'kalliope'),
                        'default' => esc_html__('youraccount.com/username', 'kalliope'),
                    ),
                ),
            ),

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Header Buttons', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'header_login_btn',
                'title' => esc_html__('Show Header Login Button', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
                'desc' => esc_html__('Enable Header Login Button', 'ethrik'),
            ),

            array(
                'id' => 'login_btn_text',
                'type' => 'text',
                'title' => esc_html__('Login Button Text', 'ethrik'),
                'default' => esc_html__('Log In', 'ethrik'),
                'desc' => esc_html__('Type login button text', 'ethrik'),
                'dependency' => array('header_login_btn', '==', 'true'),
            ),

            array(
                'id' => 'login_btn_link',
                'type' => 'text',
                'title' => esc_html__('Login Button Link', 'ethrik'),
                'default' => esc_html__('#', 'ethrik'),
                'desc' => esc_html__('Insert Login Button Link', 'ethrik'),
                'dependency' => array('header_login_btn', '==', 'true'),
            ),

            array(
                'id' => 'header_create_nft_btn',
                'title' => esc_html__('Show Header NFT create Button', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
                'desc' => esc_html__('Enable Header NFT create Button', 'ethrik'),
            ),

            array(
                'id' => 'nft_btn_text',
                'type' => 'text',
                'title' => esc_html__('NFT Button Text', 'ethrik'),
                'default' => esc_html__('Create NFT', 'ethrik'),
                'desc' => esc_html__('Insert NFT Button Text', 'ethrik'),
                'dependency' => array('header_create_nft_btn', '==', 'true'),
            ),

            array(
                'id' => 'create_nft_link',
                'type' => 'text',
                'title' => esc_html__('Create NFT Button Link', 'ethrik'),
                'default' => esc_html__('#', 'ethrik'),
                'desc' => esc_html__('Create NFT Button Link', 'ethrik'),
                'dependency' => array('header_create_nft_btn', '==', 'true'),
            ),
        ),
    ));

    /*-------------------------------------------------------
     ** Pages and Template
    --------------------------------------------------------*/
    // NFT Page
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('NFT Page', 'ethrik'),
        'id' => 'nft_page',
        'icon' => 'fa fa-bookmark',
        'fields' => array(
            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('NFT Page Options', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'nft_items_page_title_show',
                'title' => esc_html__('Show/Hide NFT Items Page Title', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'nft_items_title_text',
                'type' => 'text',
                'title' => esc_html__('NFT Items Title Text', 'ethrik'),
                'default' => esc_html__('NFT Items', 'ethrik'),
                'dependency' => array('nft_items_page_title_show', '==', 'true'),
            ),

            array(
                'id' => 'brdcrmb_nft_items_text',
                'type' => 'text',
                'title' => esc_html__('NFT Items Text at Breadcrumb', 'ethrik'),
                'default' => esc_html__('NFT Items', 'ethrik'),
            ),

            array(
                'id' => 'nft_price',
                'title' => esc_html__('Show or Hide NFT Price', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'show_bid_btn',
                'title' => esc_html__('Show or Hide View More Button', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'bid_btn_text',
                'type' => 'text',
                'title' => esc_html__('View More Button Text', 'ethrik'),
                'default' => esc_html__('View More', 'ethrik'),
                'dependency' => array('show_bid_btn', '==', 'true'),
            ),
        ),
    ));

    // NFT Single
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('NFT Details Page', 'ethrik'),
        'id' => 'nft_details_page',
        'icon' => 'fa fa-bookmark',
        'fields' => array(
            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('NFT Details Page Options', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'nft_details_page_title_show',
                'title' => esc_html__('Show/Hide NFT Details Page Title', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'nft_details_title_text',
                'type' => 'text',
                'title' => esc_html__('NFT Details Title Text', 'ethrik'),
                'default' => esc_html__('NFT Details', 'ethrik'),
                'dependency' => array('nft_details_page_title_show', '==', 'true'),
            ),

            array(
                'id' => 'brdcrmb_nft_item_text',
                'type' => 'text',
                'title' => esc_html__('NFT Item Text at Breadcrumb', 'ethrik'),
                'default' => esc_html__('NFT Item', 'ethrik'),
            ),

            array(
                'id' => 'sale_end_show',
                'title' => esc_html__('Show/Hide Sale Ending Date', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'show_crnt_prc',
                'title' => esc_html__('Show/Hide Current Price', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'show_eth_prc',
                'title' => esc_html__('Show/Hide Eth Price', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
                'dependency' => array('show_crnt_prc', '==', 'true'),
            ),

            array(
                'id' => 'show_usd_prc',
                'title' => esc_html__('Show/Hide USD Price', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
                'dependency' => array('show_crnt_prc', '==', 'true'),
            ),

            array(
                'id' => 'show_buy_btn',
                'title' => esc_html__('Show/Hide Buy Button', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'show_offer_btn',
                'title' => esc_html__('Show/Hide Offer Button', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'show_highest_bid',
                'title' => esc_html__('Show/Hide Highest Bid', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),
        ),
    ));

    // Shop Page
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('Shop Page', 'ethrik'),
        'id' => 'shop_page',
        'icon' => 'fa fa-bookmark',
        'fields' => array(
            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Shop Page Options', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'shop_page_title_show',
                'title' => esc_html__('Show/Hide Shop Page Title', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'shop_title_text',
                'type' => 'text',
                'title' => esc_html__('Shop Title Text', 'ethrik'),
                'default' => esc_html__('Shop', 'ethrik'),
                'dependency' => array('shop_page_title_show', '==', 'true'),
            ),

            array(
                'id' => 'brdcrmb_shop_title_text',
                'type' => 'text',
                'title' => esc_html__('Bredcrum Menu Item Text', 'ethrik'),
                'default' => esc_html__('Products', 'ethrik'),
            ),
        ),
    ));

    // Product Single
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('Product Details Page', 'ethrik'),
        'id' => 'product_details_page',
        'icon' => 'fa fa-bookmark',
        'fields' => array(
            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Product Details Page Options', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'product_details_page_title_show',
                'title' => esc_html__('Show/Hide Product Details Page Title', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'product_details_title_text',
                'type' => 'text',
                'title' => esc_html__('Product Details Title Text', 'ethrik'),
                'default' => esc_html__('Product Details', 'ethrik'),
                'dependency' => array('product_details_page_title_show', '==', 'true'),
            ),
        ),
    ));

    // blog optoins
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('Blog', 'ethrik'),
        'id' => 'blog_page',
        'icon' => 'fa fa-bookmark',
        'fields' => array(
            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Blog Options', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'blog_breadcrumb_enable',
                'title' => esc_html__('Show or Hide Breadcrumb', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable Breadcrumb', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'blog_title',
                'type' => 'text',
                'title' => esc_html__('Blog Page Title', 'ethrik'),
                'default' => esc_html__('Blog Page', 'ethrik'),
                'desc' => esc_html__('Type Blog Page Title', 'ethrik'),
                'dependency' => array('blog_breadcrumb_enable', '==', 'true'),
            ),

            array(
                'id' => 'ethrik_blog_col_layout',
                'type' => 'image_select',
                'title' => esc_html__('Sidebar Style', 'ethrik'),
                'options' => array(

                    'right-sidebar' => ETHRIK_IMG . '/admin/page/R.png',
                    'left-sidebar' => ETHRIK_IMG . '/admin/page/L.png',
                    'no-sidebar' => ETHRIK_IMG . '/admin/page/D.png',
                ),

                'default' => 'no-sidebar',
            ),

            array(
                'id' => 'ethrik_blog_layout',
                'type' => 'image_select',
                'title' => esc_html__('Blog Layout', 'ethrik'),
                'options' => array(
                    'blog-one' => ETHRIK_IMG . '/admin/page/blog-list-layout.jpg',
                    'blog-two' => ETHRIK_IMG . '/admin/page/blog-grid-layout.jpg',
                ),
                'default' => 'blog-one',
            ),

            array(
                'id' => 'blog-post-col-style',
                'type' => 'select',
                'title' => 'Set Column',
                'placeholder' => 'Select Column',
                'options' => array(
                    'col-lg-6' => '2 Columns',
                    'col-lg-4' => '3 Columns',
                    'col-lg-3' => '4 Columns',
                ),
                'dependency' => array('ethrik_blog_layout', '==', 'blog-two'),
                'default' => 'col-lg-4',
            ),

            array(
                'id' => 'page-spacing-blog',
                'type' => 'spacing',
                'title' => esc_html__('Blog Page Spacing', 'ethrik'),
                'output' => '.main-container.blog-spacing',
                'output_mode' => 'padding', // or margin, relative
                'default' => array(
                    'top' => '80',
                    'right' => '0',
                    'bottom' => '80',
                    'left' => '0',
                    'unit' => 'px',
                ),
            ),
        ),
    ));

    // category
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('Category', 'ethrik'),
        'id' => 'cat_page',
        'icon' => 'fa fa-list-ul',
        'fields' => array(
            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Theme Category Options.', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'cat_title',
                'title' => esc_html__('Show Catgeory', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Show Category Name', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'cat_page_breadcrumb',
                'title' => esc_html__('Show Breadcrumb', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'ethrik_cat_layout',
                'type' => 'image_select',
                'title' => esc_html__('Category Layout', 'ethrik'),
                'options' => array(
                    'cat-one' => ETHRIK_IMG . '/admin/page/cat-list-style.jpg',
                    'cat-two' => ETHRIK_IMG . '/admin/page/cat-grid-style.jpg',
                ),
                'default' => 'blog-one',
            ),

            array(
                'id' => 'page-spacing-category',
                'type' => 'spacing',
                'title' => esc_html__('Category Page Spacing', 'ethrik'),
                'output' => '.main-container.cat-page-spacing',
                'output_mode' => 'padding', // or margin, relative
                'default' => array(
                    'top' => '80',
                    'right' => '0',
                    'bottom' => '80',
                    'left' => '0',
                    'unit' => 'px',
                ),
            ),
        ),
    ));

    // blog single optoins
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('Blog Details', 'ethrik'),
        'id' => 'single_page',
        'icon' => 'fa fa-pencil-square-o',
        'fields' => array(
            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Blog Details Page Option', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'ethrik_single_blog_layout',
                'type' => 'image_select',
                'title' => esc_html__('Select Single Blog Style', 'ethrik'),
                'options' => array(
                    'single-one' => ETHRIK_IMG . '/admin/page/blog-1.png',
                    'single-two' => ETHRIK_IMG . '/admin/page/blog-2.png',
                ),
                'default' => 'single-one',
            ),

            array(
                'id' => 'display_blog_single_title',
                'title' => esc_html__('Display Page Title', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'blog_single_title',
                'type' => 'text',
                'title' => esc_html__('Blog Page Title', 'ethrik'),
                'default' => esc_html__('Blog Details', 'ethrik'),
                'desc' => esc_html__('Edit Blog Page Title', 'ethrik'),
                'dependency' => array('display_blog_single_title', '==', 'true'),
            ),

            array(
                'id' => 'blog_single_breadcrumb',
                'title' => esc_html__('Show Breadcrumb', 'ethrik'),
                'type' => 'switcher',
                'default' => true,
            ),

            array(
                'id' => 'page-spacing-single',
                'type' => 'spacing',
                'title' => esc_html__('Single Blog Spacing', 'ethrik'),
                'output' => '.single-one-bwrap',
                'output_mode' => 'padding',
                'default' => array(
                    'top' => '40',
                    'right' => '0',
                    'bottom' => '80',
                    'left' => '0',
                    'unit' => 'px',
                ),
            ),

            array(
                'id' => 'blog_prev_title',
                'type' => 'text',
                'title' => esc_html__('Previous Post Text', 'ethrik'),
                'default' => esc_html__('Previous Post', 'ethrik'),
                'desc' => esc_html__('Type Previous Post Link Title', 'ethrik'),
            ),

            array(
                'id' => 'blog_next_title',
                'type' => 'text',
                'title' => esc_html__('Next Post Text', 'ethrik'),
                'default' => esc_html__('Next Post', 'ethrik'),
                'desc' => esc_html__('Type Next Post Link Title', 'ethrik'),
            ),

            array(
                'id' => 'blog_single_cat',
                'title' => esc_html__('Show Catgeory', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Show Category Name', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'blog_single_author',
                'title' => esc_html__('Show Author', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Single Post Author', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'blog_nav',
                'title' => esc_html__('Show Navigation', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Post Navigation', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'blog_tags',
                'title' => esc_html__('Show Tags', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Show Post Tags', 'ethrik'),
                'default' => true,
            ),
        ),
    ));

    /*-------------------------------------------------------
     ** Woocommerce  Options
    --------------------------------------------------------*/
    // CSF::createSection( $prefix.'_theme_options', array(
    //   'title'  => esc_html__('Shop','ethrik'),
    //   'id' => 'cat_page',
    //   'icon' => 'fa fa-pencil-square-o',
    //   'fields' => array(
    //     array(
    //       'type' => 'subheading',
    //       'content' => '<h3>' . esc_html__('Shop Layout', 'ethrik') . '</h3>'
    //     ),

    //       array(
    //           'id' => 'shop_layout',
    //           'type' => 'image_select',
    //           'title' => esc_html__('Shop Layout','ethrik'),
    //           'options' => array(
    //               'right-sidebar' => ETHRIK_IMG . '/admin/page/R.png',
    //               'left-sidebar' => ETHRIK_IMG . '/admin/page/L.png',
    //               'no-sidebar' => ETHRIK_IMG . '/admin/page/D.png',
    //           ),

    //           'default' => 'no-sidebar'
    //       ),

    //     )
    // ));

    /*-------------------------------------------------------
     ** Footer  Options
    --------------------------------------------------------*/
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('Footer', 'ethrik'),
        'id' => 'footer_options',
        'icon' => 'fa fa-copyright',
        'fields' => array(

            // array(
            //     'type' => 'subheading',
            //     'content' => '<h3>' . esc_html__('Footer Layout', 'ethrik') . '</h3>',
            // ),

            // array(
            //     'id' => 'footer_design',
            //     'type' => 'image_select',
            //     'title' => esc_html__('Select Footer Style', 'ethrik'),
            //     'options' => array(
            //         'footer-style-one' => ETHRIK_IMG . '/admin/footer-style/style1.png',
            //         'footer-style-two' => ETHRIK_IMG . '/admin/footer-style/style2.png',
            //     ),
            //     'default' => 'footer-style-one',
            // ),

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Footer Top', 'ethrik') . '</h3>',
            ),

            array(
                'id' => 'footer_top_enable',
                'title' => esc_html__('Footer Top', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Footer Top', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'footer_col_one',
                'title' => esc_html__('Column One', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Footer Column One', 'ethrik'),
                'default' => true,
                'dependency' => array('footer_top_enable', '==', 'true'),
            ),

            array(
                'id' => 'theme_logo_footer',
                'title' => esc_html__('Footer Logo', 'ethrik'),
                'type' => 'media',
                'library' => 'image',
                'desc' => esc_html__('Upload Your Footer Logo Image', 'ethrik'),
                'dependency' => array('footer_col_one', '==', 'true'),
            ),

            array(
                'id' => 'footer_logo_width',
                'type' => 'slider',
                'title' => esc_html__('Set Footer Logo Width', 'ethrik'),
                'min' => 0,
                'max' => 300,
                'step' => 1,
                'unit' => 'px',
                'default' => 105,
                'desc' => esc_html__('Set Footer Logo Width in px. Default Width 105px.', 'ethrik'),
                'output' => '.footer-top-logo img',
                'output_mode' => 'width',
                'dependency' => array('footer_col_one', '==', 'true'),
            ),

            array(
                'id' => 'footer_desc',
                'title' => esc_html__('Footer Description', 'ethrik'),
                'type' => 'textarea',
                'desc' => esc_html__('Footer Description Text', 'ethrik'),
                'default' => 'The world’s first and largest digital marketplace for crypto collectibles and non-fungible tokens (NFTs). Buy, sell, and discover exclusive digital items.',
                'dependency' => array('footer_col_one', '==', 'true'),
            ),

            array(
                'id' => 'footer_col_two',
                'title' => esc_html__('Column Two', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Footer Column Two', 'ethrik'),
                'default' => true,
                'dependency' => array('footer_top_enable', '==', 'true'),
            ),

            array(
                'id'         => 'col_two_title',
                'type'       => 'text',
                'title'      => esc_html__('Column Two Title', 'ethrik'),
                'default'    => esc_html__('Marketplaces', 'ethrik'),
                'desc'       => esc_html__('Type Column Two Title', 'ethrik'),
                'dependency' => array('footer_col_two', '==', 'true'),
            ),

            array(
                'id' => 'footer_col_two_menu_area',
                'type' => 'repeater',
                'title' => esc_html__('Create Column Two Menu', 'ethrik'),
                'dependency' => array(
                    'footer_col_two',
                    '==',
                    'true'
                ),
                'fields' => array(
                    array(
                        'id' => 'footer_col_two_menu_text',
                        'type' => 'text',
                        'title' => esc_html__('Menu Item', 'ethrik'),
                    ),
                    array(
                        'id' => 'footer_col_two_menu_link',
                        'type' => 'link',
                        'title' => esc_html__('Menu Link', 'ethrik'),
                    ),

                ),
            ),

            array(
                'id' => 'footer_col_three',
                'title' => esc_html__('Column Three', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Footer Column Three', 'ethrik'),
                'default' => true,
                'dependency' => array('footer_top_enable', '==', 'true'),
            ),

            array(
                'id'         => 'col_three_title',
                'type'       => 'text',
                'title'      => esc_html__('Column Three Title', 'ethrik'),
                'default'    => esc_html__('Useful Links', 'ethrik'),
                'desc'       => esc_html__('Type Column Three Title', 'ethrik'),
                'dependency' => array('footer_col_three', '==', 'true'),
            ),

            array(
                'id' => 'footer_col_three_menu_area',
                'type' => 'repeater',
                'title' => esc_html__('Create Column Three Menu', 'ethrik'),
                'dependency' => array(
                    'footer_col_three',
                    '==',
                    'true'
                ),
                'fields' => array(
                    array(
                        'id' => 'footer_col_three_menu_text',
                        'type' => 'text',
                        'title' => esc_html__('Menu Item', 'ethrik'),
                    ),
                    array(
                        'id' => 'footer_col_three_menu_link',
                        'type' => 'link',
                        'title' => esc_html__('Menu Link', 'ethrik'),
                    ),

                ),
            ),

            array(
                'id' => 'footer_col_four',
                'title' => esc_html__('Column Four', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Footer Column Four', 'ethrik'),
                'default' => true,
                'dependency' => array('footer_top_enable', '==', 'true'),
            ),

            array(
                'id'         => 'col_four_title',
                'type'       => 'text',
                'title'      => esc_html__('Column Four Title', 'ethrik'),
                'default'    => esc_html__('Get the latest Ethrik updates', 'ethrik'),
                'desc'       => esc_html__('Type Column Four Title', 'ethrik'),
                'dependency' => array('footer_col_four', '==', 'true'),
            ),

            array(
                'id' => 'footer_social_enable',
                'title' => esc_html__('Do You want to Show Footer Social Icons', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Social Bar', 'ethrik'),
                'default' => true,
                'dependency' => array('footer_col_four', '==', 'true'),
            ),

            array(
                'id'         => 'col_four_social_menu_title',
                'type'       => 'text',
                'title'      => esc_html__('Social Menu Title', 'ethrik'),
                'default'    => esc_html__('Join Ethrik Community', 'ethrik'),
                'desc'       => esc_html__('Enter Social Menu Title', 'ethrik'),
                'dependency' => array('footer_social_enable', '==', 'true'),
            ),

            array(
                'id' => 'fsocial_icon',
                'type' => 'repeater',
                'title' => esc_html__('Social Menu', 'ethrik'),
                'dependency' => array(
                    'footer_social_enable',
                    '==',
                    'true'
                ),
                'fields' => array(
                    array(
                        'id' => 'icon',
                        'type' => 'icon',
                        'title' => esc_html__('Pick Up Your Social Icon', 'ethrik'),
                    ),
                    array(
                        'id' => 'link',
                        'type' => 'text',
                        'title' => esc_html__('Inter Social Url', 'ethrik'),
                    ),

                ),
            ),

            array(
                'type' => 'subheading',
                'content' => '<h3>' . esc_html__('Footer Bottom', 'ethrik') . '</h3>'
            ),

            array(
                'id' => 'footer_bottom_enable',
                'title' => esc_html__('Footer Bottom', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('Enable or Disable Footer Bottom', 'ethrik'),
                'default' => true,
            ),

            array(
                'id' => 'copyright_text',
                'title' => esc_html__('Copyright Area Text', 'ethrik'),
                'type' => 'textarea',
                'desc' => esc_html__('Footer Copyright Area Text', 'ethrik'),
                'default' => 'Copyright © Ethrik 2025. All rights reserved',
                'dependency' => array('footer_bottom_enable', '==', 'true'),
            ),

            array(
                'id' => 'footer_nav',
                'title' => esc_html__('Footer Right Menu', 'ethrik'),
                'type' => 'switcher',
                'desc' => esc_html__('You can set Yes or No to show Footer bottom menu', 'ethrik'),
                'default' => true,
                'dependency' => array('footer_bottom_enable', '==', 'true'),
            ),

            array(
                'id' => 'footer_bottom_right_menu_area',
                'type' => 'repeater',
                'title' => esc_html__('Create Footer Bottom Right Menu', 'ethrik'),
                'dependency' => array(
                    'footer_nav',
                    '==',
                    'true'
                ),
                'fields' => array(
                    array(
                        'id' => 'footer_nav_text',
                        'type' => 'text',
                        'title' => esc_html__('Menu Item', 'ethrik'),
                    ),
                    array(
                        'id' => 'footer_nav_link',
                        'type' => 'link',
                        'title' => esc_html__('Menu Link', 'ethrik'),
                    ),
                ),
            ),
        ),
    ));

    // Backup section
    CSF::createSection($prefix . '_theme_options', array(
        'title' => esc_html__('Backup', 'ethrik'),
        'id' => 'backup_options',
        'icon' => 'fa fa-window-restore',
        'fields' => array(
            array(
                'type' => 'backup',
            ),
        ),
    ));
}
