PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | templates/single-trip.php +1 -9 3.0.2.9 → 3.0.16 View file →
@@ -37,11 +37,8 @@
37 37 $has_availability = $pricing_data['has_availability'];
38 38 $has_traveler_pricing = $pricing_data['has_traveler_pricing'];
39 39 $pricing_type = $pricing_data['pricing_type'];
40 40
41 -// Get group discounts data
42 -$group_discounts = yatra_single_trip_get_group_discounts($trip->id);
43 -
44 41 // Prepare variables for templates
45 42 $destinations = isset($trip->destinations) ? $trip->destinations : [];
46 43 $activities = isset($trip->activities) ? $trip->activities : [];
47 44 $trip_categories = isset($trip->trip_categories) ? $trip->trip_categories : [];
@@ -69,9 +66,9 @@
69 66
70 67 // Extract video ID and thumbnail
71 68 if (strpos($video_url, 'youtube.com') !== false || strpos($video_url, 'youtu.be') !== false) {
72 69 // YouTube thumbnail extraction
73 - preg_match('/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([^&\n?#]+)/', $video_url, $matches);
70 + preg_match('/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/|youtube\.com\/shorts\/|youtube\.com\/live\/)([^&\n?#\/]+)/', $video_url, $matches);
74 71 $video_id = $matches[1] ?? '';
75 72 $thumbnail_url = "https://img.youtube.com/vi/{$video_id}/maxresdefault.jpg";
76 73 } elseif (strpos($video_url, 'vimeo.com') !== false) {
77 74 // Vimeo thumbnail extraction
@@ -167,13 +164,8 @@
167 164
168 165 <!-- Sidebar - Booking Card -->
169 166 <?php yatra_get_template('partials/single-trip/content-sidebar', ['trip' => $trip, 'has_availability' => $has_availability, 'has_traveler_pricing' => $has_traveler_pricing, 'base_price' => $base_price, 'pricing_type' => $pricing_type]); ?>
170 167 </div>
171 -
172 - <!-- Group Discount Section -->
173 - <?php if ($group_discounts['has_group_discounts'] && !empty($group_discounts['group_discounts_data'])): ?>
174 - <?php yatra_get_template('partials/single-trip/group-discounts', ['trip' => $trip, 'group_discounts_data' => $group_discounts['group_discounts_data']]); ?>
175 - <?php endif; ?>
176 168
177 169 <!-- Reviews Section - Full Width (before similar trips for social proof) -->
178 170 <?php if (yatra_reviews_enabled()): ?>
179 171 <?php yatra_get_template('partials/single-trip/reviews', ['trip' => $trip]); ?>