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 | app/Shortcodes/DiscountAndDealsShortcode.php +9 -4 3.0.2.9 → 3.0.16 View file →
@@ -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',