    <?php $footer_logo = get_field('footer_logo', 'option');
    $copyright = get_field('copyright', 'option');
    $email = get_field('email', 'option');
    $phone = get_field('phone', 'option');
    $linkedin = get_field('linkedin', 'option');
    $facebook = get_field('facebook', 'option');
    $twitter = get_field('twitter', 'option');
    $pinterest = get_field('pinterest', 'option');
    $instagram = get_field('instagram', 'option');
    $youtube = get_field('youtube', 'option');
    $podcast = get_field('podcast', 'option');
    $rss = get_field('rss', 'option');
    $tiktok = get_field('tiktok', 'option');
    $footer_content = get_field('footer_content', 'option');
    $website_by = get_field('website_by', 'option');
    $footer_title_1 = get_field('footer_title_1', 'option');
    $footer_title_2 = get_field('footer_title_2', 'option'); ?>
    <footer class="ftMain">
        <div class="container">
            <div class="topFt">
                <div class="row">
                    <div class="col-lg-4 col-md-5">
                        <div class="ft_item">
                            <div class="ft_logo_link">
                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
                                    <?php if(!empty($footer_logo)){ ?><img src="<?php echo esc_url($footer_logo['url']); ?>" alt="<?php echo esc_url($footer_logo['alt']); ?>" ><?php }else{ ?><img src="<?php echo get_template_directory_uri(); ?>/assets/images/ft_logo.png" alt="Footer Logo"><?php } ?>
                                </a>
                            </div>
                            <?php if(!empty($footer_content)){ echo wpautop($footer_content); } ?>
                            <div class="ft_social">
                                <ul>
                                    <?php if(!empty($linkedin)){ ?><li><a href="<?php echo $linkedin; ?>" target="_blank"><i class="fab fa-linkedin" aria-hidden="true"></i></a></li><?php } ?>
                                    <?php if(!empty($facebook)){ ?><li><a href="<?php echo $facebook; ?>" target="_blank"><i class="fab fa-facebook-square" aria-hidden="true"></i></a></li><?php } ?>
                                    <?php if(!empty($twitter)){ ?><li><a href="<?php echo $twitter; ?>" target="_blank"><i class="fa-brands fa-x-twitter" aria-hidden="true"></i></a></li><?php } ?>
                                    <?php if(!empty($pinterest)){ ?><li><a href="<?php echo $pinterest; ?>" target="_blank"><i class="fab fa-pinterest" aria-hidden="true"></i></a></li><?php } ?>
                                    <?php if(!empty($instagram)){ ?><li><a href="<?php echo $instagram; ?>" target="_blank"><i class="fab fa-instagram" aria-hidden="true"></i></a></li><?php } ?>
                                    <?php if(!empty($youtube)){ ?><li><a href="<?php echo $youtube; ?>" target="_blank"><i class="fab fa-youtube" aria-hidden="true"></i></a></li><?php } ?>
                                    <?php if(!empty($podcast)){ ?><li><a href="<?php echo $podcast; ?>" target="_blank"><i class="fas fa-podcast" aria-hidden="true"></i></a></li><?php } ?>
                                    <?php if(!empty($rss)){ ?><li><a href="<?php echo $rss; ?>" target="_blank"><i class="fas fa-rss" aria-hidden="true"></i></a></li><?php } ?>
                                    <?php if(!empty($tiktok)){ ?><li><a href="<?php echo $tiktok; ?>" target="_blank"><i class="fab fa-tiktok" aria-hidden="true"></i></a></li><?php } ?>
                                </ul>
                            </div>
                            <div class="webBy">
                                <?php if(!empty($website_by)){ echo wpautop($website_by); } ?>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-2">
                        <div class="ft_item menuMiddle">
                            <?php if(!empty($footer_title_1)){ ?><h2><?php echo $footer_title_1; ?></h2><?php } ?>
                            <?php wp_nav_menu( array( 'theme_location' => 'footer', 'container' => '', 'menu_class' => '' ) ); ?>
                        </div>
                    </div>
                    <div class="col-lg-4 col-md-5">
                        <div class="ft_item cntFt">
                            <?php if(!empty($footer_title_2)){ ?><h2><?php echo $footer_title_2; ?></h2><?php } ?>
                            <ul>
                                <?php if(!empty($email)){ ?>
                                <li>
                                    <span><img src="<?php echo get_template_directory_uri(); ?>/assets/images/ft_email_icon.svg" alt="img"></span>
                                    <div class="cnt_item">
                                        <h5>Email:</h5>
                                        <a href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a>
                                    </div>
                                </li>
                                <?php } ?>
                                <?php if(!empty($phone)){ ?>
                                <li>
                                    <span><img src="<?php echo get_template_directory_uri(); ?>/assets/images/ft_phone_icon.svg" alt="img"></span>
                                    <div class="cnt_item">
                                        <h5>Phone:</h5>
                                        <a href="tel:<?php echo $phone; ?>"><?php echo $phone; ?></a>
                                    </div>
                                </li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="btFt">
                <div class="row">
                    <div class="col-md-4">
                        <?php wp_nav_menu( array( 'theme_location' => 'legal1', 'container' => '', 'menu_class' => '' ) ); ?>
                    </div>
                    <div class="col-md-4">
                        <?php if(!empty($copyright)){ echo wpautop($copyright); } ?>
                    </div>
                    <div class="col-md-4">
                        <?php wp_nav_menu( array( 'theme_location' => 'legal2', 'container' => '', 'menu_class' => '' ) ); ?>
                    </div>
                </div>
            </div>
        </div>
    </footer>


    <!-- Bootstrap core JavaScript
        ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.4.1/jquery-migrate.min.js" integrity="sha512-KgffulL3mxrOsDicgQWA11O6q6oKeWcV00VxgfJw4TcM8XRQT8Df9EsrYxDf7tpVpfl3qcYD96BpyPvA4d1FDQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="<?php echo get_template_directory_uri(); ?>/assets/js/stellernav.js"></script>
    <script src="<?php echo get_template_directory_uri(); ?>/assets/js/lity.js"></script>
    <script src="<?php echo get_template_directory_uri(); ?>/assets/js/equalheight.js"></script>
    <script src="<?php echo get_template_directory_uri(); ?>/assets/js/app.js"></script>
<?php wp_footer(); ?>
</body>

</html>