PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.17
Yatra – Travel Booking & Tour Operator Software v3.0.17
3.0.17 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 All 85 releases
← All changes | assets/dist/blocks/tour.js +35 -0 3.0.13 → 3.0.17 View file →
@@ -354,8 +354,33 @@
354 354 label: i18n.__("Show pagination", "yatra"),
355 355 checked: attributes2.show_pagination,
356 356 onChange: (value) => setAttributes({ show_pagination: value })
357 357 }
358 + ), /* @__PURE__ */ element.createElement(
359 + components.SelectControl,
360 + {
361 + label: i18n.__("Card layout", "yatra"),
362 + help: i18n.__(
363 + "Override the site-wide Listing Card Layout (Settings → Design) for this block only. Compact shows a denser image + title + price + View Details card.",
364 + "yatra"
365 + ),
366 + value: attributes2.cardLayout || "inherit",
367 + options: [
368 + { label: i18n.__("Use site default", "yatra"), value: "inherit" },
369 + { label: i18n.__("Standard", "yatra"), value: "standard" },
370 + {
371 + label: i18n.__("Compact (mobile only)", "yatra"),
372 + value: "compact_mobile"
373 + },
374 + {
375 + label: i18n.__("Compact (everywhere)", "yatra"),
376 + value: "compact_all"
377 + }
378 + ],
379 + onChange: (value) => setAttributes({
380 + cardLayout: value
381 + })
382 + }
358 383 )), /* @__PURE__ */ element.createElement(components.PanelBody, { title: i18n.__("Filters", "yatra"), initialOpen: false }, /* @__PURE__ */ element.createElement(
359 384 ClassificationMultiSelect,
360 385 {
361 386 taxonomy: "destination",
@@ -500,8 +525,18 @@
500 525 },
501 526 show_pagination: {
502 527 type: "boolean",
503 528 "default": true
529 + },
530 + cardLayout: {
531 + type: "string",
532 + "default": "inherit",
533 + "enum": [
534 + "inherit",
535 + "standard",
536 + "compact_mobile",
537 + "compact_all"
538 + ]
504 539 },
505 540 destinationIds: {
506 541 type: "array",
507 542 "default": []