<?php

$content_bottom_meta_box = conall_edge_add_meta_box(
	array(
		'scope' => array('page', 'portfolio-item', 'post'),
		'title' => 'Content Bottom',
		'name' => 'content_bottom_meta'
	)
);

	conall_edge_add_meta_box_field(
		array(
			'name' => 'edgtf_enable_content_bottom_area_meta',
			'type' => 'selectblank',
			'default_value' => '',
			'label' => 'Enable Content Bottom Area',
			'description' => 'This option will enable Content Bottom area on pages',
			'parent' => $content_bottom_meta_box,
			'options' => array(
				'no' => 'No',
				'yes' => 'Yes'
			),
			'args' => array(
				'dependence' => true,
				'hide' => array(
					'' => '#edgtf_edgtf_show_content_bottom_meta_container',
					'no' => '#edgtf_edgtf_show_content_bottom_meta_container'
				),
				'show' => array(
					'yes' => '#edgtf_edgtf_show_content_bottom_meta_container'
				)
			)
		)
	);

	$show_content_bottom_meta_container = conall_edge_add_admin_container(
		array(
			'parent' => $content_bottom_meta_box,
			'name' => 'edgtf_show_content_bottom_meta_container',
			'hidden_property' => 'edgtf_enable_content_bottom_area_meta',
			'hidden_value' => '',
			'hidden_values' => array('','no')
		)
	);

		conall_edge_add_meta_box_field(
			array(
				'name' => 'edgtf_content_bottom_sidebar_custom_display_meta',
				'type' => 'selectblank',
				'default_value' => '',
				'label' => 'Sidebar to Display',
				'description' => 'Choose a Content Bottom sidebar to display',
				'options' => conall_edge_get_custom_sidebars(),
				'parent' => $show_content_bottom_meta_container
			)
		);

		conall_edge_add_meta_box_field(
			array(
				'type' => 'selectblank',
				'name' => 'edgtf_content_bottom_in_grid_meta',
				'default_value' => '',
				'label' => 'Display in Grid',
				'description' => 'Enabling this option will place Content Bottom in grid',
				'options' => array(
					'no' => 'No',
					'yes' => 'Yes'
				),
				'parent' => $show_content_bottom_meta_container
			)
		);

		conall_edge_add_meta_box_field(
			array(
				'type' => 'color',
				'name' => 'edgtf_content_bottom_background_color_meta',
				'default_value' => '',
				'label' => 'Background Color',
				'description' => 'Choose a background color for Content Bottom area',
				'parent' => $show_content_bottom_meta_container
			)
		);

        conall_edge_add_meta_box_field(
            array(
                'type' => 'image',
                'name' => 'edgtf_content_bottom_background_image_meta',
                'default_value' => '',
                'label' => 'Background Image',
                'description' => 'Choose a background image for Content Bottom area',
                'parent' => $show_content_bottom_meta_container
            )
        );