<?php

Kirki::add_config( 'theme_config', array(
	'capability'  => 'edit_theme_options',
	'option_type' => 'theme_mod',
) );

/**
 * General Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/header/header-settings.php';


/**
 * General Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/front-page/front-page-settings.php';

/**
 * Theme Options
 */

Kirki::add_panel( 'newscope_theme_options', array(
	'title'    => esc_html__( 'Theme Options', 'newscope' ),
	'priority' => 11
) );


/**
 * General Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/theme-general.php';

/**
 * Typography Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/typography-options.php';

/**
 * Theme Color Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/theme-color-options.php';


/**
 * Footer Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/footer-options.php';

/**
 * Copyright Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/copyright-options.php';

/**
 * Code Editor Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/code-editor-options.php';

/**
 * Options And Layout
 */

Kirki::add_panel( 'newscope_option_layout', array(
	'title'    => esc_html__( 'Page And Layout', 'newscope' ),
	'priority' => 12
) );

/**
 * Blog Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/blog-options.php';

/**
 * Single Page Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/single-page-options.php';

/**
 * Page Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/page-options.php';

/**
 * Archive Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/archive-options.php';

/**
 * Search Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/search-options.php';

/**
 * 404 Page Options
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/error-page.php';

Kirki::add_panel( 'newscope_theme_shop', array(
	'title'    => esc_html__( 'Shop Options', 'newscope' ),
	'priority' => 13
) );

/**
 * Shop Page
 */
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/shop/shop-page.php';
require NEWSCOPE_INC_DIR . 'kirki-customize/kirki-options/shop/single-shop.php';