|
47 | 47 | "data": <?= /* @escapeNotVerified */ $block->getGalleryImagesJson() ?>, |
48 | 48 | "options": { |
49 | 49 | "nav": "<?= /* @escapeNotVerified */ $block->getVar("gallery/nav") ?>", |
50 | | - <?php if (($block->getVar("gallery/loop"))): ?> |
51 | | - "loop": <?= /* @escapeNotVerified */ $block->getVar("gallery/loop") ?>, |
52 | | - <?php endif; ?> |
53 | | - <?php if (($block->getVar("gallery/keyboard"))): ?> |
54 | | - "keyboard": <?= /* @escapeNotVerified */ $block->getVar("gallery/keyboard") ?>, |
55 | | - <?php endif; ?> |
56 | | - <?php if (($block->getVar("gallery/arrows"))): ?> |
57 | | - "arrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/arrows") ?>, |
58 | | - <?php endif; ?> |
59 | | - <?php if (($block->getVar("gallery/allowfullscreen"))): ?> |
60 | | - "allowfullscreen": <?= /* @escapeNotVerified */ $block->getVar("gallery/allowfullscreen") ?>, |
61 | | - <?php endif; ?> |
62 | | - <?php if (($block->getVar("gallery/caption"))): ?> |
63 | | - "showCaption": <?= /* @escapeNotVerified */ $block->getVar("gallery/caption") ?>, |
64 | | - <?php endif; ?> |
| 50 | + "loop": <?= /* @escapeNotVerified */ $block->getVar("gallery/loop") ? 'true' : 'false' ?>, |
| 51 | + "keyboard": <?= /* @escapeNotVerified */ $block->getVar("gallery/keyboard") ? 'true' : 'false' ?>, |
| 52 | + "arrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/arrows") ? 'true' : 'false' ?>, |
| 53 | + "allowfullscreen": <?= /* @escapeNotVerified */ $block->getVar("gallery/allowfullscreen") ? 'true' : 'false' ?>, |
| 54 | + "showCaption": <?= /* @escapeNotVerified */ $block->getVar("gallery/caption") ? 'true' : 'false' ?>, |
65 | 55 | "width": "<?= /* @escapeNotVerified */ $block->getImageAttribute('product_page_image_medium', 'width') ?>", |
66 | 56 | "thumbwidth": "<?= /* @escapeNotVerified */ $block->getImageAttribute('product_page_image_small', 'width') ?>", |
67 | 57 | <?php if ($block->getImageAttribute('product_page_image_small', 'height') || $block->getImageAttribute('product_page_image_small', 'width')): ?> |
|
79 | 69 | "transitionduration": <?= /* @escapeNotVerified */ $block->getVar("gallery/transition/duration") ?>, |
80 | 70 | <?php endif; ?> |
81 | 71 | "transition": "<?= /* @escapeNotVerified */ $block->getVar("gallery/transition/effect") ?>", |
82 | | - <?php if (($block->getVar("gallery/navarrows"))): ?> |
83 | | - "navarrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/navarrows") ?>, |
84 | | - <?php endif; ?> |
| 72 | + "navarrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/navarrows") ? 'true' : 'false' ?>, |
85 | 73 | "navtype": "<?= /* @escapeNotVerified */ $block->getVar("gallery/navtype") ?>", |
86 | 74 | "navdir": "<?= /* @escapeNotVerified */ $block->getVar("gallery/navdir") ?>" |
87 | 75 | }, |
88 | 76 | "fullscreen": { |
89 | 77 | "nav": "<?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/nav") ?>", |
90 | | - <?php if ($block->getVar("gallery/fullscreen/loop")): ?> |
91 | | - "loop": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/loop") ?>, |
92 | | - <?php endif; ?> |
| 78 | + "loop": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/loop") ? 'true' : 'false' ?>, |
93 | 79 | "navdir": "<?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/navdir") ?>", |
94 | | - <?php if ($block->getVar("gallery/transition/navarrows")): ?> |
95 | | - "navarrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/navarrows") ?>, |
96 | | - <?php endif; ?> |
| 80 | + "navarrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/navarrows") ? 'true' : 'false' ?>, |
97 | 81 | "navtype": "<?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/navtype") ?>", |
98 | | - <?php if ($block->getVar("gallery/fullscreen/arrows")): ?> |
99 | | - "arrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/arrows") ?>, |
100 | | - <?php endif; ?> |
101 | | - <?php if ($block->getVar("gallery/fullscreen/caption")): ?> |
102 | | - "showCaption": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/caption") ?>, |
103 | | - <?php endif; ?> |
| 82 | + "arrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/arrows") ? 'true' : 'false' ?>, |
| 83 | + "showCaption": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/caption") ? 'true' : 'false' ?>, |
104 | 84 | <?php if ($block->getVar("gallery/fullscreen/transition/duration")): ?> |
105 | 85 | "transitionduration": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/transition/duration") ?>, |
106 | 86 | <?php endif; ?> |
|
0 commit comments