<?php

return array(
	'title'      => esc_html__( '404 Page Settings', 'roonix' ),
	'id'         => '404_setting',
	'desc'       => '',
	'subsection' => true,
	'fields'     => array(
		array(
			'id'      => '404_source_type',
			'type'    => 'button_set',
			'title'   => esc_html__( '404 Source Type', 'roonix' ),
			'options' => array(
				'd' => esc_html__( 'Default', 'roonix' ),
				'e' => esc_html__( 'Elementor', 'roonix' ),
			),
			'default' => 'd',
		),
		array(
			'id'       => '404_elementor_template',
			'type'     => 'select',
			'title'    => __( 'Template', 'roonix' ),
			'data'     => 'posts',
			'args'     => [
				'post_type' => [ 'elementor_library' ],
			],
			'required' => [ '404_source_type', '=', 'e' ],
		),
		array(
			'id'       => '404_default_st',
			'type'     => 'section',
			'title'    => esc_html__( '404 Default', 'roonix' ),
			'indent'   => true,
			'required' => [ '404_source_type', '=', 'd' ],
		),
		array(
			'id'      => '404_page_banner',
			'type'    => 'switch',
			'title'   => esc_html__( 'Show Banner', 'roonix' ),
			'desc'    => esc_html__( 'Enable to show banner on blog', 'roonix' ),
			'default' => true,
		),
		array(
			'id'       => '404_banner_title',
			'type'     => 'text',
			'title'    => esc_html__( 'Banner Section Title', 'roonix' ),
			'desc'     => esc_html__( 'Enter the title to show in banner section', 'roonix' ),
			'required' => array( '404_page_banner', '=', true ),
		),
		array(
			'id'       => '404_page_background',
			'type'     => 'media',
			'url'      => true,
			'title'    => esc_html__( 'Background Image', 'roonix' ),
			'desc'     => esc_html__( 'Insert background image for banner', 'roonix' ),
			'default'  => array(
				'url' => ROONIX_URI . 'assets/images/background/20.jpg',
			),
			'required' => array( '404_page_banner', '=', true ),
		),
		array(
			'id'    => '404_page_title',
			'type'  => 'text',
			'title' => esc_html__( '404 Title', 'roonix' ),
			'desc'  => esc_html__( 'Enter 404 section title that you want to show', 'roonix' ),
		),
		array(
			'id'    => '404_page_text',
			'type'  => 'textarea',
			'title' => esc_html__( '404 Page Description', 'roonix' ),
			'desc'  => esc_html__( 'Enter 404 page description that you want to show.', 'roonix' ),
		),
		array(
			'id'    => 'back_home_btn',
			'type'  => 'switch',
			'title' => esc_html__( 'Show Button', 'roonix' ),
			'desc'  => esc_html__( 'Enable to show back to home button.', 'roonix' ),
			'default'  => true,
		),
		array(
			'id'       => 'back_home_btn_label',
			'type'     => 'text',
			'title'    => esc_html__( 'Button Label', 'roonix' ),
			'desc'     => esc_html__( 'Enter back to home button label that you want to show.', 'roonix' ),
			'default'  => esc_html__( 'Go Home', 'roonix' ),
			'required' => array( 'back_home_btn', '=', true ),
		),
		array(
			'id'     => '404_post_settings_end',
			'type'   => 'section',
			'indent' => false,
		),
	),
);