<!-- ********************************************************
 ************************* Begin Footer *********************
 ******************************************************** -->
<footer class="footer container-fluid" style="background-color: <?php echo get_option(TEXT_DOMAIN . '_footer_bg_color');?>">
    <div class="custom-container">
        <div class="footer-content">
            <div class="row mb-5">
                <div class="col-md-8">
                    <div class="d-flex align-items-center flex-column flex-md-row">
                        <?php
                        $footerLogo = get_option(TEXT_DOMAIN . '_footer_logo');
                        if (!empty($footerLogo)) { ?>
                            <a href="<?php bloginfo('url'); ?>" >
                                <img src="<?php echo $footerLogo ?>" class="footer-logo" alt="<?php bloginfo('title'); ?>"></a>
                        <?php } else { _e('Logo image not selected',TEXT_DOMAIN); ?>
                        <?php } ?>
                        <div class="vertical-line md-h"></div>
                        <p class="footer-text"><?php echo get_option(TEXT_DOMAIN . '_footer_text');?></p>
                    </div>
                </div>
                <div class="col-md-4 mt-4 mt-md-0">
                    <div class="d-flex align-items-center justify-content-center justify-content-md-end flex-wrap">
                        <?php $instagramLink = get_option(TEXT_DOMAIN . '_instagram');
                        if(!empty($instagramLink)):?>
                            <a href="<?php echo $instagramLink;?>" class="social-icon-link" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php _e('Instagram',TEXT_DOMAIN);?>"><i class="icon-instagram"></i></a>
                        <?php endif;?>

                        <?php $telegramLink = get_option(TEXT_DOMAIN . '_telegram');
                        if(!empty($telegramLink)):?>
                            <a href="<?php echo $telegramLink;?>" class="social-icon-link" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php _e('Telegram',TEXT_DOMAIN);?>"><i class="icon-telegram"></i></a>
                        <?php endif;?>

                        <?php $whatsappLink = get_option(TEXT_DOMAIN . '_whatsapp');
                        if(!empty($whatsappLink)):?>
                            <a href="<?php echo $whatsappLink;?>" class="social-icon-link" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php _e('Whatsapp',TEXT_DOMAIN);?>"><i class="icon-whatsapp"></i></a>
                        <?php endif;?>

                        <?php $twitterLink = get_option(TEXT_DOMAIN . '_twitter');
                        if(!empty($twitterLink)):?>
                            <a href="<?php echo $twitterLink;?>" class="social-icon-link" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php _e('Twitter X',TEXT_DOMAIN);?>"><i class="icon-x"></i></a>
                        <?php endif;?>

                        <?php $linkedInLink = get_option(TEXT_DOMAIN . '_linkedin');
                        if(!empty($linkedInLink)):?>
                            <a href="<?php echo $linkedInLink;?>" class="social-icon-link" data-bs-toggle="tooltip" data-bs-placement="top" title="<?php _e('LinkedIn',TEXT_DOMAIN);?>"><i class="icon-linkedin"></i></a>
                        <?php endif;?>

                    </div>
                </div>
            </div>

            <div class="vertical-line md-h d-block d-md-none"></div>


            <div class="row">

                <!-- contact info -->
                <div class="col-lg-3 col-md-4 mb-4 mb-lg-0">
                    <div class="footer-icon-box">
                        <div class="icon">
                            <span class="iconlyBulk-Calling"><span class="path1"></span><span class="path2"></span><span class="path3"></span></span>
                        </div>
                        <div class="d-flex flex-column">
                            <span class="title"><?php echo get_option(TEXT_DOMAIN . '_footer_phone_title');?></span>
                            <span class="value"><?php echo get_option(TEXT_DOMAIN . '_footer_phone');?></span>
                        </div>
                    </div>

                    <div class="footer-icon-box mt-3">
                        <div class="icon">
                            <span class="iconlyBulk-Message"><span class="path1"></span><span class="path2"></span></span>
                        </div>
                        <div class="d-flex flex-column">
                            <span class="title"><?php echo get_option(TEXT_DOMAIN . '_footer_email_title');?></span>
                            <span class="value"><?php echo get_option(TEXT_DOMAIN . '_footer_email');?></span>
                        </div>
                    </div>

                    <div class="footer-icon-box mt-3">
                        <div class="icon">
                            <span class="iconlyBulk-Location"><span class="path1"></span><span class="path2"></span></span>
                        </div>
                        <div class="d-flex flex-column">
                            <span class="title"><?php echo get_option(TEXT_DOMAIN . '_footer_address_title');?></span>
                            <span class="value font-14"><?php echo get_option(TEXT_DOMAIN . '_footer_address');?></span>
                        </div>
                    </div>

                    <div class="vertical-line md-h d-block d-md-none"></div>

                </div>

                <!-- widget1 -->
                <?php if(is_active_sidebar('footer_widget_location1')):?>
                    <div class="col-lg-2 col-md-4 col-6 mb-4 mb-lg-0">
                        <div class="footer-widget-container">
                            <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer_widget_location1') ) : ?>
                            <?php endif; ?>
                        </div>
                        <div class="vertical-line md-h d-block d-md-none"></div>
                    </div>
                <?php endif; ?>

                <!-- widget2 -->
                <?php if(is_active_sidebar('footer_widget_location2')):?>
                    <div class="col-lg-2 col-md-4 col-6 mb-4 mb-lg-0">
                        <div class="footer-widget-container">
                            <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer_widget_location2') ) : ?>
                            <?php endif; ?>
                        </div>
                        <div class="vertical-line md-h d-block d-md-none"></div>
                    </div>
                <?php endif; ?>

                <!-- widget3 -->
                <?php if(is_active_sidebar('footer_widget_location3')):?>
                    <div class="col-lg-2 col-md-4 col-6 mb-4 mb-lg-0">
                        <div class="footer-widget-container">
                            <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer_widget_location3') ) : ?>
                            <?php endif; ?>
                        </div>
                    </div>
                <?php endif; ?>

                <!-- logos -->
                <div class="col-lg-2 col-md-4 col-6">
                    <div class="footer-widget-container">
                        <div class="text-primary font-17 fw-bold d-block mb-3"><?php echo get_option(TEXT_DOMAIN . '_footer_logos_title');?></div>
                       <div class="footer-logos">
                           <?php echo get_option(TEXT_DOMAIN . '_footer_logos');?>
                       </div>
                    </div>
                </div>

            </div>

            <!-- copyright -->
            <div class="footer-copyright">
                <div>
                    <?php echo get_option(TEXT_DOMAIN . '_footer_copyright');?>
                </div>

                <div class="vertical-line d-none d-md-block h20px"></div>

                <div>
                    <?php echo get_option(TEXT_DOMAIN . '_footer_designer');?>
                </div>
            </div>
        </div>
    </div>
</footer>
