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_err/wp-content/themes/goodwish/framework/modules/footer/functions.php
<?php

if (!function_exists('goodwish_edge_get_footer_classes')) {
	/**
	 * Return all footer classes
	 *
	 * @param $page_id
	 * @return string|void
	 */
	function goodwish_edge_get_footer_classes($page_id) {

		$footer_classes                     = '';
		$footer_classes_array               = array();

		//is uncovering footer option set in theme options?
		if(goodwish_edge_options()->getOptionValue('uncovering_footer') == 'yes') {
			$footer_classes_array[] = 'edgtf-footer-uncover';
		}

		if(get_post_meta($page_id, 'edgtf_disable_footer_meta', true) == 'yes'){
			$footer_classes_array[] = 'edgtf-disable-footer';
		}

		//is some class added to footer classes array?
		if(is_array($footer_classes_array) && count($footer_classes_array)) {
			//concat all classes and prefix it with class attribute
			$footer_classes = esc_attr(implode(' ', $footer_classes_array));
		}

		return $footer_classes;

	}

}

if(!function_exists('goodwish_edge_get_footer_top_border')) {
	/**
	 * Return HTML for footer top border
	 *
	 * @return string
	 */
	function goodwish_edge_get_footer_top_border() {

		$footer_top_border = '';

		if (goodwish_edge_options()->getOptionValue('footer_top_border_color')) {
			if (goodwish_edge_options()->getOptionValue('footer_top_border_width') !== '') {
				$footer_border_height = goodwish_edge_options()->getOptionValue('footer_top_border_width');
			} else {
				$footer_border_height = '1';
			}

			$footer_top_border = 'height: '.esc_attr($footer_border_height).'px; background-color: '.esc_attr(goodwish_edge_options()->getOptionValue('footer_top_border_color')).';';
		}

		return $footer_top_border;
	}
}

if(!function_exists('goodwish_edge_get_footer_bottom_border')) {
	/**
	 * Return HTML for footer bottom border top
	 *
	 * @return string
	 */
	function goodwish_edge_get_footer_bottom_border() {

		$footer_bottom_border = '';

		if (goodwish_edge_options()->getOptionValue('footer_bottom_border_color')) {
			if (goodwish_edge_options()->getOptionValue('footer_bottom_border_width') !== '') {
				$footer_border_height = goodwish_edge_options()->getOptionValue('footer_bottom_border_width');
			} else {
				$footer_border_height = '1';
			}

			$footer_bottom_border = 'height: '.esc_attr($footer_border_height).'px; background-color: '.esc_attr(goodwish_edge_options()->getOptionValue('footer_bottom_border_color')).';';
		}

		return $footer_bottom_border;
	}
}


if(!function_exists('goodwish_edge_get_footer_bottom_bottom_border')) {
	/**
	 * Return HTML for footer bottom border bottom
	 *
	 * @return string
	 */
	function goodwish_edge_get_footer_bottom_bottom_border() {

		$footer_bottom_border = '';

		if (goodwish_edge_options()->getOptionValue('footer_bottom_border_bottom_color')) {
			if (goodwish_edge_options()->getOptionValue('footer_bottom_border_bottom_width') !== '') {
				$footer_border_height = goodwish_edge_options()->getOptionValue('footer_bottom_border_bottom_width');
			} else {
				$footer_border_height = '1';
			}

			$footer_bottom_border = 'height: '.esc_attr($footer_border_height).'px; background-color: '.esc_attr(goodwish_edge_options()->getOptionValue('footer_bottom_border_bottom_color')).';';
		}

		return $footer_bottom_border;
	}
}

if (!function_exists('goodwish_edge_footer_top_classes')) {
	/**
	 * Return classes for footer top
	 *
	 * @return string
	 */
	function goodwish_edge_footer_top_classes() {

		$footer_top_classes = array();

		if(goodwish_edge_options()->getOptionValue('footer_in_grid') != 'yes') {
			$footer_top_classes[] = 'edgtf-footer-top-full';
		}

		//footer aligment
		if(goodwish_edge_options()->getOptionValue('footer_top_columns_alignment') != '') {
			$footer_top_classes[] = 'edgtf-footer-top-aligment-'.goodwish_edge_options()->getOptionValue('footer_top_columns_alignment');
		}


		return implode(' ', $footer_top_classes);
	}

}