HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //opt/enquiry-button.php
<?php
/**
 * Enquiry button
 *
 * This template can be overridden by copying it to yourtheme/quoteup/public/enquiry-modal/enquiry-button.php.
 *
 * HOWEVER, on occasion QuoteUp will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @author  WisdmLabs
 * @version 6.1.0
 */

$product = wc_get_product($prod_id);
$enquiryButtonDisabled = $product->is_type('variable') ? 'disabled' : '';
?>
<!--contact form or btn-->
<div class="quote-form">
    <!-- Button trigger modal -->
    <?php
    if (isset($form_data[ 'show_button_as_link' ]) && $form_data[ 'show_button_as_link' ] == 1) {
        ?>
        <a id="wdm-quoteup-trigger-<?php echo esc_attr($prod_id); ?>" data-toggle="wdm-quoteup-modal" data-target="#wdm-quoteup-modal" href='#' style='font-weight: bold;<?php echo esc_attr($button_text_color); ?>'>
            <?php echo esc_html($instance->returnButtonText($form_data)); ?>
        </a>
        <?php
    } else {
        ?>
            <?php echo esc_html($instance->returnButtonText($form_data)); ?>
        </button>
        <?php
    } ?>
</div><!--/contact form or btn-->