| @@ -26,9 +26,13 @@ | ||
| 26 | 26 | 'show_percentage' => 'yes', |
| 27 | 27 | 'show_time_left' => 'yes', |
| 28 | 28 | 'show_pagination' => 'yes', |
| 29 | 29 | 'show_filters' => 'no', |
| 30 | - 'title' => 'Special Deals & Discounts' | |
| 30 | + 'title' => 'Special Deals & Discounts', | |
| 31 | + // Per-instance card layout override. 'inherit' (default) = use the | |
| 32 | + // site-wide Settings → Design "Listing Card Layout". | |
| 33 | + // Also accepts: standard | compact_mobile | compact_all. | |
| 34 | + 'card_layout' => 'inherit' | |
| 31 | 35 | ]); |
| 32 | 36 | } |
| 33 | 37 | |
| 34 | 38 | /** |
| @@ -62,14 +66,15 @@ | ||
| 62 | 66 | 'total_found' => $trips_data['total_found'] ?? 0, |
| 63 | 67 | 'per_page' => $per_page |
| 64 | 68 | ]; |
| 65 | 69 | |
| 66 | - // Enqueue same CSS and JS as regular trip shortcode | |
| 70 | + $tripShortcodeCssPath = YATRA_PLUGIN_PATH . 'assets/css/shortcodes/trip-shortcode.css'; | |
| 71 | + $tripShortcodeCssVer = is_readable($tripShortcodeCssPath) ? YATRA_VERSION . '.' . filemtime($tripShortcodeCssPath) : YATRA_VERSION; | |
| 67 | 72 | wp_enqueue_style( |
| 68 | 73 | 'yatra-trip-shortcode', |
| 69 | 74 | YATRA_PLUGIN_URL . 'assets/css/shortcodes/trip-shortcode.css', |
| 70 | - [], | |
| 71 | - YATRA_VERSION | |
| 75 | + \Yatra\Providers\FrontendAssetsProvider::shortcodeStyleDependencies(), | |
| 76 | + $tripShortcodeCssVer | |
| 72 | 77 | ); |
| 73 | 78 | |
| 74 | 79 | wp_enqueue_script( |
| 75 | 80 | 'yatra-trip-shortcode', |