<?php

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

add_action( 'csf_loaded', 'glowify_theme_options_widgets' );
function glowify_theme_options_widgets() {

  $glowify_wp_options = 'glowify_wp_options';
  // Create options
  CSF::createOptions( $glowify_wp_options, array(

    'menu_title' => 'Glowify Options',
    'menu_slug'  => 'glowify-options',
    'framework_title'         => 'Glowify Options',
    'footer_text'             => '',
    'footer_after'            => '',
    'footer_credit'           => '',

  ) );

	// Header Settings
	CSF::createSection( $glowify_wp_options, array(
		'id'    => 'primary_tab', // Set a unique slug-like ID
		'title'    => __('Header Settings', 'glowify-wp'),
		'icon'   => 'fas fa-bars',
	) );


	// Header Settings
	CSF::createSection( $glowify_wp_options, array(
		'parent' => 'primary_tab',
		'title'      => esc_html__('Header settings', 'glowify-wp'),
		'icon'		 => 'fa fa-image',
		'fields' => array(
			
			array(
				'id'    => 'enable_header_sticky',
				'type'  => 'switcher',
				'default'  => true,
				'title' => esc_html__('Header Sticky', 'glowify-wp'),
				'desc' => esc_html__('Do you want to use header sticky? Please select "ON" from switcher.', 'glowify-wp'),
			),

			array(
				'id'    => 'enable_image_logo',
				'type'  => 'switcher',
				'default'  => false,
				'title' => esc_html__('Header image logo', 'glowify-wp'),
				'desc' => esc_html__('You can use image logo instead of text logo. Please select "ON" from switcher.', 'glowify-wp'),
			),

			array(
				'id'    => 'image_logo',
				'type'  => 'media',
				'title' => esc_html__('Upload header logo', 'glowify-wp'),
				'desc' => esc_html__('Upload your favorite logo by using add image option.', 'glowify-wp'),
				'dependency' => array( 'enable_image_logo', '==', 'true' )
			),

			array(
				'id'    => 'image_logo_max_height',
				'type'  => 'text',
				'title' => esc_html__('logo max height', 'glowify-wp'),
				'desc' => esc_html__('Type logo maximum height in "PX"', 'glowify-wp'),
				'default' => '100',
				'dependency' => array( 'enable_image_logo', '==', 'true' )
			),

			array(
				'id'    => 'text_logo',
				'type'  => 'text',
				'title' => esc_html__('Header text logo', 'glowify-wp'),
				'desc' => esc_html__('Type header text logo instead of image logo.', 'glowify-wp'),
				'default' => 'Glowify',
				'dependency' => array( 'enable_image_logo', '==', 'false' )
			),

		)

	) );


	CSF::createSection($glowify_wp_options, array(
		'parent' => 'primary_tab', // The slug id of the parent section
		'title' => esc_html__('Header Styles', 'glowify-wp'),
		'icon' => 'fa fa-pencil',
		'fields' => array(
			array(
				'id' => 'header_font_size',
				'type' => 'number',
				'default' => '20',
				'title' => esc_html__('Header Menu Font Size', 'glowify-wp'),
				'desc' => esc_html__('Type Font size in pixel', 'glowify-wp'),
			),
			array(
				'id' => 'header_dropdown_font_size',
				'type' => 'number',
				'default' => '18',
				'title' => esc_html__('Header Menu Dropdown Font Size', 'glowify-wp'),
				'desc' => esc_html__('Type Font size in pixel', 'glowify-wp'),
			),
			// A textarea field
			array(
				'id' => 'overwrite_default_color',
				'type' => 'switcher',
				'default' => false,
				'title' => esc_html__('Overwrite Default Color?', 'glowify-wp'),
				'desc' => esc_html__('If you enable then default menu colors will be replaced', 'glowify-wp'),
			),
			array(
				'id' => 'header_menu_color',
				'type' => 'color',
				'title' => esc_html__('Header Main Menu Color', 'glowify-wp'),
				'desc' => esc_html__('Choose color.', 'glowify-wp'),
				'default' => esc_attr__('#1b1b1b', 'glowify-wp'),
				'dependency' => array('overwrite_default_color', '==', 'true'),
			),
			array(
				'id' => 'header_menu_hover_color',
				'type' => 'color',
				'title' => esc_html__('Header Main Menu Hover Color', 'glowify-wp'),
				'desc' => esc_html__('Choose color.', 'glowify-wp'),
				'default' => esc_attr__('#aa8453', 'glowify-wp'),
				'dependency' => array('overwrite_default_color', '==', 'true'),
			),
			array(
				'id' => 'header_menu_dropdown_color',
				'type' => 'color',
				'title' => esc_html__('Header Main Menu Dropdown Color', 'glowify-wp'),
				'desc' => esc_html__('Choose color.', 'glowify-wp'),
				'default' => esc_attr__('#1b1b1b', 'glowify-wp'),
				'dependency' => array('overwrite_default_color', '==', 'true'),
			),
			array(
				'id' => 'header_menu_dropdown_hover_color',
				'type' => 'color',
				'title' => esc_html__('Header Main Menu Dropdown Hover Color', 'glowify-wp'),
				'desc' => esc_html__('Choose color.', 'glowify-wp'),
				'default' => esc_attr__('#aa8453', 'glowify-wp'),
				'dependency' => array('overwrite_default_color', '==', 'true'),
			),
		),
	));
	

	// Typography Settings
	CSF::createSection($glowify_wp_options, array(
		'title' => esc_html__('Typography settings', 'glowify-wp'),
		'icon' => 'fa fa-font',
		'fields' => array(
			array(
				'id' => 'body_font',
				'type' => 'typography',
				'title' => esc_html__('Body font', 'glowify-wp'),
				'desc' => 'Select Body font, font weight and font style from dropdown.',
				'text_align' => false,
				'text_transform' => false,
				'letter_spacing' => false,
				'color' => false,
				'default' => array(
					'font-family' => 'Prompt',
					'font-size' => '16',
					'line-height' => '24',
					'font-weight' => '400',
					'unit' => 'px',
					'type' => 'google',
				),
			),
			
			array(
				'id' => 'heading_font',
				'type' => 'typography',
				'title' => esc_html__('Heading font', 'glowify-wp'),
				'desc' => 'Select heading font, font weight and font style from dropdown.',
				'text_align' => false,
				'text_transform' => false,
				'letter_spacing' => false,
				'color' => false,
				'default' => array(
					'font-family' => 'Barlow',
					'font-size' => '56',
					'line-height' => '70',
					'font-weight' => '600',
					'unit' => 'px',
					'type' => 'google',
				),
			),
			array(
				'id' => 'heading_font2',
				'type' => 'typography',
				'title' => esc_html__('Heading font [h2]', 'glowify-wp'),
				'desc' => 'Select heading font, font weight and font style from dropdown.',
				'text_align' => false,
				'text_transform' => false,
				'letter_spacing' => false,
				'color' => false,
				'default' => array(
					'font-family' => 'Barlow',
					'font-size' => '42',
					'line-height' => '54',
					'font-weight' => '600',
					'unit' => 'px',
					'type' => 'google',
				),
			),
			
			array(
				'id'     	 => 'heading_font3',
				'type'   	 => 'typography',
				'title' 	 => esc_html__('Heading font [h3]', 'glowify-wp'),
				'desc'    => 'Select heading font, font weight and font style from dropdown.',
				'text_align' => false,
				'text_transform' => false,
				'letter_spacing' => false,
				'color' => false,
				'default'	 => array(
					'font-family' => 'Barlow',
					'font-size'   => '38',
					'line-height' => '52',
					'font-weight' => '600',
					'unit'        => 'px',
					'type'        => 'google',
				),
			),

			array(
				'id'     	 => 'heading_font4',
				'type'   	 => 'typography',
				'title' 	 => esc_html__('Heading font [h4]', 'glowify-wp'),
				'desc'    => 'Select heading font, font weight and font style from dropdown.',
				'text_align' => false,
				'text_transform' => false,
				'letter_spacing' => false,
				'color' => false,
				'default'	 => array(
					'font-family' => 'Barlow',
					'font-size'   => '24',
					'line-height' => '38',
					'font-weight' => '600',
					'unit'        => 'px',
					'type'        => 'google',

				),

			),

			array(
				'id'     	 => 'heading_font5',
				'type'   	 => 'typography',
				'title' 	 => esc_html__('Heading font [h5]', 'glowify-wp'),
				'desc'    => 'Select heading font, font weight and font style from dropdown.',
				'text_align' => false,
				'text_transform' => false,
				'letter_spacing' => false,
				'color' => false,
				'default'	 => array(
					'font-family' => 'Barlow',
					'font-size'   => '18',
					'line-height' => '30',
					'font-weight' => '600',
					'unit'        => 'px',
					'type'        => 'google',
				),

			),

			array(
				'id'     	 => 'heading_font6',
				'type'   	 => 'typography',
				'title' 	 => esc_html__('Heading font [h6]', 'glowify-wp'),
				'desc'    => 'Select heading font, font weight and font style from dropdown.',
				'text_align' => false,
				'text_transform' => false,
				'letter_spacing' => false,
				'color' => false,
				'default'	 => array(
					'font-family' => 'Barlow',
					'font-size'   => '16',
					'line-height' => '26',
					'font-weight' => '600',
					'unit'        => 'px',
					'type'        => 'google',
				),
			),

			array(
				'id' => 'body_other_font',
				'type' => 'typography',
				'title' => esc_html__('Body other font', 'glowify-wp'),
				'desc' => 'Select heading font, font weight and font style from dropdown.',
				'text_align' => false,
				'text_transform' => false,
				'letter_spacing' => false,
				'color' => false,
				'default' => array(
					'font-family' => 'Prompt',
					'font-size' => '16',
					'line-height' => '24',
					'font-weight' => '600',
					'unit' => 'px',
					'type' => 'google',
				),
			),
		),
	));

	// Header Settings
	CSF::createSection($glowify_wp_options, array(
		'id' => 'layout_tabs', // Set a unique slug-like ID
		'title' => __('Layout Settings', 'glowify-wp'),
		'icon' => 'fas fa-bars',
	));

	// Blog Settings
	CSF::createSection($glowify_wp_options, array(
		'parent' => 'layout_tabs',
		'title' => esc_html__('Blog Page settings', 'glowify-wp'),
		'icon' => 'fa fa-edit',
		'fields' => array(
			array(
				'id' => 'blog_page_layout',
				'type' => 'select',
				'title' => esc_html__('Blog Page Layout', 'glowify-wp'),
				'options' => array(
					'left-sidebar' => esc_attr__('Left Sidebar', 'glowify-wp'),
					'right-sidebar' => esc_attr__('Right Sidebar', 'glowify-wp'),
					'full-width' => esc_attr__('Full Width', 'glowify-wp')
				),
				'default' => 'right-sidebar',
				'desc' => esc_attr__('Select Blog Page layout.', 'glowify-wp'),
			),
			array(
				'id' => 'enable_blog_bc',
				'type' => 'switcher',
				'title' => esc_html__('Blog Breadcrumb', 'glowify-wp'),
				'desc' => esc_html__('Do you want to show blog breadcrumb? Select ON option from switcher.', 'glowify-wp'),
				'default' => true,
			),
			array(
				'id' => 'blog_main_bc_bg',
				'type' => 'media',
				'title' => esc_html__('Background Image', 'glowify-wp'),
				'desc' => esc_html__('Upload Blog Background Image', 'glowify-wp'),
				'dependency' => array('enable_blog_bc', '==', 'true'),
			),
			array(
				'id' => 'blog_bc_custom_title',
				'type' => 'text',
				'title' => esc_html__('Blog Custom Title?', 'glowify-wp'),
				'desc' => esc_html__('Blog page title', 'glowify-wp'),
				'dependency' => array('enable_blog_bc', '==', 'true'),
			),
			array(
				'id' => 'blog_show_author_name',
				'type' => 'switcher',
				'desc' => esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title' => esc_html__('Show post author name?', 'glowify-wp'),
				'default' => true,
			),
			array(
				'id' => 'blog_show_post_date',
				'type' => 'switcher',
				'desc' => esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title' => esc_html__('Show post date?', 'glowify-wp'),
				'default' => true,
			),
			array(
				'id' => 'blog_show_post_cat',
				'type' => 'switcher',
				'desc' => esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title' => esc_html__('Show post category?', 'glowify-wp'),
				'default' => true,
			),
		)
	));

	// Blog Archive Settings
	CSF::createSection($glowify_wp_options, array(
		'parent' => 'layout_tabs',
		'title' => esc_html__('Archive Page settings', 'glowify-wp'),
		'icon' => 'fa fa-flag',
		'fields' => array(
			array(
				'id' => 'blog_archive_layout',
				'type' => 'select',
				'title' => esc_html__('Archive Page Layout', 'glowify-wp'),
				'options' => array(
					'left-sidebar' => esc_attr__('Left Sidebar', 'glowify-wp'),
					'right-sidebar' => esc_attr__('Right Sidebar', 'glowify-wp'),
					'full-width' => esc_attr__('Full Width', 'glowify-wp')
				),
				'default' => 'right-sidebar',
				'desc' => esc_html__('Select archive layout.', 'glowify-wp'),
			),
			array(
				'id' => 'enable_archive_bg',
				'type' => 'switcher',
				'title' => esc_html__('Archive Breadcrumb', 'glowify-wp'),
				'desc' => esc_html__('Do you want to show blog archive breadcrumb? Select ON option from switcher.', 'glowify-wp'),
				'default' => true,
			),
			array(
				'id' => 'blog_archive_bc_bg',
				'type' => 'media',
				'title' => esc_html__('Background Image', 'glowify-wp'),
				'desc' => esc_html__('Upload Blog Background Image', 'glowify-wp'),
				'dependency' => array('enable_archive_bg', '==', 'true'),
			),
			array(
				'id' => 'archive_show_author_name',
				'type' => 'switcher',
				'desc' => esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title' => esc_html__('Show post author name?', 'glowify-wp'),
				'default' => true,
			),
			array(
				'id' => 'archive_show_post_date',
				'type' => 'switcher',
				'desc' => esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title' => esc_html__('Show post date?', 'glowify-wp'),
				'default' => true,
			),
			array(
				'id' => 'archive_show_post_cat',
				'type' => 'switcher',
				'desc' => esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title' => esc_html__('Show post comment?', 'glowify-wp'),
				'default' => true,
			),
		)
	));



	// Blog Single Settings

	CSF::createSection( $glowify_wp_options, array(

		'parent' => 'layout_tabs',
		'title'      => esc_html__('Blog Single page settings', 'glowify-wp'),
		'icon'		 => 'fas fa-bars',
		'fields' => array(

			array(
				'id'       => 'post_default_layout',
				'type'     => 'select',
				'title'    => esc_html__('Layout', 'glowify-wp'),
				'options'  => array(
					'full-width'   => esc_attr__('Full Width', 'glowify-wp'),
					'left-sidebar'  => esc_attr__('Left Sidebar', 'glowify-wp'),
					'right-sidebar' => esc_attr__('Right Sidebar', 'glowify-wp')
				),

				'default'  => 'right-sidebar',
				'desc' => esc_html__('Select single post default layout. You can override this settings in individual post.', 'glowify-wp'),

			),

			array(

				'id'      => 'single_show_author_name',
				'type'    => 'switcher',
				'desc'	=> esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title'   => esc_html__('Show post author name?', 'glowify-wp'),
				'default' => true,
			),

			array(
				'id'      => 'single_show_post_date',
				'type'    => 'switcher',
				'desc'	=> esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title'   => esc_html__('Show post date?', 'glowify-wp'),
				'default' => true,

			),

			array(
				'id'      => 'single_show_post_comment',
				'type'    => 'switcher',
				'desc'	=> esc_html__('You can Enable or Disable options from the switcher.', 'glowify-wp'),
				'title'   => esc_html__('Show post comment?', 'glowify-wp'),
				'default' => true,
			),

		)

	) );


	// Shop Settings
	CSF::createSection($glowify_wp_options, array(
		'parent' => 'layout_tabs',
		'title' => esc_html__('Shop Variations', 'glowify-wp'),
		'icon' => 'fas fa-shopping-basket',
		'fields' => array(
			
			array(
				'id' => 'shop_style',
				'type' => 'select',
				'title' => esc_html__('Shop Style', 'glowify-wp'),
				'options' => array(
					'default' => esc_attr__('Default', 'glowify-wp'),
					'v2' => esc_attr__('Style V2', 'glowify-wp'),
					'v3' => esc_attr__('Style V3', 'glowify-wp'),
					'v4' => esc_attr__('Style V4', 'glowify-wp'),
					'v5' => esc_attr__('Style V5', 'glowify-wp'),
					'v6' => esc_attr__('Style V6', 'glowify-wp'),
				),
				'default' => 'default',
			),

			array(
				'id' => 'grid_style',
				'type' => 'select',
				'title' => esc_html__('Grid Style', 'glowify-wp'),
				'options' => array(
					'default' => esc_attr__('Default', 'glowify-wp'),
					'v2' => esc_attr__('Style V2', 'glowify-wp'),
					'default-2-column' => esc_attr__('Style V3', 'glowify-wp'),
					'default-3-column' => esc_attr__('Style V4', 'glowify-wp'),
					'default-4-column' => esc_attr__('Style V5', 'glowify-wp'),
					'v4' => esc_attr__('Style V6', 'glowify-wp'),
				),
				'default' => 'default',
			),

			array(
				'id' => 'bread_style',
				'type' => 'select',
				'title' => esc_html__('Page Banner Style', 'glowify-wp'),
				'options' => array(
					'default' => esc_attr__('Default', 'glowify-wp'),
					'classic' => esc_attr__('Classic', 'glowify-wp'),
				),
				'default' => 'default',
			),

			array(
				'id' => 'side_position',
				'type' => 'select',
				'title' => esc_html__('Sidebar Position', 'glowify-wp'),
				'options' => array(
					'default' => esc_attr__('Default', 'glowify-wp'),
					'left' => esc_attr__('Left', 'glowify-wp'),
					'right' => esc_attr__('Right', 'glowify-wp'),
					'top-filter' => esc_attr__('Top Filter', 'glowify-wp'),
				),
				'default' => 'default',
			),

			
			array(
				'id'    => 'enable_default_sidebar',
				'type'  => 'switcher',
				'default'  => true,
				'title' => esc_html__('Enable Default Sidebar?', 'glowify-wp'),
				'desc' => esc_html__('Please select "ON" from switcher.', 'glowify-wp'),
			),

			// array(
			// 	'id' => 'shop_page_layout',
			// 	'type' => 'select',
			// 	'title' => esc_html__('Shop Page Layout', 'glowify-wp'),
			// 	'options' => array(
			// 		'left-sidebar' => esc_attr__('Left Sidebar', 'glowify-wp'),
			// 		'right-sidebar' => esc_attr__('Right Sidebar', 'glowify-wp'),
			// 		'full-width' => esc_attr__('No Sidebar', 'glowify-wp')
			// 	),
			// 	'default' => 'right-sidebar',
			// 	'desc' => esc_attr__('Select Shop Page layout.', 'glowify-wp'),
			// ),
		)
	));


	// Shop Settings
	CSF::createSection($glowify_wp_options, array(
		'parent' => 'layout_tabs',
		'title' => esc_html__('Shop Page settings', 'glowify-wp'),
		'icon' => 'fas fa-shopping-basket',
		'fields' => array(
			
			array(
				'id'    => 'enable_shop_logo',
				'type'  => 'switcher',
				'default'  => false,
				'title' => esc_html__('Use logo', 'glowify-wp'),
				'desc' => esc_html__('You can use image logo instead of text logo. Please select "ON" from switcher.', 'glowify-wp'),
			),

			array(
				'id'    => 'shop_side_logo',
				'type'  => 'media',
				'title' => esc_html__('Upload header logo', 'glowify-wp'),
				'desc' => esc_html__('Upload your favorite logo by using add image option.', 'glowify-wp'),
				'dependency' => array( 'enable_shop_logo', '==', 'true' )
			),

			array(
				'id' => 'enable_shop_bc',
				'type' => 'switcher',
				'title' => esc_html__('Shop Breadcrumb', 'glowify-wp'),
				'desc' => esc_html__('Do you want to show shop breadcrumb? Select ON option from switcher.', 'glowify-wp'),
				'default' => true,
			),
			array(
				'id' => 'shop_bc_bg',
				'type' => 'media',
				'title' => esc_html__('Background Image', 'glowify-wp'),
				'desc' => esc_html__('Upload Shop Background Image', 'glowify-wp'),
				'dependency' => array('enable_shop_bc', '==', 'true'),
			),
			array(
				'id' => 'shop_bc_custom_title',
				'type' => 'text',
				'title' => esc_html__('Shop Custom Title?', 'glowify-wp'),
				'desc' => esc_html__('Shop page title', 'glowify-wp'),
				'dependency' => array('enable_shop_bc', '==', 'true'),
			),

			array(
				'id' => 'enable_shop_banner',
				'type' => 'select',
				'title' => esc_html__('Shop banner', 'glowify-wp'),
				'options' => array(
					'default' => esc_attr__('Default', 'glowify-wp'),
					'show' => esc_attr__('Show', 'glowify-wp'),
					'hide' => esc_attr__('Hide', 'glowify-wp')
				),
				'default' => 'default',
			),

			array(
				'id'       => 'shop_banner',
				'type'     => 'group',
				'title'    => esc_html__('Banner List', 'glowify-wp'),
				'fields'   => array(
					array(
						'id'    => 'banner',
						'type'  => 'upload',
						'title' => esc_html__('Upload Banner', 'glowify-wp'),
					),
					array(
						'id'    => 'link',
						'type'  => 'link',
						'title' => esc_html__('Type Banner URL', 'glowify-wp'),
					),
				),
			),
		)
	));

	// Shop Settings
	CSF::createSection($glowify_wp_options, array(
		'parent' => 'layout_tabs',
		'title' => esc_html__('My Account settings', 'glowify-wp'),
		'icon' => 'fas fa-shopping-basket',
		'fields' => array(
			
			array(
				'id'    => 'enable_welcome_img',
				'type'  => 'switcher',
				'default'  => false,
				'title' => esc_html__('Welcome Image', 'glowify-wp'),
				'desc' => esc_html__('You can use image logo instead of text logo. Please select "ON" from switcher.', 'glowify-wp'),
			),
			array(
				'id' => 'shop_wc_image',
				'type' => 'media',
				'title' => esc_html__('Welcome Image', 'glowify-wp'),
				'desc' => esc_html__('Upload Shop Welcome Image', 'glowify-wp'),
				'dependency' => array('enable_welcome_img', '==', 'true'),
			),
		)
	));

	CSF::createSection($glowify_wp_options, array(
		'parent' => 'layout_tabs',
		'title' => esc_html__('Social Share', 'glowify-wp'),
		'icon' => 'fa-solid fas fa-share',
		'fields' => array(
			array(
				'id' => 'enable_social_share',
				'type' => 'switcher',
				'title' => esc_html__('Enable Social?', 'glowify-wp'),
				'desc' => esc_html__('You can enable disbale social share for donation', 'glowify-wp'),
				'default' => true,
			),
		
			array(
				'id' => 'social_title',
				'type' => 'text',
				'title' => esc_html__('Type  Title', 'glowify-wp'),
				'desc' => esc_html__('Social Share', 'glowify-wp'),
				'default' => esc_html__('Share This Opportunity', 'glowify-wp'),
				'dependency' => array('enable_social_share', '==', 'true'),
			),
		
			array(
				'id'       => 'social_list',
				'type'     => 'group',
				'title'    => esc_html__('Social List', 'glowify-wp'),
				'dependency' => array('enable_social_share', '==', 'true'),
				'fields'   => array(
					array(
						'id'    => 'icon',
						'type'  => 'icon',
						'title' => esc_html__('Upload Social Icon', 'glowify-wp'),
					),
					array(
						'id'    => 'link',
						'type'  => 'link',
						'title' => esc_html__('Type Share URL', 'glowify-wp'),
						'default'  => array(
							'url' => '#', // Default URL
							'target' => '_blank' // Default target
						),
					),
				),
			),
			
		)
	));


	
	
	// Footer Settings
	CSF::createSection($glowify_wp_options, array(
		'id' => 'layout_Footer', // Set a unique slug-like ID
		'title' => __('Footer Settings', 'glowify-wp'),
		'icon' => 'fas fa-clone',
	));

	// Footer Settings
	CSF::createSection($glowify_wp_options, array(
		'parent' => 'layout_Footer', // The slug id of the parent section
		'title' => esc_html__('Footer settings', 'glowify-wp'),
		'icon' => 'fa fa-image',
		'fields' => array(
			array(
				'id' => 'enable_footer',
				'type' => 'switcher',
				'title' => 'Enable Footer?',
				'desc' => esc_html__('Do you want to use default footer? Select ON option from switcher.', 'glowify-wp'),
				'default' => true,
			),
			array(
				'id' => 'footer_copyright_text',
				'type' => 'textarea',
				'default' => '&copy; Copyright <a href="#">Glowify</a>. Developed By <a target="_blank" href="#">Laralink</a>',
				'title' => __('Copyright Text', 'glowify-wp'),
				'desc' => __('Type copyright text here.', 'glowify-wp'),
				'dependency' => array('enable_footer', '==', 'true')
			),
		)
	));

	// Footer Settings
	CSF::createSection($glowify_wp_options, array(
		'id' => 'theme_settings', // Set a unique slug-like ID
		'title' => __('Theme Settings', 'glowify-wp'),
		'icon' => 'fas fa-cog',
	));


	// Theme Settings
	CSF::createSection($glowify_wp_options, array(
		'parent' => 'theme_settings', // The slug id of the parent section
		'title' => 'Global Settings',
		'icon' => 'fas fa-cog',
		'fields' => array(
			array(
				'id' => 'enable_preloader',
				'type' => 'switcher',
				'title' => 'Enable Preloader?',
				'desc' => esc_html__('Do you want to use preloader? Select ON option from switcher.', 'glowify-wp'),
				'default' => true
			),
			array(
				'id' => 'enable_scroll_up',
				'type' => 'switcher',
				'title' => 'Enable Scroll Up?',
				'desc' => esc_html__('Do you want to enable scroll up features? Select ON option from switcher.', 'glowify-wp'),
				'default' => true
			),
		)
	));

	// Theme Settings
	CSF::createSection($glowify_wp_options, array(
		'parent' => 'theme_settings', // The slug id of the parent section
		'title' => 'Colors Settings',
		'icon' => 'fas fa-cog',
		'fields' => array(
			array(
				'id' => 'theme_primary_color',
				'type' => 'color',
				'title' => esc_html__('Global Primary color', 'glowify-wp'),
				'desc' => esc_html__('Choose from color picker.', 'glowify-wp'),
				'default' => esc_attr__('#e61f7f', 'glowify-wp'),
			),
			array(
				'id' => 'theme_secondary_color',
				'type' => 'color',
				'title' => esc_html__('Global Secondary color', 'glowify-wp'),
				'desc' => esc_html__('Choose from color picker.', 'glowify-wp'),
				'default' => esc_attr__('#583fa8', 'glowify-wp'),
			),
			array(
				'id' => 'theme_body_color',
				'type' => 'color',
				'title' => esc_html__('Global Body color', 'glowify-wp'),
				'desc' => esc_html__('Choose from color picker.', 'glowify-wp'),
				'default' => esc_attr__('#636363', 'glowify-wp'),
			),
			array(
				'id' => 'theme_heading_color',
				'type' => 'color',
				'title' => esc_html__('Global Heading color', 'glowify-wp'),
				'desc' => esc_html__('Choose from color picker.', 'glowify-wp'),
				'default' => esc_attr__('#303030', 'glowify-wp'),
			),
		)
	));


	// Scripts Settings
	CSF::createSection($glowify_wp_options, array(
		'title' => 'Script settings',
		'icon' => 'fa fa-upload',
		'fields' => array(
			array(
				'id' => 'glowify_wp_custom_css',
				'type' => 'textarea',
				'sanitize' => false,
				'title' => esc_html__('Custom CSS', 'glowify-wp'),
				'desc' => esc_html__('Add your own css here', 'glowify-wp'),
			),
			array(
				'id' => 'glowify_wp_head_scripts',
				'type' => 'textarea',
				'sanitize' => false,
				'title' => esc_html__('Head Scripts', 'glowify-wp'),
				'desc' => esc_html__('Scripts goes before closing </head>', 'glowify-wp'),
			),
			array(
				'id' => 'glowify_wp_body_scripts',
				'type' => 'textarea',
				'sanitize' => false,
				'title' => esc_html__('Footer Scripts', 'glowify-wp'),
				'desc' => esc_html__('Scripts goes just before </body>', 'glowify-wp'),
			),
		)
	));

	// Export Import Settings
	CSF::createSection($glowify_wp_options, array(
		'title' => 'Export & Import',
		'icon' => 'fas fa-download',
		'fields' => array(
			array(
				'type' => 'notice',
				'class' => 'warning',
				'content' => 'You can save your current options. Download a Backup and Import.',
			),
			array(
				'type' => 'backup',
			),
		)
	));

}

	