?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/meta-boxes/header/



?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/admin/meta-boxes

?? Viewing: map.php

<?php

$header_meta_box = edgtf_quadric_create_meta_box(
    array(
        'scope' => array('page', 'portfolio-item', 'post'),
        'title' => esc_html__( 'Header', 'quadric' ),
        'name' => 'header-meta'
    )
);
    edgtf_quadric_create_meta_box_field(
        array(
            'name' => 'edgtf_header_style_meta',
            'type' => 'select',
            'default_value' => '',
            'label' => esc_html__( 'Header Skin', 'quadric' ),
            'description' => esc_html__( 'Choose a header style to make header elements (logo, main menu, side menu button) in that predefined style', 'quadric' ),
            'parent' => $header_meta_box,
            'options' => array(
                '' => '',
                'light-header' => esc_html__( 'Light', 'quadric' ),
                'dark-header' => esc_html__( 'Dark', 'quadric' )
            )
        )
    );

    edgtf_quadric_create_meta_box_field(
        array(
            'parent' => $header_meta_box,
            'type' => 'select',
            'name' => 'edgtf_enable_header_style_on_scroll_meta',
            'default_value' => '',
            'label' => esc_html__( 'Enable Header Style on Scroll', 'quadric' ),
            'description' => esc_html__( 'Enabling this option, header will change style depending on row settings for dark/light style', 'quadric' ),
            'options' => array(
                '' => '',
                'no' => esc_html__( 'No', 'quadric' ),
                'yes' => esc_html__( 'Yes', 'quadric' )
            )
        )
    );

    switch (edgtf_quadric_options()->getOptionValue('header_type')) {
        case 'header-standard':

            edgtf_quadric_create_meta_box_field(
                array(
                    'name' => 'edgtf_menu_area_background_color_header_standard_meta',
                    'type' => 'color',
                    'label' => esc_html__( 'Background Color', 'quadric' ),
                    'description' => esc_html__( 'Choose a background color for header area', 'quadric' ),
                    'parent' => $header_meta_box
                )
            );

            edgtf_quadric_create_meta_box_field(
                array(
                    'name' => 'edgtf_menu_area_background_transparency_header_standard_meta',
                    'type' => 'text',
                    'label' => esc_html__( 'Transparency', 'quadric' ),
                    'description' => esc_html__( 'Choose a transparency for the header background color (0 = fully transparent, 1 = opaque)', 'quadric' ),
                    'parent' => $header_meta_box,
                    'args' => array(
                        'col_width' => 2
                    )
                )
            );

			edgtf_quadric_create_meta_box_field(
				array(
					'name' => 'edgtf_menu_area_border_bottom_color_header_standard_meta',
					'type' => 'color',
					'label' => esc_html__( 'Border Bottom Color', 'quadric' ),
					'description' => esc_html__( 'Choose a border botom color for header area', 'quadric' ),
					'parent' => $header_meta_box
				)
			);

			edgtf_quadric_create_meta_box_field(
				array(
					'name' => 'edgtf_menu_area_border_bottom_transparency_header_standard_meta',
					'type' => 'text',
					'label' => esc_html__( 'Border Bottom Transparency', 'quadric' ),
					'description' => esc_html__( 'Choose a transparency for the header border botom color (0 = fully transparent, 1 = opaque)', 'quadric' ),
					'parent' => $header_meta_box,
					'args' => array(
						'col_width' => 2
					)
				)
			);

	        break;

        case 'header-vertical':

            edgtf_quadric_create_meta_box_field(array(
                'name'        => 'edgtf_vertical_header_background_color_meta',
                'type'        => 'color',
                'label' => esc_html__( 'Background Color', 'quadric' ),
                'description' => esc_html__( 'Set background color for vertical menu', 'quadric' ),
                'parent'      => $header_meta_box
            ));

            edgtf_quadric_create_meta_box_field(array(
                'name'        => 'edgtf_vertical_header_transparency_meta',
                'type'        => 'text',
                'label' => esc_html__( 'Transparency', 'quadric' ),
                'description' => esc_html__( 'Enter transparency for vertical menu (value from 0 to 1)', 'quadric' ),
                'parent'      => $header_meta_box,
                'args'        => array(
                    'col_width' => 1
                )
            ));

            edgtf_quadric_create_meta_box_field(
                array(
                    'name'          => 'edgtf_vertical_header_background_image_meta',
                    'type'          => 'image',
                    'default_value' => '',
                    'label' => esc_html__( 'Background Image', 'quadric' ),
                    'description' => esc_html__( 'Set background image for vertical menu', 'quadric' ),
                    'parent'        => $header_meta_box
                )
            );

            edgtf_quadric_create_meta_box_field(
                array(
                    'name' => 'edgtf_disable_vertical_header_background_image_meta',
                    'type' => 'yesno',
                    'default_value' => 'no',
                    'label' => esc_html__( 'Disable Background Image', 'quadric' ),
                    'description' => esc_html__( 'Enabling this option will hide background image in Vertical Menu', 'quadric' ),
                    'parent' => $header_meta_box
                )
            );

            break;
    }

	switch (edgtf_quadric_options()->getOptionValue('header_behaviour')) {
		case 'fixed-on-scroll':

			edgtf_quadric_create_meta_box_field(
				array(
					'name' => 'edgtf_menu_area_background_color_fixed_on_scroll_meta',
					'type' => 'color',
					'label' => esc_html__( 'Background Color For Fixed Header on Scroll', 'quadric' ),
					'description' => esc_html__( 'Choose a background color for standard header area when it is fixed on scroll', 'quadric' ),
					'parent' => $header_meta_box
				)
			);

			edgtf_quadric_create_meta_box_field(
				array(
					'name' => 'edgtf_menu_area_background_transparency_fixed_on_scroll_meta',
					'type' => 'text',
					'label' => esc_html__( 'Transparency For Fixed Header on Scroll', 'quadric' ),
					'description' => esc_html__( 'Choose a transparency for standard header area when it is fixed on scroll (0 = fully transparent, 1 = opaque)', 'quadric' ),
					'parent' => $header_meta_box,
					'args' => array(
						'col_width' => 2
					)
				)
			);
		break;
	}

    if(edgtf_quadric_options() -> getOptionValue('header_type') != 'header-vertical') {
        edgtf_quadric_create_meta_box_field(
            array(
                'name'            => 'edgtf_scroll_amount_for_sticky_meta',
                'type'            => 'text',
                'label' => esc_html__( 'Scroll amount for sticky header appearance', 'quadric' ),
                'description' => esc_html__( 'Define scroll amount for sticky header appearance', 'quadric' ),
                'parent'          => $header_meta_box,
                'args'            => array(
                    'col_width' => 2,
                    'suffix'    => 'px'
                ),
                'hidden_property' => 'edgtf_header_behaviour',
                'hidden_values'   => array("sticky-header-on-scroll-up", "fixed-on-scroll")
            )
        );
    }


??

??