<?php
do_action( 'ava_before_footer' );
global $avia_config;
$blank = isset($avia_config['template']) ? $avia_config['template'] : "";
//reset wordpress query in case we modified it
wp_reset_query();
//get footer display settings
$the_id = avia_get_the_id(); //use avia get the id instead of default get id. prevents notice on 404 pages
$footer = get_post_meta($the_id, 'footer', true);
$footer_widget_setting = !empty($footer) ? $footer : avia_get_option('display_widgets_socket');
//check if we should display a footer
if(!$blank && $footer_w