84 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| return array(
 | |
| 	'title'      => esc_html__( '404 Page Settings', 'thinkai' ),
 | |
| 	'id'         => '404_setting',
 | |
| 	'desc'       => '',
 | |
| 	'subsection' => true,
 | |
| 	'fields'     => array(
 | |
| 		array(
 | |
| 			'id'      => '404_source_type',
 | |
| 			'type'    => 'button_set',
 | |
| 			'title'   => esc_html__( '404 Source Type', 'thinkai' ),
 | |
| 			'options' => array(
 | |
| 				'd' => esc_html__( 'Default', 'thinkai' ),
 | |
| 				'e' => esc_html__( 'Elementor', 'thinkai' ),
 | |
| 			),
 | |
| 			'default' => 'd',
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'       => '404_elementor_template',
 | |
| 			'type'     => 'select',
 | |
| 			'title'    => __( 'Template', 'thinkai' ),
 | |
| 			'data'     => 'posts',
 | |
| 			'args'     => [
 | |
| 				'post_type' => [ 'elementor_library' ],
 | |
| 			],
 | |
| 			'required' => [ '404_source_type', '=', 'e' ],
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'       => '404_default_st',
 | |
| 			'type'     => 'section',
 | |
| 			'title'    => esc_html__( '404 Default', 'thinkai' ),
 | |
| 			'indent'   => true,
 | |
| 			'required' => [ '404_source_type', '=', 'd' ],
 | |
| 		),	
 | |
| 		//BG Image
 | |
| 		array(
 | |
| 			'id'       => 'bg_image',
 | |
| 			'type'     => 'media',
 | |
| 			'url'      => true,
 | |
| 			'title'    => esc_html__( '404 Error Image', 'thinkai' ),
 | |
| 			'desc'     => esc_html__( 'Insert Error image', 'thinkai' ),
 | |
| 			'default'  => '',
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'    => '404_page_title',
 | |
| 			'type'  => 'text',
 | |
| 			'title' => esc_html__( '404 Page Heading', 'thinkai' ),
 | |
| 			'desc'  => esc_html__( 'Enter 404 section Page Heading that you want to show', 'thinkai' ),
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'    => '404_page_tagline',
 | |
| 			'type'  => 'text',
 | |
| 			'title' => esc_html__( '404 Page Tag Line', 'thinkai' ),
 | |
| 			'desc'  => esc_html__( 'Enter 404 section Page Heading that you want to show', 'thinkai' ),
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'    => '404_page_text',
 | |
| 			'type'  => 'textarea',
 | |
| 			'title' => esc_html__( '404 Page Description', 'thinkai' ),
 | |
| 			'desc'  => esc_html__( 'Enter 404 page description that you want to show.', 'thinkai' ),
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'    => 'back_home_btn',
 | |
| 			'type'  => 'switch',
 | |
| 			'title' => esc_html__( 'Show Button', 'thinkai' ),
 | |
| 			'desc'  => esc_html__( 'Enable to show back to home button.', 'thinkai' ),
 | |
| 			'default'  => true,
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'       => 'back_home_btn_label',
 | |
| 			'type'     => 'text',
 | |
| 			'title'    => esc_html__( 'Button Label', 'thinkai' ),
 | |
| 			'desc'     => esc_html__( 'Enter back to home button label that you want to show.', 'thinkai' ),
 | |
| 			'default'  => esc_html__( 'Back to Home Page', 'thinkai' ),
 | |
| 			'required' => array( 'back_home_btn', '=', true ),
 | |
| 		),
 | |
| 		array(
 | |
| 			'id'     => '404_post_settings_end',
 | |
| 			'type'   => 'section',
 | |
| 			'indent' => false,
 | |
| 		),
 | |
| 	),
 | |
| ); |