<?php
$bottom_logo = themesflat_get_opt('bottom_logo');
if (themesflat_get_opt('show_bottom') == 1): 
    $bottom_style = themesflat_get_opt('bottom_style');
    if (themesflat_get_opt_elementor('bottom_style') != '') {
        $bottom_style = themesflat_get_opt_elementor('bottom_style');
    }
    ?> 
    <?php if ($bottom_style == 'bottom-style2'): ?>        
        <div id="bottom" class="bottom <?php echo esc_attr($bottom_style); ?>">
            <div class="container">           
                <div class="row">
                    <div class="col-md-12">
                        <div class="container-inside">
                            <?php if  (!empty($bottom_logo)) { ?> 
                            <div class="content-left">
                                <div class="wrap-logo-bottom"> 
                                    <img class="logo-bottom"  src="<?php echo esc_url($bottom_logo); ?>" alt="<?php bloginfo('name'); ?>"/>
                                </div>
                            </div>
                            <?php } ?>
                            <div class="content-center">
                                <div class="copyright">                     
                                    <span><?php echo wp_kses(themesflat_get_opt( 'footer_copyright'), themesflat_kses_allowed_html()); ?></span>
                                </div>
                            </div>
                            <div class="content-right">
                                <?php themesflat_render_social(); ?> 
                            </div>                 
                        </div>
                    </div>                   
                </div><!-- /.row -->
            </div><!-- /.container -->
        </div>
    <?php else: ?>
        <div id="bottom" class="bottom <?php echo esc_attr($bottom_style); ?>">
            <div class="container">           
                <div class="row">
                    <div class="col-md-12">
                        <div class="container-inside"> 
                            <div class="content-left">
                                <div class="copyright">                     
                                    <span><?php echo wp_kses(themesflat_get_opt( 'footer_copyright'), themesflat_kses_allowed_html()); ?></span>
                                </div>
                            </div>
                            <div class="content-right">
                                <div class="widget-custom-menu">
                                    <?php                            
                                    wp_nav_menu( array( 'theme_location' => 'bottom', 'fallback_cb' => 'themesflat_menu_fallback', 'container' => false ) );
                                    ?>                        
                                </div>   
                            </div>                 
                        </div>
                    </div>                   
                </div><!-- /.row -->
            </div><!-- /.container -->
        </div>
    <?php endif; ?>
<?php endif; ?>