?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/header/options-map/



?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/header

?? Viewing: logo-map.php

<?php

if ( ! function_exists('edgtf_quadric_logo_options_map') ) {

	function edgtf_quadric_logo_options_map() {

		edgtf_quadric_add_admin_page(
			array(
				'slug' => '_logo_page',
				'title' => esc_html__( 'Logo', 'quadric' ),
				'icon' => 'fa fa-coffee'
			)
		);

		$panel_logo = edgtf_quadric_add_admin_panel(
			array(
				'page' => '_logo_page',
				'name' => 'panel_logo',
				'title' => esc_html__( 'Logo', 'quadric' )
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'parent' => $panel_logo,
				'type' => 'yesno',
				'name' => 'hide_logo',
				'default_value' => 'no',
				'label' => esc_html__( 'Hide Logo', 'quadric' ),
				'description' => esc_html__( 'Enabling this option will hide logo image', 'quadric' ),
				'args' => array(
					"dependence" => true,
					"dependence_hide_on_yes" => "#edgtf_hide_logo_container",
					"dependence_show_on_yes" => ""
				)
			)
		);

		$hide_logo_container = edgtf_quadric_add_admin_container(
			array(
				'parent' => $panel_logo,
				'name' => 'hide_logo_container',
				'hidden_property' => 'hide_logo',
				'hidden_value' => 'yes'
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'name' => 'logo_image',
				'type' => 'image',
				'default_value' => EDGE_ASSETS_ROOT."/img/logo.png",
				'label' => esc_html__( 'Logo Image - Default', 'quadric' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'quadric' ),
				'parent' => $hide_logo_container
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'name' => 'logo_image_dark',
				'type' => 'image',
				'default_value' => EDGE_ASSETS_ROOT."/img/logo_black.png",
				'label' => esc_html__( 'Logo Image - Dark', 'quadric' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'quadric' ),
				'parent' => $hide_logo_container
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'name' => 'logo_image_light',
				'type' => 'image',
				'default_value' => EDGE_ASSETS_ROOT."/img/logo_white.png",
				'label' => esc_html__( 'Logo Image - Light', 'quadric' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'quadric' ),
				'parent' => $hide_logo_container
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'name' => 'logo_image_sticky',
				'type' => 'image',
				'default_value' => EDGE_ASSETS_ROOT."/img/logo.png",
				'label' => esc_html__( 'Logo Image - Sticky', 'quadric' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'quadric' ),
				'parent' => $hide_logo_container
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'name' => 'logo_image_mobile',
				'type' => 'image',
				'default_value' => EDGE_ASSETS_ROOT."/img/logo.png",
				'label' => esc_html__( 'Logo Image - Mobile', 'quadric' ),
				'description' => esc_html__( 'Choose a default logo image to display ', 'quadric' ),
				'parent' => $hide_logo_container
			)
		);

	}

	add_action( 'edgtf_quadric_options_map', 'edgtf_quadric_logo_options_map', 2);

}


??

??