@@ -12,19 +12,19 @@ $stores = $block->getStoresSortedBySortOrder();
12
12
?>
13
13
<fieldset class="fieldset">
14
14
<legend class="legend">
15
- <span><?php /* @escapeNotVerified */ echo __ ('Manage Swatch (Values of Your Attribute) ' ) ?> </span>
15
+ <span><?php echo $ block -> escapeHtml ( __ ('Manage Swatch (Values of Your Attribute) ' ) ) ?> </span>
16
16
</legend>
17
17
<div id="swatch-text-options-panel">
18
18
<table class="data-table clearfix" cellspacing="0">
19
19
<thead>
20
20
<tr id="swatch-text-options-table">
21
21
<th class="col-draggable"></th>
22
- <th class="col-default"><span><?php /* @escapeNotVerified */ echo __ ('Is Default ' ) ?> </span></th>
22
+ <th class="col-default"><span><?php echo $ block -> escapeHtml ( __ ('Is Default ' ) ) ?> </span></th>
23
23
<?php foreach ($ stores as $ _store ): ?>
24
24
<th class="col-swatch col-<%- data.id %>
25
25
<?php if ($ _store ->getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> _required<?php endif ; ?> "
26
26
colspan="2">
27
- <span><?php /* @escapeNotVerified */ echo $ _store ->getName () ?> </span>
27
+ <span><?php echo $ block -> escapeHtml ( $ _store ->getName () ) ?> </span>
28
28
</th>
29
29
<?php endforeach ; ?>
30
30
<?php $ colTotal = count ($ stores ) * 2 + 3 ; ?>
@@ -39,12 +39,12 @@ $stores = $block->getStoresSortedBySortOrder();
39
39
</th>
40
40
</tr>
41
41
<tr>
42
- <th colspan="<?php /* @escapeNotVerified */ echo $ colTotal ; ?> " class="col-actions-add">
42
+ <th colspan="<?php echo ( int ) $ colTotal ; ?> " class="col-actions-add">
43
43
<?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()):?>
44
- <button id="add_new_swatch_text_option_button" title="
45
- <?php /* @escapeNotVerified */ echo __ ('Add Swatch ' ); ?> "
44
+ <button id="add_new_swatch_text_option_button"
45
+ title=" <?php echo $ block -> escapeHtml ( __ ('Add Swatch ' ) ); ?> "
46
46
type="button" class="action- scalable add">
47
- <span><?php /* @escapeNotVerified */ echo __ ('Add Swatch ' ); ?> </span>
47
+ <span><?php echo $ block -> escapeHtml ( __ ('Add Swatch ' ) ); ?> </span>
48
48
</button>
49
49
<?php endif ; ?>
50
50
</th>
@@ -59,7 +59,7 @@ $stores = $block->getStoresSortedBySortOrder();
59
59
<?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()): ?>
60
60
<div data-role="draggable-handle"
61
61
class="draggable-handle"
62
- title="<?php /* @escapeNotVerified */ echo __ ('Sort Option ' ); ?> "></div>
62
+ title="<?php echo $ block -> escapeHtml ( __ ('Sort Option ' ) ); ?> "></div>
63
63
<?php endif ; ?>
64
64
<input data-role="order" type="hidden" name="optiontext[order][<%- data.id %>]"
65
65
value="<%- data.sort_order %>"
@@ -73,29 +73,29 @@ $stores = $block->getStoresSortedBySortOrder();
73
73
value="<%- data.id %>" <%- data.checked %><?php if ($ block ->getReadOnly ()):?> disabled="disabled"<?php endif ;?> />
74
74
</td>
75
75
<?php foreach ($ stores as $ _store ): ?>
76
+ <?php $ storeId = (int )$ _store ->getId (); ?>
76
77
<td class="col-swatch col-<%- data.id %>">
77
78
<input class="input-text
78
- swatch-text-field-<?php /* @escapeNotVerified */ echo $ _store -> getId () ?>
79
- <?php if ($ _store -> getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option<?php endif ; ?> "
80
- name="swatchtext[value][<%- data.id %>][<?php /* @escapeNotVerified */ echo $ _store -> getId () ?> ]"
81
- type="text" value="<%- data.swatch<?php /* @escapeNotVerified */ echo $ _store -> getId () ?> %>"
82
- placeholder="<?php echo __ ("Swatch " ); ?> " />
79
+ swatch-text-field-<?php /* @noEscape */ echo $ storeId ; ?>
80
+ <?php if ($ storeId == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option<?php endif ; ?> "
81
+ name="swatchtext[value][<%- data.id %>][<?php /* @noEscape */ echo $ storeId ; ?> ]"
82
+ type="text" value="<%- data.swatch<?php /* @noEscape */ echo $ storeId ; ?> %>"
83
+ placeholder="<?php echo $ block -> escapeHtml ( __ ("Swatch " )) ; ?> "/>
83
84
</td>
84
85
<td class="swatch-col-<%- data.id %>">
85
- <input name="optiontext[value][<%- data.id %>][<?php /* @escapeNotVerified */ echo $ _store -> getId () ?> ]"
86
- value="<%- data.store<?php /* @escapeNotVerified */ echo $ _store -> getId () ?> %>"
87
- class="input-text<?php if ($ _store -> getId () == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option<?php endif ; ?> "
86
+ <input name="optiontext[value][<%- data.id %>][<?php /* @noEscape */ echo $ storeId ; ?> ]"
87
+ value="<%- data.store<?php /* @noEscape */ echo $ storeId ; ?> %>"
88
+ class="input-text<?php if ($ storeId == \Magento \Store \Model \Store::DEFAULT_STORE_ID ): ?> required-option<?php endif ; ?> "
88
89
type="text" <?php if ($ block ->getReadOnly () || $ block ->canManageOptionDefaultOnly ()):?> disabled="disabled"<?php endif ;?>
89
90
placeholder="<?php echo __ ("Description " ); ?> " />
90
91
</td>
91
92
<?php endforeach ; ?>
92
93
<td id="delete_button_swatch_container_<%- data.id %>" class="col-delete">
93
94
<input type="hidden" class="delete-flag" name="optiontext[delete][<%- data.id %>]" value="" />
94
95
<?php if (!$ block ->getReadOnly () && !$ block ->canManageOptionDefaultOnly ()):?>
95
- <button title="<?php /* @escapeNotVerified */ echo __ ('Delete ' ) ?> " type="button"
96
- class="action- scalable delete delete-option"
97
- >
98
- <span><?php /* @escapeNotVerified */ echo __ ('Delete ' ) ?> </span>
96
+ <button title="<?php echo $ block ->escapeHtml (__ ('Delete ' )); ?> " type="button"
97
+ class="action- scalable delete delete-option">
98
+ <span><?php echo $ block ->escapeHtml (__ ('Delete ' )); ?> </span>
99
99
</button>
100
100
<?php endif ;?>
101
101
</td>
0 commit comments