| @@ -56,9 +56,17 @@ | ||
| 56 | 56 | data-name="<?php echo esc_attr($current_filter_name); ?>" |
| 57 | 57 | style="display:none;"></div> |
| 58 | 58 | <?php endif; ?> |
| 59 | 59 | |
| 60 | -<div class="yatra-listing-page yatra-trip-listing" id="yatra-trip-listing-root"> | |
| 60 | +<?php | |
| 61 | +// Trip-listing card layout (Settings → Design). The archive follows the | |
| 62 | +// site-wide setting; the class is placed on this container so the listing CSS | |
| 63 | +// can key off it (see assets/css/listing.css "Compact card layout"). | |
| 64 | +$yatra_listing_layout_class = \Yatra\Providers\FrontendAssetsProvider::listingLayoutClasses( | |
| 65 | + \Yatra\Providers\FrontendAssetsProvider::resolveListingLayout() | |
| 66 | +); | |
| 67 | +?> | |
| 68 | +<div class="yatra-listing-page yatra-trip-listing<?php echo $yatra_listing_layout_class ? ' ' . esc_attr($yatra_listing_layout_class) : ''; ?>" id="yatra-trip-listing-root"> | |
| 61 | 69 | <!-- Trip Search Shortcode - replaces hardcoded search UI --> |
| 62 | 70 | <div class="yatra-trip-listing-search-wrap"> |
| 63 | 71 | <?php |
| 64 | 72 | // Build the [yatra_search] arguments from the Search & Listing toggles so |