<?php $opt = lifeline()->options(); ?>

<footer class="footer-style2" style="background-color:<?php echo lifeline_get( $opt, 'footer_background-color' )  ?>">
<div class="bottom-bar">
	<div class="container">
		<div class="row align-items-center">
			<div class="col-md-12 col-sm-12 col-lg-6">
				<?php get_template_part( 'templates/footer/common/copyright' ); ?>
			</div>
            <?php
                if ( lifeline_get( $opt, 'footer_social' ) ) {
                $profile = lifeline_get( $opt, 'footer_social_media' );
                if ( ! $profile ) {
                    return;
                }
                ?>
                <div class="col-md-12 col-sm-12 col-lg-6">
                    <div class="social-medias float-right">
                        <?php
                        foreach ( $profile as $icon ) :
                            $icon = json_decode( urldecode( lifeline_get( $icon, 'data' ) ), true );
                            if ( $icon['enable'] == true ) {
                                ?>
                                <a class="text-theme position-relative d-inline-block" href="<?php echo esc_url( lifeline_get( $icon, 'url' ) ); ?>" title="<?php echo esc_attr( str_replace( array( 'fa-', '-' ), array( '', ' ' ), lifeline_get( $icon, 'icon' ) ) ); ?>"><i class="fab <?php echo ( lifeline_get( $icon, 'icon' ) ); ?>"></i></a>
                                <?php
                            }
                        endforeach;
                        do_action( 'wpml_add_language_selector' );
                        ?>
                    </div>
                </div>
                <?php
                }
            ?>		
		</div>
	</div>
</div>
</footer>