<?php
Kirki::add_section( 'typography_options', array(
	'title' => esc_html__( 'Typography Options', 'newscope' ),
	'panel' => 'newscope_theme_options',
) );
new \Kirki\Field\Typography(
	[
		'settings'    => 'body_typography',
		'label'       => esc_html__( 'body Options', 'newscope' ),
		'section'     => 'typography_options',
		'priority'    => 1,
		'transport'   => 'auto',
		'default'     => [
			'font-family'     => 'Cabin',
			'variant'         => 'regular',
			'font-style'      => 'normal',
			'color'           => '#7B7E86',
			'font-size'       => '16px',
			'line-height'     => '27px',
			'letter-spacing'  => '0',
			'text-transform'  => 'none',
			'text-decoration' => 'none',
		],
		'choices' => [
			'fonts' => [
				'google' => [ 'Cabin','Roboto', 'Open Sans', 'Lato', 'Noto Serif', 'Noto Sans' ],
			],
		],
		'output'      => [
			[
				'element' => 'body',
			],
		],
	]
);

new \Kirki\Field\Typography(
	[
		'settings'  => 'h1_typography',
		'label'     => esc_html__( 'H1 Typography', 'newscope' ),
		'section'   => 'typography_options',
		'transport' => 'auto',
		'priority'    => 1,
		'default'     => [
			'font-family'     => 'Playfair Display',
			'variant'         => 'regular',
			'font-style'      => 'normal',
			'color'           => '',
			'font-size'       => '60px',
			'line-height'     => '70px',
			'letter-spacing'  => '',
			'text-transform'  => '',
			'text-decoration' => '',
		],
		'choices' => [
			'fonts' => [
				'google' => [ 'Playfair Display', 'Cabin','Roboto', 'Open Sans', 'Lato', 'Noto Serif', 'Noto Sans' ],
			],
		],
		'output'    => [
			[
				'element' => 'h1',
			],
		],
	]
);

new \Kirki\Field\Typography(
	[
		'settings'  => 'h2_typography',
		'label'     => esc_html__( 'H2 Typography', 'newscope' ),
		'section'   => 'typography_options',
		'transport' => 'auto',
		'priority'    => 1,
		'default'     => [
			'font-family'     => 'Playfair Display',
			'variant'         => 'regular',
			'font-style'      => 'normal',
			'color'           => '',
			'font-size'       => '48px',
			'line-height'     => '58px',
			'letter-spacing'  => '',
			'text-transform'  => '',
			'text-decoration' => '',
		],
		'choices' => [
			'fonts' => [
				'google' => [ 'Playfair Display', 'Cabin','Roboto', 'Open Sans', 'Lato', 'Noto Serif', 'Noto Sans' ],
			],
		],
		'output'    => [
			[
				'element' => 'h2',
			],
		],
	]
);

new \Kirki\Field\Typography(
	[
		'settings'  => 'h3_typography',
		'label'     => esc_html__( 'H3 Typography', 'newscope' ),
		'section'   => 'typography_options',
		'transport' => 'auto',
		'priority'    => 1,
		'default'     => [
			'font-family'     => 'Playfair Display',
			'variant'         => 'regular',
			'font-style'      => 'normal',
			'color'           => '',
			'font-size'       => '36px',
			'line-height'     => '46px',
			'letter-spacing'  => '',
			'text-transform'  => '',
			'text-decoration' => '',
		],
		'choices' => [
			'fonts' => [
				'google' => [ 'Playfair Display', 'Cabin','Roboto', 'Open Sans', 'Lato', 'Noto Serif', 'Noto Sans' ],
			],
		],
		'output'    => [
			[
				'element' => 'h3',
			],
		],
	]
);

new \Kirki\Field\Typography(
	[
		'settings'  => 'h4_typography',
		'label'     => esc_html__( 'H4 Typography', 'newscope' ),
		'section'   => 'typography_options',
		'transport' => 'auto',
		'priority'    => 1,
		'default'     => [
			'font-family'     => 'Playfair Display',
			'variant'         => 'regular',
			'font-style'      => 'normal',
			'color'           => '',
			'font-size'       => '30px',
			'line-height'     => '40px',
			'letter-spacing'  => '',
			'text-transform'  => '',
			'text-decoration' => '',
		],
		'choices' => [
			'fonts' => [
				'google' => [ 'Playfair Display', 'Cabin','Roboto', 'Open Sans', 'Lato', 'Noto Serif', 'Noto Sans' ],
			],
		],
		'output'    => [
			[
				'element' => 'h4',
			],
		],
	]
);

new \Kirki\Field\Typography(
	[
		'settings'  => 'h5_typography',
		'label'     => esc_html__( 'H5 Typography', 'newscope' ),
		'section'   => 'typography_options',
		'transport' => 'auto',
		'priority'    => 1,
		'default'     => [
			'font-family'     => 'Playfair Display',
			'variant'         => 'regular',
			'font-style'      => 'normal',
			'color'           => '',
			'font-size'       => '24px',
			'line-height'     => '34px',
			'letter-spacing'  => '',
			'text-transform'  => '',
			'text-decoration' => '',
		],
		'choices' => [
			'fonts' => [
				'google' => [ 'Playfair Display', 'Cabin','Roboto', 'Open Sans', 'Lato', 'Noto Serif', 'Noto Sans' ],
			],
		],
		'output'    => [
			[
				'element' => 'h5',
			],
		],
	]
);

new \Kirki\Field\Typography(
	[
		'settings'  => 'h6_typography',
		'label'     => esc_html__( 'H6 Typography', 'newscope' ),
		'section'   => 'typography_options',
		'transport' => 'auto',
		'priority'    => 1,
		'default'     => [
			'font-family'     => 'Playfair Display',
			'variant'         => 'regular',
			'font-style'      => 'normal',
			'color'           => '',
			'font-size'       => '20px',
			'line-height'     => '30px',
			'letter-spacing'  => '',
			'text-transform'  => '',
			'text-decoration' => '',
		],
		'choices' => [
			'fonts' => [
				'google' => [ 'Playfair Display', 'Cabin','Roboto', 'Open Sans', 'Lato', 'Noto Serif', 'Noto Sans' ],
			],
		],
		'output'    => [
			[
				'element' => 'h6',
			],
		],
	]
);
new \Kirki\Field\Radio_Image(
	[
		'settings'    => 'typography_pro',
		'label'       => esc_html__( 'Purchase Pro For Add Unlimited Fonts', 'newscope' ),
		'description' => newscope_purchase_link(),
		'section'     => 'typography_options',
		'default'     => '',
		'transport'   => 'auto',
		'priority'        => 1,
	]
);