| @@ -259,9 +259,9 @@ | ||
| 259 | 259 | echo esc_html__('Price on request', 'yatra'); |
| 260 | 260 | } |
| 261 | 261 | ?> |
| 262 | 262 | </div> |
| 263 | - <div class="yatra-price-note"><?php esc_html_e('per person', 'yatra'); ?></div> | |
| 263 | + <div class="yatra-price-note"><?php echo esc_html(\Yatra\Services\TripPricingService::resolveDisplayPricing($trip)['price_unit_label'] ?? __('per person', 'yatra')); ?></div> | |
| 264 | 264 | <?php if (!empty($yatra_act_urgency)) : ?> |
| 265 | 265 | <?php foreach ($yatra_act_urgency as $yatra_a_urg) : ?> |
| 266 | 266 | <div style="margin-top:6px;font-size:11px;line-height:1.35;color:#92400e;background:#fef3c7;padding:4px 6px;border-radius:4px;"> |
| 267 | 267 | <?php echo esc_html((string) $yatra_a_urg); ?> |
| @@ -282,9 +282,9 @@ | ||
| 282 | 282 | <div style="text-align: center; padding: 40px; background: #f9fafb; border-radius: 12px; margin-bottom: 40px;"> |
| 283 | 283 | <p style="color: #6b7280; margin: 0 0 16px 0;"> |
| 284 | 284 | <?php esc_html_e('No trips are currently available with this activity.', 'yatra'); ?> |
| 285 | 285 | </p> |
| 286 | - <a href="<?php echo esc_url(home_url('/' . \Yatra\Services\SettingsService::getTripBase() . '/')); ?>" | |
| 286 | + <a href="<?php echo esc_url(function_exists('yatra_get_trip_listing_url') ? yatra_get_trip_listing_url() : home_url('/' . \Yatra\Services\SettingsService::getTripBase() . '/')); ?>" | |
| 287 | 287 | style="color: #2563eb; text-decoration: none; font-weight: 500;"> |
| 288 | 288 | <?php esc_html_e('Browse all trips', 'yatra'); ?> |
| 289 | 289 | </a> |
| 290 | 290 | </div> |
| @@ -290,9 +290,9 @@ | ||
| 290 | 290 | </div> |
| 291 | 291 | <?php endif; ?> |
| 292 | 292 | |
| 293 | 293 | <div style="text-align: center;"> |
| 294 | - <a href="<?php echo esc_url(add_query_arg(['activity' => urlencode($activity->slug)], home_url('/' . \Yatra\Services\SettingsService::getTripBase() . '/'))); ?>" | |
| 294 | + <a href="<?php echo esc_url(add_query_arg(['activity' => urlencode($activity->slug)], function_exists('yatra_get_trip_listing_url') ? yatra_get_trip_listing_url() : home_url('/' . \Yatra\Services\SettingsService::getTripBase() . '/'))); ?>" | |
| 295 | 295 | class="yatra-btn" |
| 296 | 296 | style="display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: #059669; color: white; text-decoration: none; border-radius: 6px; font-weight: 600; transition: background-color 0.2s;"> |
| 297 | 297 | <svg width="20" height="20" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 298 | 298 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/> |
| @@ -303,9 +303,9 @@ | ||
| 303 | 303 | </div> |
| 304 | 304 | |
| 305 | 305 | <!-- Back to Activities --> |
| 306 | 306 | <div style="text-align: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid #e5e7eb;"> |
| 307 | - <a href="<?php echo esc_url(home_url('/' . \Yatra\Services\SettingsService::getString('activity_base', 'activity') . '/')); ?>" | |
| 307 | + <a href="<?php echo esc_url(function_exists('yatra_get_taxonomy_listing_url') ? yatra_get_taxonomy_listing_url('activity') : home_url('/' . \Yatra\Services\SettingsService::getActivityBase() . '/')); ?>" | |
| 308 | 308 | style="color: #6b7280; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;"> |
| 309 | 309 | <svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 310 | 310 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"/> |
| 311 | 311 | </svg> |