| @@ -150,11 +150,16 @@ | ||
| 150 | 150 | $entity_image = $placeholder_src; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | yatra_get_header(); |
| 154 | + | |
| 155 | +// Trip-listing card layout (Settings → Design); follows the site-wide setting. | |
| 156 | +$yatra_listing_layout_class = \Yatra\Providers\FrontendAssetsProvider::listingLayoutClasses( | |
| 157 | + \Yatra\Providers\FrontendAssetsProvider::resolveListingLayout() | |
| 158 | +); | |
| 154 | 159 | ?> |
| 155 | 160 | |
| 156 | -<div class="yatra-listing-page yatra-taxonomy-page yatra-<?php echo esc_attr($type); ?>-page"> | |
| 161 | +<div class="yatra-listing-page yatra-taxonomy-page yatra-<?php echo esc_attr($type); ?>-page<?php echo $yatra_listing_layout_class ? ' ' . esc_attr($yatra_listing_layout_class) : ''; ?>"> | |
| 157 | 162 | |
| 158 | 163 | <!-- Hero Section --> |
| 159 | 164 | <div class="yatra-taxonomy-hero"<?php echo $entity_image ? ' style="background-image: url(' . esc_url($entity_image) . ');"' : ''; ?>> |
| 160 | 165 | <div class="yatra-taxonomy-hero-overlay"></div> |