|
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')): ?> |
|
76 | 66 | "transitionduration": <?= /* @escapeNotVerified */ $block->getVar("gallery/transition/duration") ?>, |
77 | 67 | <?php endif; ?> |
78 | 68 | "transition": "<?= /* @escapeNotVerified */ $block->getVar("gallery/transition/effect") ?>", |
79 | | - <?php if (($block->getVar("gallery/navarrows"))): ?> |
80 | | - "navarrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/navarrows") ?>, |
81 | | - <?php endif; ?> |
| 69 | + "navarrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/navarrows") ? 'true' : 'false' ?>, |
82 | 70 | "navtype": "<?= /* @escapeNotVerified */ $block->getVar("gallery/navtype") ?>", |
83 | 71 | "navdir": "<?= /* @escapeNotVerified */ $block->getVar("gallery/navdir") ?>" |
84 | 72 | }, |
85 | 73 | "fullscreen": { |
86 | 74 | "nav": "<?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/nav") ?>", |
87 | | - <?php if ($block->getVar("gallery/fullscreen/loop")): ?> |
88 | | - "loop": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/loop") ?>, |
89 | | - <?php endif; ?> |
| 75 | + "loop": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/loop") ? 'true' : 'false' ?>, |
90 | 76 | "navdir": "<?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/navdir") ?>", |
91 | | - <?php if ($block->getVar("gallery/transition/navarrows")): ?> |
92 | | - "navarrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/navarrows") ?>, |
93 | | - <?php endif; ?> |
| 77 | + "navarrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/navarrows") ? 'true' : 'false' ?>, |
94 | 78 | "navtype": "<?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/navtype") ?>", |
95 | | - <?php if ($block->getVar("gallery/fullscreen/arrows")): ?> |
96 | | - "arrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/arrows") ?>, |
97 | | - <?php endif; ?> |
98 | | - <?php if ($block->getVar("gallery/fullscreen/caption")): ?> |
99 | | - "showCaption": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/caption") ?>, |
100 | | - <?php endif; ?> |
| 79 | + "arrows": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/arrows") ? 'true' : 'false' ?>, |
| 80 | + "showCaption": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/caption") ? 'true' : 'false' ?>, |
101 | 81 | <?php if ($block->getVar("gallery/fullscreen/transition/duration")): ?> |
102 | 82 | "transitionduration": <?= /* @escapeNotVerified */ $block->getVar("gallery/fullscreen/transition/duration") ?>, |
103 | 83 | <?php endif; ?> |
|
0 commit comments