/home/bdqbpbxa/dev-subdomains/precisai-dev.goodface.com.ua/wp-content/themes/precisai/footer.php
<?php
    $frontpage_id = get_option('page_on_front');
?>

<?php
if(is_page_template('about-us-page.php')):
    get_template_part('includes/popup/precis-advisory-board');
endif;
?>

<footer class="footer section" id="footer">
	<div class="container footer__container">
        <div class="footer-row__top">
            <a href="/" class="footer-logo">
                <img width="141" height="40" src="/wp-content/uploads/2023/10/logo-header.svg" alt="précis ai logo" class="footer-logo__image">
            </a>
            <?php
            $args = array(
                'theme_location'  => 'foot_menu',
                'menu_class' => 'footer-menu'
            );
            wp_nav_menu( $args );
            ?>
        </div>
        <div class="footer-row__bottom">
            <?php if(get_field('footer_soc_icons')) {
                $footer_soc_icons = get_field('footer_soc_icons');
            } elseif(get_field('footer_soc_icons', $frontpage_id)) {
                $footer_soc_icons = get_field('footer_soc_icons', $frontpage_id);
            }
            if($footer_soc_icons): ?>
                <div class="footer-soc-icons">
<!--                    --><?php //foreach($footer_soc_icons as $item) : ?>
<!--                        --><?php //if($item['link']):
//                            $footer_soc_icons = $item['link'];
//
//                            $footer_soc_icons_url = $footer_soc_icons['url'];
//                            $footer_soc_icons_title = $footer_soc_icons['title'];
//                            $footer_soc_icons_target = $footer_soc_icons['target'] ? $footer_soc_icons['target'] : '_self';
//                            ?>
<!--                            <a href="--><?php //echo $footer_soc_icons_url; ?><!--" class="footer-soc-icon-item__link">-->
<!--                                --><?php //$meet_intelligent_writing_assistant_slider_icon = $item['icon'];
//                                if( !empty($meet_intelligent_writing_assistant_slider_icon) ): ?>
<!--                                    <img class="footer-soc-icon-item__image" width="--><?php //echo $meet_intelligent_writing_assistant_slider_icon['width']; ?><!--" height="--><?php //echo $meet_intelligent_writing_assistant_slider_icon['height']; ?><!--" src="--><?php //echo $meet_intelligent_writing_assistant_slider_icon['url']; ?><!--" alt="--><?php //echo $meet_intelligent_writing_assistant_slider_icon['alt']; ?><!--">-->
<!--                                --><?php //endif; ?>
<!--                            </a>-->
<!--                        --><?php //endif; ?>
<!--                    --><?php //endforeach; ?>
                </div>
            <?php endif; ?>

            <div class="increase-efficiency-form__row">
                <div class="footer-contact">
                    <?php if(get_field('footer_phone_link') || get_field('footer_phone_link', $frontpage_id)):
                        $footer_email_icons = get_field('footer_phone_link');
                        if(get_field('footer_phone_link', $frontpage_id)) $footer_email_icons = get_field('footer_phone_link', $frontpage_id);

                        $footer_email_icons_url = $footer_email_icons['url'];
                        $footer_email_icons_title = $footer_email_icons['title'];
                        $footer_email_icons_target = $footer_email_icons['target'] ? $footer_email_icons['target'] : '_self';
                        ?>
                        <a href="<?php echo $footer_email_icons_url; ?>" class="footer-contact-item footer-contact__link">
                            <?php if (get_field('footer_phone_icon')) {
                                $footer_phone_icon = get_field('footer_phone_icon');
                            } elseif (get_field('footer_phone_icon', $frontpage_id)) {
                                $footer_phone_icon = get_field('footer_phone_icon', $frontpage_id);
                            }
                            if( !empty($footer_phone_icon) ): ?>
                                <img class="footer-contact-item__image" width="<?php echo $footer_phone_icon['width']; ?>" height="<?php echo $footer_phone_icon['height']; ?>" src="<?php echo $footer_phone_icon['url']; ?>" alt="<?php echo $footer_phone_icon['alt']; ?>">
                            <?php endif; ?>

                            <div class="footer-contact-item__text-content"><?php echo $footer_email_icons_title; ?></div>
                        </a>
                    <?php endif; ?>

                    <div class="footer-contact-item">
                        <?php if(get_field('footer_address_icon')) {
                            $footer_address_icon = get_field('footer_address_icon');
                        } elseif(get_field('footer_address_icon', $frontpage_id)) {
                            $footer_address_icon = get_field('footer_address_icon', $frontpage_id);
                        }

                        if( !empty($footer_address_icon) ): ?>
                            <img class="footer-contact-item__image" width="<?php echo $footer_address_icon['width']; ?>" height="<?php echo $footer_address_icon['height']; ?>" src="<?php echo $footer_address_icon['url']; ?>" alt="<?php echo $footer_address_icon['alt']; ?>">
                        <?php endif; ?>

                        <div class="footer-contact-item__text-content">
                            <?php if(get_field('footer_address_text')) {
                                the_field('footer_address_text');
                            } elseif(get_field('footer_address_text', $frontpage_id)) {
                                the_field('footer_address_text', $frontpage_id);
                            } ?>
                        </div>
                    </div>
                </div>
                <div class="increase-efficiency-form__title">
                    <?php
                    if(get_field('increase_efficiency_subscribe_title')):
                        the_field('increase_efficiency_subscribe_title');
                    elseif (get_field('increase_efficiency_subscribe_title', $frontpage_id)):
                        the_field('increase_efficiency_subscribe_title', $frontpage_id);
                    endif; ?>
                </div>
                <?php echo do_shortcode('[contact-form-7 id="7" title="Subscribe Form"]'); ?>
            </div>
        </div>
    </div>
    <div class="footer-copyright">
        <div class="container">
            ©<?php echo date('Y'); ?>
            <?php if(get_field('footer_copyright')) :
                the_field('footer_copyright');
            elseif (get_field('footer_copyright', $frontpage_id)):
                the_field('footer_copyright', $frontpage_id);
            endif;
            ?>
        </div>
    </div>
