<?php

Kirki::add_section( 'code_edit_options', array(
	'title' => esc_html__( 'Custom Code', 'newshit' ),
	'panel' => 'newshit_theme_options',
) );


new \Kirki\Field\Checkbox_Switch(
	[
		'settings' => 'enable_js_code',
		'label'    => esc_html__( 'Enable jQuery Code', 'newshit' ),
		'section'  => 'code_edit_options',
		'default'  => 'off',
		'choices'  => [
			'on'  => esc_html__( 'Enable', 'newshit' ),
			'off' => esc_html__( 'Disable', 'newshit' ),
		],
	]
);
new \Kirki\Field\Radio_Image(
	[
		'settings'    => 'code_pro',
		'label'       => esc_html__( 'Purchase pro For this Feature', 'newshit' ),
		'description' => newshit_purchase_link(),
		'section'     => 'code_edit_options',
		'default'     => '',
		'transport'   => 'auto',
		'choices'     => [
			'headcodepro'   => get_template_directory_uri() . '/assets/image/pro/js.jpg',
		],
	]
);