<?php

Kirki::add_section( 'page_options', array(
	'title' => esc_html__( 'Page Options', 'newscope' ),
	'panel' => 'newscope_option_layout',
) );

new \Kirki\Field\Select(
	[
		'settings' => 'page_layout',
		'label'    => esc_html__( 'Select Page Layout', 'newscope' ),
		'section'  => 'page_options',
		'default'  => 'right-sidebar',
		'choices'  => [
			'full-width'    => esc_html__( 'Full Width', 'newscope' ),
			'left-sidebar'  => esc_html__( 'Left Sidebar', 'newscope' ),
			'right-sidebar' => esc_html__( 'Right Sidebar', 'newscope' ),
		],
	]
);

new \Kirki\Field\Select(
	[
		'settings' => 'page_title_tag',
		'label'    => esc_html__( 'Select Page Title Tag', 'newscope' ),
		'section'  => 'page_options',
		'default'  => 'h2',
		'choices'  => [
			'h1'    => esc_html__( 'H1', 'newscope' ),
			'h2'    => esc_html__( 'H2', 'newscope' ),
			'h3'    => esc_html__( 'H3', 'newscope' ),
			'h4'    => esc_html__( 'H4', 'newscope' ),
			'h5'    => esc_html__( 'H5', 'newscope' ),
			'h6'    => esc_html__( 'H6', 'newscope' ),
			'p'    	=> esc_html__( 'p', 'newscope' ),
			'span'    	=> esc_html__( 'Span', 'newscope' ),
		],
	]
);



new \Kirki\Field\Checkbox_Switch(
	[
		'settings' => 'page_breadcrumb_enable',
		'label'    => esc_html__( 'Enable Breadcrumb', 'newscope' ),
		'section'  => 'page_options',
		'default'  => 'on',
		'choices'  => [
			'on'  => esc_html__( 'Enable', 'newscope' ),
			'off' => esc_html__( 'Disable', 'newscope' ),
		],
	]
);

new \Kirki\Field\Checkbox_Switch(
	[
		'settings' => 'page_comment_section',
		'label'    => esc_html__( 'Enable Comment Box', 'newscope' ),
		'section'  => 'page_options',
		'default'  => 'on',
		'choices'  => [
			'on'  => esc_html__( 'Enable', 'newscope' ),
			'off' => esc_html__( 'Disable', 'newscope' ),
		],
	]
);