diff --git a/app/code/Magento/Backend/view/adminhtml/templates/admin/overlay_popup.phtml b/app/code/Magento/Backend/view/adminhtml/templates/admin/overlay_popup.phtml
index 93509cc62f7d5..ac81861c9930d 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/admin/overlay_popup.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/admin/overlay_popup.phtml
@@ -3,15 +3,12 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-
-// @codingStandardsIgnoreFile
-
?>
- getChildHtml('footer')): ?>
+ getChildHtml('footer')) : ?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/admin/page.phtml b/app/code/Magento/Backend/view/adminhtml/templates/admin/page.phtml
index ebb8e26c93f9d..d8cab67ecb79b 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/admin/page.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/admin/page.phtml
@@ -3,19 +3,16 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-
-// @codingStandardsIgnoreFile
-
?>
-
+
= $block->getChildHtml('head') ?>
-getBodyClass() ? ' class="' . $block->getBodyClass() . '"' : '' ?> data-container="body" data-mage-init='{"loaderAjax":{},"loader":{}}'>
+
= $block->getChildHtml('notification_window') ?>
= $block->getChildHtml('global_notices') ?>
@@ -31,8 +28,8 @@
= $block->getLayout()->getMessagesBlock()->getGroupedHtml() ?>
= $block->getChildHtml('page_main_actions') ?>
- getChildHtml('left')): ?>
-
+ getChildHtml('left')) : ?>
+
= $block->getChildHtml('content') ?>
@@ -41,7 +38,7 @@
= $block->getChildHtml('left') ?>
-
+
+ class="label">= $block->escapeHtml(__('Select Range:')) ?>
- getCount()): ?>
+ getCount()) : ?>
-
+
-
+
- = /* @escapeNotVerified */ __('No Data Found') ?>
+ = $block->escapeHtml(__('No Data Found')) ?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/graph/disabled.phtml b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/graph/disabled.phtml
index 7dddc15121831..f8e584ce5b9cd 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/graph/disabled.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/graph/disabled.phtml
@@ -3,9 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-
-// @codingStandardsIgnoreFile
?>
- = /* @escapeNotVerified */ __('Chart is disabled. To enable the chart, click
here.', $block->getConfigUrl()) ?>
+ = /* @noEscape */ __('Chart is disabled. To enable the chart, click
here.', $block->escapeUrl($block->getConfigUrl())) ?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/grid.phtml b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/grid.phtml
index 1041aef59ceac..7c05335642ba7 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/grid.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/grid.phtml
@@ -3,90 +3,87 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-
-// @codingStandardsIgnoreFile
-
?>
getColumns());
+$numColumns = count($block->getColumns());
?>
-getCollection()): ?>
+getCollection()) : ?>
- getCollection()->getSize()>0): ?>
-
+ getCollection()->getSize() > 0) : ?>
+
tags from the code. */
/* foreach ($block->getColumns() as $_column): ?>
getHtmlProperty() ?> />
- getHeadersVisibility() || $block->getFilterVisibility()): ?>
+ getHeadersVisibility() || $block->getFilterVisibility()) : ?>
- getHeadersVisibility()): ?>
+ getHeadersVisibility()) : ?>
- getColumns() as $_column): ?>
+ getColumns() as $_column) : ?>
= $_column->getHeaderHtml() ?>
- getIsCollapsed()): ?>
+ getIsCollapsed()) : ?>
- getCollection() as $_index => $_item): ?>
-
- getColumns() as $_column): ?>
- = (($_html = $_column->getRowField($_item)) != '' ? $_html : ' ') ?> |
+ getCollection() as $_index => $_item) : ?>
+
+ getColumns() as $_column) : ?>
+ = /* @noEscape */ (($_html = $_column->getRowField($_item)) != '' ? $_html : ' ') ?> |
-
- = /* @escapeNotVerified */ $block->getEmptyText() ?>
+
+ = $block->escapeHtml($block->getEmptyText()) ?>
-canDisplayContainer()): ?>
+ canDisplayContainer()) : ?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/index.phtml b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/index.phtml
index 865e0fac38314..6152c8fe1cff1 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/index.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/index.phtml
@@ -3,9 +3,6 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-
-// @codingStandardsIgnoreFile
-
?>
getChildBlock('diagrams')->getTabsIds())) : ?>
@@ -17,13 +14,13 @@ require([
window.changeDiagramsPeriod = function(periodObj) {
periodParam = periodObj.value ? 'period/' + periodObj.value + '/' : '';
-getChildBlock('diagrams')->getTabsIds() as $tabId): ?>
- ajaxBlockParam = 'block/tab_= /* @escapeNotVerified */ $tabId ?>/';
- ajaxBlockUrl = '= $block->getUrl('adminhtml/*/ajaxBlock', ['_current' => true, 'block' => '', 'period' => '']) ?>' + ajaxBlockParam + periodParam;
+ getChildBlock('diagrams')->getTabsIds() as $tabId) : ?>
+ ajaxBlockParam = 'block/tab_= $block->escapeJs($tabId) ?>/';
+ ajaxBlockUrl = '= $block->escapeJs($block->getUrl('adminhtml/*/ajaxBlock', ['_current' => true, 'block' => '', 'period' => ''])) ?>' + ajaxBlockParam + periodParam;
new Ajax.Request(ajaxBlockUrl, {
parameters: {isAjax: 'true', form_key: FORM_KEY},
onSuccess: function(transport) {
- tabContentElementId = '= /* @escapeNotVerified */ $block->getChildBlock('diagrams')->getId() ?>_= /* @escapeNotVerified */ $tabId ?>_content';
+ tabContentElementId = '= $block->escapeJs($block->getChildBlock('diagrams')->getId()) ?>_= $block->escapeJs($tabId) ?>_content';
try {
if (transport.responseText.isJSON()) {
var response = transport.responseText.evalJSON()
@@ -44,8 +41,8 @@ window.changeDiagramsPeriod = function(periodObj) {
}
}
});
-
- ajaxBlockUrl = '= $block->getUrl('adminhtml/*/ajaxBlock', ['_current' => true, 'block' => 'totals', 'period' => '']) ?>' + periodParam;
+
+ ajaxBlockUrl = '= $block->escapeJs($block->getUrl('adminhtml/*/ajaxBlock', ['_current' => true, 'block' => 'totals', 'period' => ''])) ?>' + periodParam;
new Ajax.Request(ajaxBlockUrl, {
parameters: {isAjax: 'true', form_key: FORM_KEY},
onSuccess: function(transport) {
@@ -93,15 +90,15 @@ window.changeDiagramsPeriod = function(periodObj) {
= $block->getChildHtml('sales') ?>
-
= /* @escapeNotVerified */ __('Last Orders') ?>
+
= $block->escapeHtml(__('Last Orders')) ?>
= $block->getChildHtml('lastOrders') ?>
-
= /* @escapeNotVerified */ __('Last Search Terms') ?>
+
= $block->escapeHtml(__('Last Search Terms')) ?>
= $block->getChildHtml('lastSearches') ?>
-
= /* @escapeNotVerified */ __('Top Search Terms') ?>
+
= $block->escapeHtml(__('Top Search Terms')) ?>
= $block->getChildHtml('topSearches') ?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/salebar.phtml b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/salebar.phtml
index 450a2c89b50da..139a7cad4185f 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/salebar.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/salebar.phtml
@@ -3,18 +3,15 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-
-// @codingStandardsIgnoreFile
-
?>
-getTotals()) > 0): ?>
- getTotals() as $_total): ?>
+getTotals()) > 0) : ?>
+ getTotals() as $_total) : ?>
-
= /* @escapeNotVerified */ $_total['label'] ?>
+
= $block->escapeHtml($_total['label']) ?>
- = /* @escapeNotVerified */ $_total['value'] ?>
- = /* @escapeNotVerified */ $_total['decimals'] ?>
+ = /* @noEscape */ $_total['value'] ?>
+ = /* @noEscape */ $_total['decimals'] ?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/searches.phtml b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/searches.phtml
index f6e837fd54ede..7a7a71f07fa55 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/searches.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/searches.phtml
@@ -3,16 +3,13 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-
-// @codingStandardsIgnoreFile
-
?>
-getCollection()->getItems()) > 0): ?>
+getCollection()->getItems()) > 0) : ?>
- getCollection()->getItems() as $item): ?>
- = /* @escapeNotVerified */ $item->getQueryText() ?>
+ getCollection()->getItems() as $item) : ?>
+ = $block->escapeHtml($item->getQueryText()) ?>
-
- = /* @escapeNotVerified */ __('There are no search keywords.') ?>
+
+ = $block->escapeHtml(__('There are no search keywords.')) ?>
diff --git a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/store/switcher.phtml b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/store/switcher.phtml
index bf9ae27f17b48..87e5399ddda44 100644
--- a/app/code/Magento/Backend/view/adminhtml/templates/dashboard/store/switcher.phtml
+++ b/app/code/Magento/Backend/view/adminhtml/templates/dashboard/store/switcher.phtml
@@ -3,31 +3,28 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-
-// @codingStandardsIgnoreFile
-
?>
-
+
= $block->getHintHtml() ?>