Ejemplo n.º 1
0
     $price_type = st_get_language("activity");
     $price = STActivity::get_price_person($data['id']);
     $price_sale = $price['adult_new'];
     $price = $price['adult'];
     break;
 case 'st_tours':
     $icon_type = '<i class="fa fa-bolt"></i>';
     $price_type = st_get_language("tour");
     $price = STTour::get_price_person($data['id']);
     $price_sale = $price['adult_new'];
     $price = $price['adult'];
     break;
 case 'st_holidays':
     $icon_type = '<i class="fa fa-bolt"></i>';
     $price_type = st_get_language("holiday");
     $price = STHoliday::get_price_person($data['id']);
     $price_sale = $price['adult_new'];
     $price = $price['adult'];
     break;
 case 'st_cars':
     $icon_type = '<i class="fa fa-car"></i>';
     $price_type = st_get_language('user_person');
     $price = get_post_meta($data['id'], 'cars_price', true);
     $count_sale = get_post_meta($data['id'], 'discount', true);
     if (!empty($count_sale)) {
         $x = $price;
         $price_sale = $price - $price * ($count_sale / 100);
         $price = $price_sale;
         $price_sale = $x;
     }
     break;