<?php
/**
 * Intranet
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   Rocket_form
 * @author    Softdiscover <info@softdiscover.com>
 * @copyright 2015 Softdiscover
 * @license   http://www.php.net/license/3_01.txt  PHP License 3.01
 * @link      https://softdiscover.com/zigaform/wordpress-cost-estimator
 */
if ( ! defined('BASEPATH')) {
    exit('No direct script access allowed');
}
ob_start();
$nameField =  apply_filters('uifm_ms_render_field_front', "uiform_fields[".$id."]", $id, $type);
?>
 <div class="rockfm-input15-wrap">
        <input class="rockfm-input15-switch" 
                type="checkbox"
                data-uifm-inp-price="<?php echo ( isset($price['unit_price']) ) ? floatval($price['unit_price']) : ''; ?>"
                data-uifm-tabnum="<?php echo $tab_num; ?>"
                data-uifm-txt-yes="<?php echo $input15['txt_yes']; ?>" 
                data-uifm-txt-no="<?php echo $input15['txt_no']; ?>"
                name="<?php echo $nameField; ?>"
                />
        
    </div>
<?php
if ( isset($price['lbl_show_st']) && intval($price['lbl_show_st']) === 1) {
    $tmp_price_label = urldecode($price['lbl_show_format']);
    if ( ! empty($tmp_price_label)) {
        ?>
            <span class="rockfm-inp15-opt-price-lbl"><?php echo $tmp_price_label; ?></span>
            <?php
    }
}
?>
<?php
$cntACmp = ob_get_contents();
$cntACmp = Uiform_Form_Helper::sanitize_output($cntACmp);
ob_end_clean();

echo $cntACmp;
?>
