File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
app/code/Magento/Backend/view/adminhtml/templates/widget Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 30
30
<tr id="<?= $ block ->getElement ()->getHtmlId () ?> _tr_<?= $ block ->escapeHtmlAttr ($ image ->getValueId ()) ?> " class="gallery">
31
31
<?php foreach ($ block ->getValues ()->getAttributeBackend ()->getImageTypes () as $ type ) : ?>
32
32
<td class="gallery" align="center" style="vertical-align:bottom;">
33
- <a href="<?= $ block ->escapeUrl ($ image ->setType ($ type )->getSourceUrl ()) ?> " target="_blank" onclick="imagePreview('<?= $ block ->getElement ()->getHtmlId () ?> _image_<?= $ block ->escapeHtmlAttr ($ type ) ?> _<?= $ block ->escapeHtmlAttr ($ image ->getValueId ()) ?> ');return false;">
33
+ <a href="<?= $ block ->escapeUrl ($ image ->setType ($ type )->getSourceUrl ()) ?> " target="_blank" onclick="imagePreview('<?= $ block ->getElement ()->getHtmlId () ?> _image_<?= $ block ->escapeHtmlAttr ($ block -> escapeJs ( $ type )) ?> _<?= $ block ->escapeHtmlAttr ($ block -> escapeJs ( $ image ->getValueId () )) ?> ');return false;">
34
34
<img id="<?= $ block ->getElement ()->getHtmlId () ?> _image_<?= $ block ->escapeHtmlAttr ($ type ) ?> _<?= $ block ->escapeHtmlAttr ($ image ->getValueId ()) ?> " src="<?= $ block ->escapeUrl ($ image ->setType ($ type )->getSourceUrl ()) ?> ?<?= /* @noEscape */ time () ?> " alt="<?= $ block ->escapeHtmlAttr ($ image ->getValue ()) ?> " title="<?= $ block ->escapeHtmlAttr ($ image ->getValue ()) ?> " height="25" class="small-image-preview v-middle"/></a><br/>
35
35
<input type="file" name="<?= $ block ->escapeHtmlAttr ($ block ->getElement ()->getName ()) ?> _<?= $ block ->escapeHtmlAttr ($ type ) ?> [<?= $ block ->escapeHtmlAttr ($ image ->getValueId ()) ?> ]" size="1"></td>
36
36
<?php endforeach ; ?>
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ $numColumns = count($block->getColumns());
94
94
<td data-column="<?= $ block ->escapeHtmlAttr ($ _column ->getId ()) ?> "
95
95
class="<?= $ block ->escapeHtmlAttr ($ _column ->getCssProperty ()) ?> <?= /* @noEscape */ $ _column ->getId () == 'massaction ' ? 'data-grid-checkbox-cell ' : '' ?> <?= ++$ i == $ numColumns ? 'last ' : '' ?> "
96
96
>
97
- <?= /* @noEscape */ $ _column ->hasSubtotalsLabel () ? $ _column ->getSubtotalsLabel () : $ _column ->getRowField ($ block ->getSubTotals ($ _item )) ?>
97
+ <?= /* @noEscape */ $ _column ->hasSubtotalsLabel () ? $ block -> escapeHtml ( $ _column ->getSubtotalsLabel () ) : $ _column ->getRowField ($ block ->getSubTotals ($ _item )) ?>
98
98
</td>
99
99
<?php endforeach ; ?>
100
100
</tr>
@@ -138,7 +138,7 @@ $numColumns = count($block->getColumns());
138
138
<th data-column="<?= $ block ->escapeHtmlAttr ($ _column ->getId ()) ?> "
139
139
class="<?= $ block ->escapeHtmlAttr ($ _column ->getCssProperty ()) ?> "
140
140
>
141
- <?= /* @noEscape */ ($ _column ->hasTotalsLabel ()) ? $ _column ->getTotalsLabel () : $ _column ->getRowField ($ block ->getTotals ()) ?>
141
+ <?= /* @noEscape */ ($ _column ->hasTotalsLabel ()) ? $ block -> escapeHtml ( $ _column ->getTotalsLabel () ) : $ _column ->getRowField ($ block ->getTotals ()) ?>
142
142
</th>
143
143
<?php endforeach ; ?>
144
144
</tr>
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ $numColumns = count($block->getColumns());
114
114
</label>
115
115
<?php if ($ _curPage < $ _lastPage ) : ?>
116
116
<button type="button"
117
- title="<?= $ block ->escapeHtml (__ ('Next page ' )) ?> "
117
+ title="<?= $ block ->escapeHtmlAttr (__ ('Next page ' )) ?> "
118
118
class="action-next"
119
119
onclick="<?= /* @noEscape */ $ block ->getJsObjectName () ?> .setPage('<?= /* @noEscape */ ($ _curPage + 1 ) ?> ');return false;">
120
120
<span><?= $ block ->escapeHtml (__ ('Next page ' )) ?> </span>
@@ -168,7 +168,7 @@ $numColumns = count($block->getColumns());
168
168
<tr class="totals">
169
169
<?php foreach ($ block ->getColumns () as $ _column ) : ?>
170
170
<th class="<?= $ block ->escapeHtmlAttr ($ _column ->getCssProperty ()) ?> ">
171
- <?= /* @noEscape */ ($ _column ->hasTotalsLabel ()) ? $ _column ->getTotalsLabel () : $ _column ->getRowField ($ _column ->getGrid ()->getTotals ()) ?>
171
+ <?= /* @noEscape */ ($ _column ->hasTotalsLabel ()) ? $ block -> escapeHtml ( $ _column ->getTotalsLabel () ) : $ _column ->getRowField ($ _column ->getGrid ()->getTotals ()) ?>
172
172
</th>
173
173
<?php endforeach ; ?>
174
174
</tr>
@@ -218,7 +218,7 @@ $numColumns = count($block->getColumns());
218
218
foreach ($ block ->getSubTotalColumns () as $ _column ) : ?>
219
219
<td class="<?= $ block ->escapeHtmlAttr ($ _column ->getCssProperty ()) ?>
220
220
<?= /* @noEscape */ $ _column ->getId () == 'massaction ' ? 'data-grid-checkbox-cell ' : '' ?> ">
221
- <?= /* @noEscape */ $ _column ->hasSubtotalsLabel () ? $ _column ->getSubtotalsLabel () : $ _column ->getRowField ($ block ->getSubTotalItem ($ _item )) ?>
221
+ <?= /* @noEscape */ $ _column ->hasSubtotalsLabel () ? $ block -> escapeHtml ( $ _column ->getSubtotalsLabel () ) : $ _column ->getRowField ($ block ->getSubTotalItem ($ _item )) ?>
222
222
</td>
223
223
<?php endforeach ; ?>
224
224
</tr>
Original file line number Diff line number Diff line change 44
44
class="action-select-multiselect _disabled"
45
45
disabled="disabled"
46
46
data-menu="grid-mass-select">
47
- <optgroup label="<?= $ block ->escapeHtml (__ ('Mass Actions ' )) ?> ">
47
+ <optgroup label="<?= $ block ->escapeHtmlAttr (__ ('Mass Actions ' )) ?> ">
48
48
<option disabled selected></option>
49
49
<?php if ($ block ->getUseSelectAll ()) :?>
50
50
<option value="selectAll">
93
93
});
94
94
});
95
95
<?php if (!$ block ->getParentBlock ()->canDisplayContainer ()) : ?>
96
- <?= $ block ->escapeJs ($ block ->getJsObjectName ()) ?> .setGridIds('<?= /* @noEscape */ $ block ->getGridIdsJson () ?> ');
96
+ <?= $ block ->escapeJs ($ block ->getJsObjectName ()) ?> .setGridIds('<?= $ block ->escapeJs ( $ block -> getGridIdsJson () ) ?> ');
97
97
<?php endif ; ?>
98
98
</script>
99
99
</div>
You can’t perform that action at this time.
0 commit comments