/* verify a description */ $has_desc = $field_desc ? TRUE : FALSE; echo '<div class="format-setting type-post_select_ajax ' . ($has_desc ? 'has-desc' : 'no-desc') . '">'; /* description */ echo $has_desc ? '<div class="description">' . htmlspecialchars_decode($field_desc) . '</div>' : ''; /* format setting inner wrapper */ echo '<div class="format-setting-inner">'; /* allow fields to be filtered */ echo '<div class="option-tree-ui-' . $type . '-input-wrap">'; ?> <input type="hidden" name="st_custom_price_nonce" value="<?php echo esc_attr($st_custom_price_nonce); ?> "/> <?php $data = STAdmin::st_get_all_price($post_id); ?> <div class="data_price"> <?php if (!empty($data) and is_array($data)) { ?> <?php foreach ($data as $k => $v) { $id_rand = rand(); ?> <div class="item"> <div class="data"> <div class="form"> <label ><?php _e("Price:", ST_TEXTDOMAIN); ?>
echo esc_html(TravelHelper::format_money($v['price'])); ?> </td> </tr> <?php } ?> </table> </div> <?php } } if ($is_custom_price == 'price_by_date') { ?> <?php $data_price = STAdmin::st_get_all_price(get_the_ID()); $format = TravelHelper::getDateFormat(); if (!empty($data_price)) { ?> <div class="table-responsive"> <table class="table table-bordered"> <tr> <th><?php _e("#", ST_TEXTDOMAIN); ?> </th> <th><?php _e("Date Start", ST_TEXTDOMAIN); ?> </th> <th><?php