<?php
/**
 * Inquiry form
 */

global $post;

if ( yit_get_post_meta( $post->ID, '_info_form') !== 'yes' || ! function_exists( 'YIT_Contact_Form' ) || yit_get_option( 'shop-remove-inquiry-form' ) == 'yes' ) 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; ?>
    <h4><?php echo yit_get_option( 'shop-inquiry-title' ) ?></h4>
</div>
<?php echo do_shortcode( '[contact_form name="'. $form_id .'" ]' ) ?>
</div>
