<?php

return array(
	'title'      => esc_html__( '404 Page Settings', 'inventive' ),
	'id'         => '404_setting',
	'desc'       => '',
	'subsection' => true,
	'fields'     => array(
		array(
			'id'      => '404_source_type',
			'type'    => 'button_set',
			'title'   => esc_html__( '404 Source Type', 'inventive' ),
			'options' => array(
				'd' => esc_html__( 'Default', 'inventive' ),
				'e' => esc_html__( 'Elementor', 'inventive' ),
			),
			'default' => 'd',
		),
		array(
			'id'       => '404_elementor_template',
			'type'     => 'select',
			'title'    => __( 'Template', 'inventive' ),
			'data'     => 'posts',
			'args'     => [
				'post_type' => [ 'elementor_library' ],
			],
			'required' => [ '404_source_type', '=', 'e' ],
		),
		array(
			'id'       => '404_default_st',
			'type'     => 'section',
			'title'    => esc_html__( '404 Default', 'inventive' ),
			'indent'   => true,
			'required' => [ '404_source_type', '=', 'd' ],
		),
		
		//Feature List
		array(
			'id'    => 'features_list',
			'type'  => 'textarea',
			'title' => esc_html__( '404 Page Feature List', 'inventive' ),
			'desc'  => esc_html__( 'Enter 404 page feature list that you want to show.', 'inventive' ),
		),	
		array(
			'id'       => 'bg_image',
			'type'     => 'media',
			'url'      => true,
			'title'    => esc_html__( '404 Error Image', 'inventive' ),
			'desc'     => esc_html__( 'Insert Error image', 'inventive' ),
			'default'  => '',
		),
		array(
			'id'       => 'icon_image',
			'type'     => 'media',
			'url'      => true,
			'title'    => esc_html__( '404 Icon Image', 'inventive' ),
			'desc'     => esc_html__( 'Insert Icon image', 'inventive' ),
			'default'  => '',
		),
		//404 Page Setting
		array(
			'id'    => '404_page_title',
			'type'  => 'text',
			'title' => esc_html__( '404 Page Title', 'inventive' ),
			'desc'  => esc_html__( 'Enter 404 page title that you want to show.', 'inventive' ),
		),
		array(
			'id'    => '404_page_text',
			'type'  => 'textarea',
			'title' => esc_html__( '404 Page Description', 'inventive' ),
			'desc'  => esc_html__( 'Enter 404 page description that you want to show.', 'inventive' ),
		),		
		array(
			'id'    => 'back_home_btn',
			'type'  => 'switch',
			'title' => esc_html__( 'Show Button', 'inventive' ),
			'desc'  => esc_html__( 'Enable to show back to home button.', 'inventive' ),
			'default'  => true,
		),
		array(
			'id'       => 'back_home_btn_label',
			'type'     => 'text',
			'title'    => esc_html__( 'Button Label', 'inventive' ),
			'desc'     => esc_html__( 'Enter back to home button label that you want to show.', 'inventive' ),
			'default'  => esc_html__( 'Back to Home Page', 'inventive' ),
			'required' => array( 'back_home_btn', '=', true ),
		),
		//Feature List
		array(
			'id'    => 'features_list2',
			'type'  => 'textarea',
			'title' => esc_html__( '404 Page Feature List', 'inventive' ),
			'desc'  => esc_html__( 'Enter 404 page feature list that you want to show.', 'inventive' ),
		),
		array(
			'id'     => '404_post_settings_end',
			'type'   => 'section',
			'indent' => false,
		),
	),
);