</footer>
<div class="popup-form popup-join">
    <div class="popup-form__close popup-join__close"></div>
    <div class="drop-us-line-drop-us">
        <h2 class="section-title mb-24">Join the Waitlist</h2>
<!--         <div class="section-subtitle mb-24">Refer your colleagues and move up your spot in the line</div> -->
        <?php echo do_shortcode('[contact-form-7 id="1194" title="Contact Form Popup"]'); ?>
    </div>
</div>
<div class="popup-form__overlay popup-join__overlay"></div>


<div class="modal-pdf">
    <div class="modal-pdf-overlay"></div>
    <div class="modal-pdf-content">
        <div class="modal-pdf-close">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M6.87109 17.2603L12.0012 12.1302L6.87109 7.00014" stroke="#14092A" stroke-width="2" stroke-linecap="round"/>
                <path d="M17.1328 7L12.0028 12.1301L17.1328 17.2601" stroke="#14092A" stroke-width="2" stroke-linecap="round"/>
            </svg>
        </div>
        <div class="left"></div>
        <div class="right">
            <?php
            $title = get_field('popup_title', 'option');
            if ($title): ?>
                <div class="modal-pdf-title"><?php echo esc_html($title); ?></div>
            <?php endif; ?>

            <?php
            $text = get_field('popup_text', 'option');
            if ($text): ?>
                <div class="modal-pdf-text"><?php echo esc_html($text); ?></div>
            <?php endif; ?>

            <?php
            $form = get_field('popup_form', 'option');
            if ($form) :
                $contact_form = WPCF7_ContactForm::get_instance($form);
                $cf7_shortcode_with_id = str_replace(']', ' html_class="form "]', $contact_form->shortcode());
                $cf7_form = do_shortcode($cf7_shortcode_with_id);
                ?>
                <?php echo $cf7_form; ?>
            <?php endif; ?>
        </div>
    </div>
</div>

<script src="<?php echo get_stylesheet_directory_uri(); ?>/aos.js" async="" defer=""></script>
 <script src="<?php echo get_stylesheet_directory_uri(); ?>/main.js<?php echo THEME_VERSION; ?>" async="" defer=""></script>

<?php
$try_page_id = 1819;
if(is_front_page() || is_page_template('about-us-page.php') || is_page($try_page_id) || is_page_template('home-old-page.php')): ?>
    <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/libs/splide.min.js" defer=""></script>
    <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/slider.js" defer=""></script>
<?php endif; ?>

<?php
if(is_front_page() || is_page($try_page_id)): ?>
    <script src="https://assets.calendly.com/assets/external/widget.js" async></script>
<!--    <script src="--><?php //echo get_stylesheet_directory_uri(); ?><!--/js/try.js" defer=""></script>-->
<?php endif;
?>

<?php if(is_front_page() || is_page($try_page_id)): ?>
    <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/libs/rellax.min.js" defer=""></script>
    <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/rellax.js" defer=""></script>
<?php endif; ?>
<script>
    window.ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
</script>
<?php wp_footer(); ?>
</body>
</html>