HEX
Server: Apache/2.4.62 (Debian)
System: Linux plxsite 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64
User: root (0)
PHP: 8.1.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/polygant_2023/template-parts/section-form.php
<?php

    $contact_us_form_title_group = get_field('contact_us_form_title_group');
    $cuftg_text = $contact_us_form_title_group['text'];
    $cuftg_animation = $contact_us_form_title_group['animation'];
    $cuftg_animation_name = $contact_us_form_title_group['animation_name'];
    $cuftg_animation_delay = $contact_us_form_title_group['animation_delay'];


    $contact_us_advantages_group = get_field('contact_us_advantages_group');
    $cuag_animation_settings = $contact_us_advantages_group['animation_settings'];
    $cuag_as_animation = $cuag_animation_settings['animation'];
    $cuag_as_animation_name = $cuag_animation_settings['animation_name'];
    $cuag_as_animation_delay = $cuag_animation_settings['animation_delay'];
    $cuag_contact_us_advantages_content = $contact_us_advantages_group['contact_us_advantages_content'];


    $contact_us_advantages_animation_settings_form = get_field('contact_us_advantages_animation_settings_form');
    $cuaasf_animation = $contact_us_advantages_animation_settings_form['animation'];
    $cuaasf_animation_name = $contact_us_advantages_animation_settings_form['animation_name'];
    $cuaasf_animation_delay = $contact_us_advantages_animation_settings_form['animation_delay'];


    $contact_us_form_button_animation = get_field('contact_us_form_button_animation');
    $cufba_animation = $contact_us_form_button_animation['animation'];
    $cufba_animation_name = $contact_us_form_button_animation['animation_name'];
    $cufba_animation_delay = $contact_us_form_button_animation['animation_delay'];

?>

<section class="haveForm">

    <!-- colored rhombuses -->

    <div class="rhombusesBgWrap rhombusesBgWrapTop">
        <div class="rhombusesBg rhombuses6TopBg"></div>
    </div>
    <div class="rhombusesBgWrap rhombusesBgWrapBottom">
        <div class="rhombusesBg rhombuses6BottomBg"></div>
    </div>

    <!-- colored rhombuses -->


    <div class="setTableCell">

        <div class="container">

            <?php if ($cuag_contact_us_advantages_content) : ?>

                <div class="advancedWrap">

                    <div class="row">

                        <?php foreach ($cuag_contact_us_advantages_content as $content) : ?>
                            <div class="col-sm-4 col-md-4">
                                <div class="advancedWrap__content<?php if ($cuag_as_animation) : ?> waypoints--active<?php endif; ?>"<?php if ($cuag_as_animation) : ?> data-animation-name="<?php echo $cuag_as_animation_name; ?>" data-animation-delay="<?php echo $cuag_as_animation_delay; ?>"<?php endif; ?>>
                                    <?php echo $content['content']; ?>
                                </div>
                            </div>

                        <?php endforeach; ?>

                    </div>
                    <!-- row -->

                </div>

            <?php endif; ?>

            <div class="row">

                <div class="col-md-12">
                    <div class="header<?php if ($cuftg_animation) : ?> waypoints--active<?php endif; ?>"<?php if ($cuftg_animation) : ?> data-animation-name="<?php echo $cuftg_animation_name; ?>" data-animation-delay="<?php echo $cuftg_animation_delay; ?>"<?php endif; ?>>
                        <?php echo $cuftg_text; ?>
                    </div>
                </div>

                <div><?php if ($cuaasf_animation) : ?> class="waypoints--active"<?php endif; ?><?php if ($cuaasf_animation) : ?> data-animation-name="<?php echo $cuaasf_animation_name; ?>" data-animation-delay="<?php echo $cuaasf_animation_delay; ?>"<?php endif; ?>>
                    <form class="ajaxRequest" onsubmit="yaCounter32138255.reachGoal('Order_button');return true;">
                        <div class="col-sm-6 col-md-6 col-lg-3">
                            <div class="fieldWrap">
                                <label for="fieldName"><?php echo __('Name', 'polygant'); ?>:</label>
                                <input type="text" id="fieldName" name="name" required>
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6 col-lg-3">
                            <div class="fieldWrap">
                                <label for="fieldPhone"><?php echo __('Phone', 'polygant'); ?>:</label>
                                <input type="tel" id="fieldPhone" name="phone" required>
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6 col-lg-3">
                            <div class="fieldWrap">
                                <label for="fieldEmail"><?php echo __('Email', 'polygant'); ?>:</label>
                                <input type="email" id="fieldEmail" name="email" required>
                            </div>
                        </div>
                        <div class="col-sm-6 col-md-6 col-lg-3">
                            <div class="fieldWrap">
                                <label for="fieldCompanyName"><?php echo __('Company Name', 'polygant'); ?>:</label>
                                <input type="text" id="fieldCompanyName" name="cname">
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="fieldWrap">
                                <label for="fieldMessage"><?php echo __('Your Message', 'polygant'); ?>:</label>
                                <textarea id="fieldMessage" name="message"></textarea>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="fieldWrap">
                                <!-- <label for="fieldPromoCode"><?php echo __('Enter Your Promo Code Here', 'polygant'); ?>:</label>
                                <input type="text" id="fieldPromoCode" name="promo_code"> -->
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="formButtonWrap<?php if ($cufba_animation) : ?> waypoints--active<?php endif; ?>"<?php if ($cufba_animation) : ?> data-animation-name="<?php echo $cufba_animation_name; ?>" data-animation-delay="<?php echo $cufba_animation_delay; ?>"<?php endif; ?>>
                                <button type="submit" class="formButtonWrap__btn">
                                    <span><?php echo __('Request a Quote', 'polygant'); ?></span>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>

            </div>
            <!-- row -->

        </div>
        <!-- container -->

    </div>
    <!-- set table cell -->

</section><!-- have form -->