XylotrechusZ
<?php get_template_part( 'footers/newsletter' ); ?>
<?php if ( is_active_sidebar( 'footer-widgets') || is_active_sidebar( 'footer-widgets2') || is_active_sidebar( 'footer-widgets3') || is_active_sidebar( 'footer-widgets4') ) {
if( function_exists( 'dustrial_framework_init' ) ) {
$footer_widget_cols = dustrial_get_option('footer_widget_cols');
if (!empty($footer_widget_cols)) {
$fw1 = $footer_widget_cols;
} else {
$fw1 = '2';
}
if (!empty($footer_widget_cols)) {
$fw2 = $footer_widget_cols;
} else {
$fw2 = '3';
}
if (!empty($footer_widget_cols)) {
$fw4 = $footer_widget_cols;
} else {
$fw4 = '4';
}
} else {
$fw1 = '2';
$fw2 = '3';
$fw4 = '4';
}
if ( is_active_sidebar( 'footer-widgets') || is_active_sidebar( 'footer-widgets2') || is_active_sidebar( 'footer-widgets3') || is_active_sidebar( 'footer-widgets4') ) {
?>
<!-- Start Footer -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-lg-<?php echo esc_attr($fw1); ?> col-md-6">
<?php dynamic_sidebar( 'footer-widgets' ); ?>
</div>
<div class="col-lg-<?php echo esc_attr($fw2); ?> col-md-6">
<?php dynamic_sidebar( 'footer-widgets2' ); ?>
</div>
<div class="col-lg-<?php echo esc_attr($fw2); ?> col-md-6">
<?php dynamic_sidebar( 'footer-widgets3' ); ?>
</div>
<div class="col-lg-<?php echo esc_attr($fw4); ?> col-md-6">
<?php dynamic_sidebar( 'footer-widgets4' ); ?>
</div>
</div>
</div>
</footer>
<!-- End Footer -->
<?php }
}
?>
<?php
if ( function_exists( 'dustrial_framework_init' )) {
if( !empty( dustrial_get_option('footer_social_switch') ) ){
$fcopycols = '6';
} else {
$fcopycols = '12 text-center';
}
}else{
$fcopycols = '12 text-center';
}
?>
<!-- CopyRight Section -->
<div class="copyright">
<div class="container">
<div class="row align-items-center">
<div class="col-md-<?php echo esc_attr( $fcopycols ); ?>">
<?php get_template_part( 'footers/copyright' ); ?>
</div>
<?php
if( function_exists( 'dustrial_framework_init' ) ) {
if( !empty( dustrial_get_option( 'footer_social_switch' ) ) ) { ?>
<div class="col-md-6">
<div class="copyright-social-icon">
<?php get_template_part( 'headers/top-parts/social-profiles' ); ?>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
</div>
<!-- End CopyRight Section -->