HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpmuhibbah/wp-content/themes/goodwish/framework/modules/footer/options-map/map.php
<?php

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

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

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

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

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

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

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

		goodwish_edge_add_admin_field(
			array(
				'type' => 'select',
				'name' => 'footer_top_columns',
				'default_value' => '4',
				'label' => esc_html__('Footer Top Columns','goodwish'),
				'description' => esc_html__('Choose number of columns for Footer Top area','goodwish'),
				'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,
			)
		);

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

		goodwish_edge_add_admin_field(
			array(
				'name'          => 'footer_top_background_image',
				'type'          => 'image',
				'label'         => esc_html__('Background Image','goodwish'),
				'description'   => esc_html__('Choose an image to be displayed in background','goodwish'),
				'parent'        => $show_footer_top_container
			)
		);

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

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


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

	}

	add_action( 'goodwish_edge_options_map', 'goodwish_edge_footer_options_map', 10);

}