<?php

if ( ! function_exists( 'calla_elated_logo_meta_box_map' ) ) {
	function calla_elated_logo_meta_box_map() {
		
		$logo_meta_box = calla_elated_create_meta_box(
			array(
				'scope' => apply_filters( 'calla_elated_set_scope_for_meta_boxes', array( 'page', 'post' ), 'logo_meta' ),
				'title' => esc_html__( 'Logo', 'calla' ),
				'name'  => 'logo_meta'
			)
		);
		
		calla_elated_create_meta_box_field(
			array(
				'name'        => 'eltdf_logo_image_meta',
				'type'        => 'image',
				'label'       => esc_html__( 'Logo Image - Default', 'calla' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'calla' ),
				'parent'      => $logo_meta_box
			)
		);
		
		calla_elated_create_meta_box_field(
			array(
				'name'        => 'eltdf_logo_image_dark_meta',
				'type'        => 'image',
				'label'       => esc_html__( 'Logo Image - Dark', 'calla' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'calla' ),
				'parent'      => $logo_meta_box
			)
		);
		
		calla_elated_create_meta_box_field(
			array(
				'name'        => 'eltdf_logo_image_light_meta',
				'type'        => 'image',
				'label'       => esc_html__( 'Logo Image - Light', 'calla' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'calla' ),
				'parent'      => $logo_meta_box
			)
		);
		
		calla_elated_create_meta_box_field(
			array(
				'name'        => 'eltdf_logo_image_sticky_meta',
				'type'        => 'image',
				'label'       => esc_html__( 'Logo Image - Sticky', 'calla' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'calla' ),
				'parent'      => $logo_meta_box
			)
		);
		
		calla_elated_create_meta_box_field(
			array(
				'name'        => 'eltdf_logo_image_mobile_meta',
				'type'        => 'image',
				'label'       => esc_html__( 'Logo Image - Mobile', 'calla' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'calla' ),
				'parent'      => $logo_meta_box
			)
		);
	}
	
	add_action( 'calla_elated_meta_boxes_map', 'calla_elated_logo_meta_box_map', 47 );
}