5
5
*/
6
6
7
7
// phpcs:disable PHPCompatibility.Miscellaneous.RemovedAlternativePHPTags.MaybeASPOpenTagFound
8
+ // phpcs:disable Generic.Files.LineLength.TooLong
8
9
/** @var $block \Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual */
9
10
10
11
$ stores = $ block ->getStoresSortedBySortOrder ();
@@ -20,7 +21,7 @@ $stores = $block->getStoresSortedBySortOrder();
20
21
<th class="col-draggable"></th>
21
22
<th class="col-default"><span><?= $ block ->escapeHtml (__ ('Is Default ' )) ?> </span></th>
22
23
<th><span><?= $ block ->escapeHtml (__ ('Swatch ' )) ?> </span></th>
23
- <?php foreach ($ stores as $ _store ) : ?>
24
+ <?php foreach ($ stores as $ _store ): ?>
24
25
<th<?= ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ) ? ' class="_required" ' : '' ?> >
25
26
<span><?= $ block ->escapeHtml ($ _store ->getName ()) ?> </span>
26
27
</th>
@@ -39,7 +40,7 @@ $stores = $block->getStoresSortedBySortOrder();
39
40
</tr>
40
41
<tr>
41
42
<th colspan="<?= (int )$ colTotal ?> " class="col-actions-add">
42
- <?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()) : ?>
43
+ <?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()): ?>
43
44
<button id="add_new_swatch_visual_option_button"
44
45
title="<?= $ block ->escapeHtml (__ ('Add Swatch ' )) ?> "
45
46
type="button" class="action- scalable add">
@@ -55,7 +56,7 @@ $stores = $block->getStoresSortedBySortOrder();
55
56
<script id="swatch-visual-row-template" type="text/x-magento-template">
56
57
<tr>
57
58
<td class="col-draggable">
58
- <?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()) : ?>
59
+ <?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()): ?>
59
60
<div data-role="draggable-handle" class="draggable-handle"
60
61
title="<?= $ block ->escapeHtml (__ ('Sort Option ' )) ?> "></div>
61
62
<?php endif ; ?>
@@ -86,7 +87,7 @@ $stores = $block->getStoresSortedBySortOrder();
86
87
</div>
87
88
</div>
88
89
</td>
89
- <?php foreach ($ stores as $ _store ) : ?>
90
+ <?php foreach ($ stores as $ _store ): ?>
90
91
<td class="swatch-col-<%- data.id %>">
91
92
<input name="optionvisual[value][<%- data.id %>][<?= (int )$ _store ->getId () ?> ]"
92
93
value="<%- data.store<?= (int ) $ _store ->getId () ?> %>"
@@ -96,7 +97,7 @@ $stores = $block->getStoresSortedBySortOrder();
96
97
<?php endforeach ; ?>
97
98
<td id="delete_button_swatch_container_<%- data.id %>" class="col-delete">
98
99
<input type="hidden" class="delete-flag" name="optionvisual[delete][<%- data.id %>]" value="" />
99
- <?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()) : ?>
100
+ <?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()): ?>
100
101
<button title="<?= $ block ->escapeHtml (__ ('Delete ' )) ?> " type="button"
101
102
class="action- scalable delete delete-option">
102
103
<span><?= $ block ->escapeHtml (__ ('Delete ' )) ?> </span>
0 commit comments