<?php
/*
 * General Section
*/

$this->sections[] = array(
	'title'  => esc_html__( 'Typography', 'ave' ),
	'icon'   => 'el el-text-height'
);

if ( !class_exists( 'Liquid_Elementor_Addons' ) && !defined( 'ELEMENTOR_VERSION' )){	

	// Body
	$this->sections[] = array(
		'title'      => esc_html__( 'Body Typography', 'ave' ),
		'subsection' => true,
		'fields'     => array(

			array(
				'id'             => 'body_typography',
				'type'           => 'typography',
				'title'          => esc_html__( 'Body Typography Settings', 'ave' ),
				'subtitle'       => esc_html__( 'Manage the typography for all body text.', 'ave' ),
				'letter-spacing' => true,
				'text-align'     => false,
				'compiler'       => true,
				'units'          => '%',
				'default'        => array(
					'font-family'    => 'Roboto',
					'font-size'      => '1em',
					'font-weight'    => '400',
					'line-height'    => '1.7em',
					'letter-spacing' => '0',
					'color'          => '#808291',
				)
			),		
		)
	);

	// Single Post
	$this->sections[] = array(
		'title'      => esc_html__( 'Single Post Title Typography', 'ave' ),
		'subsection' => true,
		'fields'     => array(

			array(
				'id'             => 'single_title_typography',
				'type'           => 'typography',
				'title'          => esc_html__( 'Typography of Single Posts Title', 'ave' ),
				'subtitle'       => esc_html__( 'Manage the typography of single post title.', 'ave' ),
				'letter-spacing' => true,
				'text-align'     => false,
				'compiler'       => true,
				'units'          => '%',
				'default'        => array(
					'font-family'    => 'Poppins',
					'font-size'      => '14px',
					'font-weight'    => '400',
					'line-height'    => '2',
					'letter-spacing' => '0',
					'color'          => '#737373',
				)
			),		
		)
	);


	// Headers
	$this->sections[] = array(
		'title'      => esc_html__( 'Headers Typography', 'ave' ),
		'subsection' => true,
		'fields'     => array(

			'h1_typography' => array(
				'id'             => 'h1_typography',
				'type'           => 'typography',
				'title'          => esc_html__( 'H1 Headers Typography', 'ave' ),
				'subtitle'       => esc_html__( 'Manage the typography for all H1 Headers.', 'ave' ),
				'letter-spacing' => true,
				'text-align'     => false,
				'compiler'       => true,
				'units'          => '%',
				'default'        => array(
					'font-family'    => 'Roboto',
					'font-size'      => '52px',
					'font-weight'    => '500',
					'line-height'    => '1.2em',
					'letter-spacing' => '0',
					'color'          => '#181b31'
				)
			),

			'h2_typography' => array(
				'id'              => 'h2_typography',
				'title'           => esc_html__( 'H2 Headers Typography', 'ave' ),
				'subtitle'        => esc_html__( 'Manage the typography for all H2 Headers.', 'ave' ),
				'type'            => 'typography',
				'letter-spacing'  => true,
				'text-align'      => false,
				'compiler'        => true,
				'units'           => '%',
				'default'         => array(
					'font-family'    => 'Roboto',
					'font-size'      => '40px',
					'font-weight'    => '500',
					'line-height'    => '1.2em',
					'letter-spacing' => '0',
					'color'          => '#181b31'
				)
			),

			'h3_typography' => array(
				'id'             => 'h3_typography',
				'type'           => 'typography',
				'title'          => esc_html__( 'H3 Headers Typography', 'ave' ),
				'subtitle'       => esc_html__( 'Manage the typography for all H3 Headers.', 'ave' ),
				'letter-spacing' => true,
				'text-align'     => false,
				'compiler'       => true,
				'units'          => '%',
				'default'        => array(
					'font-family'    => 'Roboto',
					'font-size'      => '32px',
					'font-weight'    => '500',
					'line-height'    => '1.2em',
					'letter-spacing' => '0',
					'color'          => '#181b31'
				)
			),

			'h4_typography' => array(
				'id'             => 'h4_typography',
				'type'           => 'typography',
				'title'          => esc_html__( 'H4 Headers Typography', 'ave' ),
				'subtitle'       => esc_html__( 'Manage the typography for all H4 Headers.', 'ave' ),
				'letter-spacing' => true,
				'text-align'     => false,
				'compiler'       => true,
				'units'          => '%',
				'default'        => array(
					'font-family'    => 'Roboto',
					'font-size'      => '25px',
					'font-weight'    => '500',
					'line-height'    => '1.2em',
					'letter-spacing' => '0',
					'color'          => '#181b31'
				)
			),

			'h5_typography' => array(
				'id'             => 'h5_typography',
				'type'           => 'typography',
				'title'          => esc_html__( 'H5 Headers Typography', 'ave' ),
				'subtitle'       => esc_html__( 'Manage the typography for all H5 Headers.', 'ave' ),
				'letter-spacing' => true,
				'text-align'     => false,
				'compiler'       => true,
				'units'          => '%',
				'default'        => array(
					'font-family'    => 'Roboto',
					'font-size'      => '21px',
					'font-weight'    => '500',
					'line-height'    => '1.2em',
					'letter-spacing' => '0',
					'color'          => '#181b31'
				)
			),

			'h6_typography' => array(
				'id'             => 'h6_typography',
				'type'           => 'typography',
				'title'          => esc_html__( 'H6 Headers Typography', 'ave' ),
				'subtitle'       => esc_html__( 'Manage the typography for all H6 Headers.', 'ave' ),
				'letter-spacing' => true,
				'text-align'     => false,
				'compiler'       => true,
				'units'          => '%',
				'default'        => array(
					'font-family'    => 'Roboto',
					'font-size'      => '18px',
					'font-weight'    => '500',
					'line-height'    => '1.2em',
					'letter-spacing' => '0',
					'color'          => '#181b31'
				)
			),
		)
	);
}
// Custom Fonts
$this->sections[] = array(
	'title'      => esc_html__( 'Custom fonts', 'ave' ),
	'subsection' => true,
	'fields'     => array(
		
		array(
			'id' => 'liquid_custom_fonts',
			'type' => 'repeater',
			'title'    => esc_html__( 'Add Custom Fonts', 'ave' ),
			'subtitle' => esc_html__( 'Upload custom font. All files are not necessary but are recommended for full browser support. You can upload as many custom fonts as you need. Click the "Add" button for additional upload boxes.', 'ave' ),
			'desc' => esc_html__( '', 'ave' ),
			'sortable' => false,
			'group_values' => false,
			'fields' => array(
				
				array(
					'id' => 'custom_font_title',
					'type' => 'text',
					'title'    => esc_html__( 'Font title', 'ave' ),
					'placeholder' => esc_html__( '', 'ave' ),
					'subtitle' => esc_html__( '', 'ave' ),
				),
				array(
					'id'    => 'custom_font_woff2',
					'type'  => 'text',	
					'title' => esc_html__( 'WOFF2', 'ave' ),
					'placeholder' => esc_html__( '', 'ave' ),
				),
				array(
					'id'    => 'custom_font_woff',
					'type'  => 'text',	
					'title' => esc_html__( 'WOFF', 'ave' ),
					'placeholder' => esc_html__( '', 'ave' ),
				),
				array(
					'id'    => 'custom_font_ttf',
					'type'  => 'text',	
					'title' => esc_html__( 'TTF', 'ave' ),
					'placeholder' => esc_html__( '', 'ave' ),
				),
				array(
					'id'    => 'custom_font_weight',
					'type'  => 'text',	
					'title' => esc_html__( 'Font Weight', 'ave' ),
					'placeholder' => esc_html__( '', 'ave' ),
				),
				
			)
		)
	)
);
