<?php
$footer_sidebar_1 = apply_filters('kopa_light_get_sidebar', 'footer_1', 'position_2');
$footer_sidebar_2 = apply_filters('kopa_light_get_sidebar', 'footer_2', 'position_3');
$footer_sidebar_3 = apply_filters('kopa_light_get_sidebar', 'footer_3', 'position_4');
$footer_sidebar_4 = apply_filters('kopa_light_get_sidebar', 'footer_4', 'position_5');
?>
    <div id="bottom-sidebar">
        <div class="container">
            <div class="row">
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="widget-area-14">
                        <?php if ( is_active_sidebar($footer_sidebar_1)) : ?>
                            <?php dynamic_sidebar($footer_sidebar_1); ?>
                        <?php endif; ?>
                    </div>
                </div>
                <!-- col 3 -->
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="widget-area-15">
                        <?php if ( is_active_sidebar($footer_sidebar_2)) : ?>
                        <?php dynamic_sidebar($footer_sidebar_2); ?>
                        <?php endif; ?>
                    </div>
                </div>
                <!-- col 3 -->
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="widget-area-16">
                        <?php if ( is_active_sidebar($footer_sidebar_3)) : ?>
                        <?php dynamic_sidebar($footer_sidebar_3); ?>
                        <?php endif; ?>
                    </div>
                </div>
                <!-- col 3 -->
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="widget-area-17">
                        <?php if ( is_active_sidebar($footer_sidebar_4)) : ?>
                        <?php dynamic_sidebar($footer_sidebar_4); ?>
                        <?php endif; ?>
                    </div>
                </div>
                <!-- col 3 -->
            </div>
            <!-- row -->
        </div>
        <!-- container -->
    </div>
    <!-- bottom sidebar -->
    <footer id="kopa-footer">
        <div class="container clearfix">
            <div class="copy-right pull-left">
                <?php $copyright = get_theme_mod( 'karo_light_options_footer' ); ?>
                <p><?php if ( $copyright ) echo esc_attr( $copyright ); ?></p>
            </div>
            <!-- copy right -->
            <div class="menu-third pull-right">

                <?php if ( has_nav_menu( 'footer-nav' )): ?>
                    <?php wp_nav_menu( array(
                        'theme_location'  => 'footer-nav',
                        'container'       => false,
                        'items_wrap' => '<ul id="footer-menu">%3$s</ul>',
                        'depth'           => -1,
                    )); ?>
                <?php endif; ?>
                <!-- footer-nav -->

            </div>
        </div>
        <!-- container -->
    </footer>
    <!-- page footer -->
    <i class="fa fa-arrow-up back-to-top"></i>
    <?php wp_footer();?>
</body>
</html>