?? GreyFile — Mystic File Browser

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



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

?? Viewing: map.php

<?php

if ( ! function_exists('edgtf_quadric_footer_options_map') ) {
	/**
	 * Add footer options
	 */
	function edgtf_quadric_footer_options_map() {

		edgtf_quadric_add_admin_page(
			array(
				'slug' => '_footer_page',
				'title' => esc_html__( 'Footer', 'quadric' ),
				'icon' => 'fa fa-sort-amount-asc'
			)
		);

		$footer_panel = edgtf_quadric_add_admin_panel(
			array(
				'title' => esc_html__( 'Footer', 'quadric' ),
				'name' => 'footer',
				'page' => '_footer_page'
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'type' => 'yesno',
				'name' => 'uncovering_footer',
				'default_value' => 'no',
				'label' => esc_html__( 'Uncovering Footer', 'quadric' ),
				'description' => esc_html__( 'Enabling this option will make Footer gradually appear on scroll', 'quadric' ),
				'parent' => $footer_panel,
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'type' => 'yesno',
				'name' => 'footer_in_grid',
				'default_value' => 'no',
				'label' => esc_html__( 'Footer in Grid', 'quadric' ),
				'description' => esc_html__( 'Enabling this option will place Footer content in grid', 'quadric' ),
				'parent' => $footer_panel,
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'type' => 'yesno',
				'name' => 'show_footer_top',
				'default_value' => 'yes',
				'label' => esc_html__( 'Show Footer Top', 'quadric' ),
				'description' => esc_html__( 'Enabling this option will show Footer Top area', 'quadric' ),
				'args' => array(
					'dependence' => true,
					'dependence_hide_on_yes' => '',
					'dependence_show_on_yes' => '#edgtf_show_footer_top_container'
				),
				'parent' => $footer_panel,
			)
		);

		$show_footer_top_container = edgtf_quadric_add_admin_container(
			array(
				'name' => 'show_footer_top_container',
				'hidden_property' => 'show_footer_top',
				'hidden_value' => 'no',
				'parent' => $footer_panel
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'type' => 'select',
				'name' => 'footer_top_columns',
				'default_value' => '4',
				'label' => esc_html__( 'Footer Top Columns', 'quadric' ),
				'description' => esc_html__( 'Choose number of columns for Footer Top area', 'quadric' ),
				'options' => array(
					'1' => '1',
					'2' => '2',
					'3' => '3',
					'5' => '3(25%+25%+50%)',
					'6' => '3(50%+25%+25%)',
					'4' => '4'
				),
				'parent' => $show_footer_top_container,
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'type' => 'select',
				'name' => 'footer_top_columns_alignment',
				'default_value' => '',
				'label' => esc_html__( 'Footer Top Columns Alignment', 'quadric' ),
				'description' => esc_html__( 'Text Alignment in Footer Columns', 'quadric' ),
				'options' => array(
					'left' => esc_html__( 'Left', 'quadric' ),
					'center' => esc_html__( 'Center', 'quadric' ),
					'right' => esc_html__( 'Right', 'quadric' )
				),
				'parent' => $show_footer_top_container,
			)
		);

		edgtf_quadric_add_admin_field(
			array(
				'type' => 'yesno',
				'name' => 'show_footer_bottom',
				'default_value' => 'yes',
				'label' => esc_html__( 'Show Footer Bottom', 'quadric' ),
				'description' => esc_html__( 'Enabling this option will show Footer Bottom area', 'quadric' ),
				'args' => array(
					'dependence' => true,
					'dependence_hide_on_yes' => '',
					'dependence_show_on_yes' => '#edgtf_show_footer_bottom_container'
				),
				'parent' => $footer_panel,
			)
		);

		$show_footer_bottom_container = edgtf_quadric_add_admin_container(
			array(
				'name' => 'show_footer_bottom_container',
				'hidden_property' => 'show_footer_bottom',
				'hidden_value' => 'no',
				'parent' => $footer_panel
			)
		);


		edgtf_quadric_add_admin_field(
			array(
				'type' => 'select',
				'name' => 'footer_bottom_columns',
				'default_value' => '2',
				'label' => esc_html__( 'Footer Bottom Columns', 'quadric' ),
				'description' => esc_html__( 'Choose number of columns for Footer Bottom area', 'quadric' ),
				'options' => array(
					'1' => '1',
					'2' => '2',
					'3' => '3'
				),
				'parent' => $show_footer_bottom_container,
			)
		);

	}

	add_action( 'edgtf_quadric_options_map', 'edgtf_quadric_footer_options_map',9 );

}


??

??