File: //var/www/bharti-foundation.stgviitor.com/wp-content/themes/lifeline/footer.php
<?php
$options = lifeline()->options();
$meta = lifeline()->meta(get_the_ID());
$footer_set = lifeline_get($meta, 'footer_meta', false);
if ($footer_set) {
if ('default' == lifeline_get($meta, 'footer_src_type', 'default')) {
$style = lifeline_get($meta, 'footer_styles', 1);
get_template_part('templates/footer/footer', "style-{$style}");
} else {
lifeline_el_tpl(lifeline_get($meta, 'footer_elementor_template'));
}
} else {
// Use database values directly to avoid caching issues
$redux_options = get_option('lifeline_theme_options', array());
$theme_src_type = isset($redux_options['footer_src_type']) ? $redux_options['footer_src_type'] : 'default';
$theme_style = isset($redux_options['footer_styles']) ? $redux_options['footer_styles'] : '1';
if ('default' == $theme_src_type) {
get_template_part('templates/footer/footer', "style-{$theme_style}");
} else {
$template_id = isset($redux_options['footer_elementor_template']) ? $redux_options['footer_elementor_template'] : '';
if ($template_id) {
lifeline_el_tpl($template_id);
}
}
}
wp_footer();
?>
</body>
</html>