<?php
/**
 * Inquiry form
 */

global $post;

if ( yit_get_post_meta( $post->ID, '_info_form') !== 'yes' || ! function_exists( 'YIT_Contact_Form' ) ) return;

$form_id = yit_get_option('shop-single-product-contact-form');
$icon = yit_get_option( 'shop-inquiry-title-icon' );

?>

<div id="inquiry-form" class="clearfix">
<div class="product-inquiry">
    <?php if ( $icon['select'] != 'none' ) :
            if( $icon['select'] == 'icon' ) { ?>
                <span class="fa fa-<?php echo $icon['icon']; ?>"></span>
            <?php } else{ ?>
                <span class="custom-icon"><img src="<?php echo $icon['custom']; ?>"></span>
            <?php }
     endif; ?>
    <span class="inquiry-title"><?php echo yit_get_option( 'shop-inquiry-title' ) ?></span>
</div>
<?php echo do_shortcode( '[contact_form name="'. $form_id .'" ]' ) ?>
</div>