|
28 | 28 | value="single"
|
29 | 29 | data-bind="checked:type">
|
30 | 30 | <label for="apply-single-set-radio" class="admin__field-label">
|
31 |
| - <span><?= $block->escapeHtml( |
32 |
| - __('Apply single set of images to all SKUs') |
33 |
| - ); ?></span> |
| 31 | + <span><?= $block->escapeHtml(__('Apply single set of images to all SKUs')); ?></span> |
34 | 32 | </label>
|
35 | 33 | </div>
|
36 | 34 | </li>
|
|
67 | 65 | <div data-role="gallery"
|
68 | 66 | class="gallery"
|
69 | 67 | data-images="[]"
|
70 |
| - data-types="<?= $block->escapeHtml( |
71 |
| - $this->helper(Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getImageTypes()) |
72 |
| - ) ?>" |
73 |
| - > |
| 68 | + data-types="<?= $block->escapeHtml($this->helper(Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getImageTypes())) ?>"> |
74 | 69 | <div class="image image-placeholder">
|
75 | 70 | <div data-role="uploader" class="uploader">
|
76 | 71 | <div class="image-browse">
|
|
88 | 83 | </div>
|
89 | 84 | </div>
|
90 | 85 |
|
91 |
| - <?php foreach ($block->getImageTypes() as $typeData) : |
92 |
| - ?> |
| 86 | + <?php foreach ($block->getImageTypes() as $typeData) : ?> |
93 | 87 | <input name="<?= $block->escapeHtml($typeData['name']) ?>"
|
94 | 88 | class="image-<?= $block->escapeHtml($typeData['code']) ?>"
|
95 | 89 | type="hidden"
|
96 | 90 | value="<?= $block->escapeHtml($typeData['value']) ?>"/>
|
97 |
| - <?php |
98 |
| - endforeach; |
99 |
| - ?> |
| 91 | + <?php endforeach; ?> |
100 | 92 |
|
101 | 93 | <script data-template="uploader" type="text/x-magento-template">
|
102 | 94 | <div id="<%- data.id %>" class="file-row">
|
|
151 | 143 | </div>
|
152 | 144 | </div>
|
153 | 145 | <ul class="item-roles" data-role="roles-labels">
|
154 |
| - <?php |
155 |
| - foreach ($block->getMediaAttributes() as $attribute) : |
156 |
| - ?> |
| 146 | + <?php foreach ($block->getMediaAttributes() as $attribute) :?> |
157 | 147 | <li data-role-code="<?= $block->escapeHtml($attribute->getAttributeCode()) ?>"
|
158 | 148 | class="item-role item-role-<?= $block->escapeHtml($attribute->getAttributeCode()) ?>">
|
159 | 149 | <?= /* @noEscape */ $attribute->getFrontendLabel() ?>
|
160 | 150 | </li>
|
161 |
| - <?php |
162 |
| - endforeach; |
163 |
| - ?> |
| 151 | + <?php endforeach; ?> |
164 | 152 | </ul>
|
165 | 153 | </div>
|
166 | 154 | </script>
|
|
239 | 227 | <?= $block->escapeHtml($attribute->getFrontendLabel()); ?>
|
240 | 228 | </label>
|
241 | 229 | </li>
|
242 |
| - <?php |
243 |
| - endforeach; |
244 |
| - ?> |
| 230 | + <?php endforeach; ?> |
245 | 231 | </ul>
|
246 | 232 | </div>
|
247 | 233 | </div>
|
|
314 | 300 | <div data-role="gallery"
|
315 | 301 | class="gallery"
|
316 | 302 | data-images="[]"
|
317 |
| - data-types="<?= $block->escapeHtml( |
318 |
| - $this->helper(Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getImageTypes()) |
319 |
| - ) ?>" |
320 |
| - > |
| 303 | + data-types="<?= $block->escapeHtml($this->helper(Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getImageTypes())) ?>"> |
321 | 304 | <div class="image image-placeholder">
|
322 | 305 | <div data-role="uploader" class="uploader">
|
323 | 306 | <div class="image-browse">
|
|
335 | 318 | </div>
|
336 | 319 | </div>
|
337 | 320 |
|
338 |
| - <?php foreach ($block->getImageTypes() as $typeData) : |
339 |
| - ?> |
| 321 | + <?php foreach ($block->getImageTypes() as $typeData) :?> |
340 | 322 | <input name="<?= $block->escapeHtml($typeData['name']) ?>"
|
341 | 323 | class="image-<?= $block->escapeHtml($typeData['code']) ?>"
|
342 | 324 | type="hidden"
|
343 | 325 | value="<?= $block->escapeHtml($typeData['value']) ?>"/>
|
344 |
| - <?php |
345 |
| - endforeach; |
346 |
| - ?> |
| 326 | + <?php endforeach; ?> |
347 | 327 |
|
348 | 328 | <script data-template="uploader" type="text/x-magento-template">
|
349 | 329 | <div id="<%- data.id %>" class="file-row">
|
|
400 | 380 | </div>
|
401 | 381 | </div>
|
402 | 382 | <ul class="item-roles" data-role="roles-labels">
|
403 |
| - <?php |
404 |
| - foreach ($block->getMediaAttributes() as $attribute) : |
405 |
| - ?> |
| 383 | + <?php foreach ($block->getMediaAttributes() as $attribute) :?> |
406 | 384 | <li data-role-code="<?= $block->escapeHtml($attribute->getAttributeCode()) ?>"
|
407 | 385 | class="item-role item-role-<?= $block->escapeHtml($attribute->getAttributeCode()) ?>">
|
408 | 386 | <?= $block->escapeHtml($attribute->getFrontendLabel()) ?>
|
409 | 387 | </li>
|
410 |
| - <?php |
411 |
| - endforeach; |
412 |
| - ?> |
| 388 | + <?php endforeach; ?> |
413 | 389 | </ul>
|
414 | 390 | </div>
|
415 | 391 | </script>
|
|
472 | 448 | </label>
|
473 | 449 | <div class="admin__field-control">
|
474 | 450 | <ul class="multiselect-alt">
|
475 |
| - <?php |
476 |
| - foreach ($block->getMediaAttributes() as $attribute) : |
477 |
| - ?> |
| 451 | + <?php foreach ($block->getMediaAttributes() as $attribute) :?> |
478 | 452 | <li class="item">
|
479 | 453 | <label>
|
480 | 454 | <input class="image-type"
|
|
485 | 459 | <?= $block->escapeHtml($attribute->getFrontendLabel()) ?>
|
486 | 460 | </label>
|
487 | 461 | </li>
|
488 |
| - <?php |
489 |
| - endforeach; |
490 |
| - ?> |
| 462 | + <?php endforeach; ?> |
491 | 463 | </ul>
|
492 | 464 | </div>
|
493 | 465 | </div>
|
|
518 | 490 | <% if (data.disabled == 1) { %>checked="checked"<% } %> />
|
519 | 491 |
|
520 | 492 | <label for="hide-from-product-page" class="admin__field-label">
|
521 |
| - <?= $block->escapeHtml( |
522 |
| - __('Hide from Product Page') |
523 |
| - ); ?> |
| 493 | + <?= $block->escapeHtml(__('Hide from Product Page')); ?> |
524 | 494 | </label>
|
525 | 495 | </div>
|
526 | 496 | </div>
|
|
0 commit comments