<?php

/**
*@since 1.1.9
* use for Booking Hotel
**/
?>
<div class="st-create">
    <h2><?php 
_e("Add New Hotel Booking", ST_TEXTDOMAIN);
?>
</h2>
</div>
<form action="" method="post" id="form-add-booking-partner" class="form-add-booking-partner <?php 
echo STUser_f::get_status_msg();
?>
">
	<?php 
wp_nonce_field('add_booking_partner', 'add_booking_partner_field');
?>
	<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
		<div class="panel panel-default">
    		<div class="panel-heading" role="tab" id="headingOne">
      			<h2 class="panel-title">
        			<a style="font-size: 22px; font-weight: 400;"  role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
          				<?php 
echo __('Customer Information', ST_TEXTDOMAIN);
?>
        			</a>
      			</h2>
    		</div>
Пример #2
0
 /**
  *@since 1.1.7
  **/
 static function getListLocation()
 {
     if (!is_admin()) {
         $post_id = STInput::request('id');
     } else {
         $post_id = STInput::request('post');
     }
     $muti_location = STInput::request('multi_location');
     if (empty($post_id) || !get_post_status($post_id) and empty($muti_location)) {
         $list_location = json_encode("");
     } else {
         $list_location = get_post_meta($post_id, 'multi_location', true);
         if (empty($list_location) and !empty($muti_location)) {
             if (STUser_f::get_status_msg() != 'success') {
                 $list_location = implode(',', $muti_location);
             }
         }
         if (!empty($list_location)) {
             if (is_array($list_location)) {
                 foreach ($list_location as $key => $val) {
                     $list_location[$key] = preg_replace("/(\\_)/", "", $list_location[$key]);
                 }
             } else {
                 $list_location = preg_replace("/(\\_)/", "", $list_location);
                 $list_location = explode(",", $list_location);
             }
             $list_location = json_encode($list_location);
         } else {
             $list_location = get_post_meta($post_id, 'id_location', true);
             if (!empty($list_location)) {
                 $arr = array($list_location);
                 $list_location = json_encode($arr);
             } else {
                 $list_location = get_post_meta($post_id, 'location_id', true);
                 if (!empty($list_location)) {
                     $arr = array($list_location);
                     $list_location = json_encode($arr);
                 } else {
                     $list_location = json_encode("");
                 }
             }
         }
     }
     wp_localize_script('jquery', 'list_location', array('list' => $list_location));
 }