From 9fe66f7545eeb34b3e1a45a4dce92908f14e6c5a Mon Sep 17 00:00:00 2001 From: Arnoud Beekman Date: Sun, 26 Aug 2018 19:12:04 +0200 Subject: [PATCH] Make it possible to disable report bugs link As developer I have removed this link a lot of times with a layout update (remove=true). Since we most of the times do not want this by default it should be configurable whether to show this link or not. A new setting is added under Design > Configuration > Edit > Other Settings > Footer. The new label is 'Display Report Bugs Link'. The default value for this setting is 'Yes' to keep it backwards compatible. --- app/code/Magento/Theme/etc/config.xml | 1 + app/code/Magento/Theme/etc/di.xml | 4 ++++ app/code/Magento/Theme/i18n/en_US.csv | 1 + .../adminhtml/ui_component/design_config_form.xml | 14 ++++++++++++++ .../Magento/Theme/view/frontend/layout/default.xml | 2 +- 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Theme/etc/config.xml b/app/code/Magento/Theme/etc/config.xml index a6984b449d944..b44691c0df963 100644 --- a/app/code/Magento/Theme/etc/config.xml +++ b/app/code/Magento/Theme/etc/config.xml @@ -46,6 +46,7 @@ Disallow: /*SID= diff --git a/app/code/Magento/Theme/etc/di.xml b/app/code/Magento/Theme/etc/di.xml index 5ff82ce2db6f6..148267feeaad0 100644 --- a/app/code/Magento/Theme/etc/di.xml +++ b/app/code/Magento/Theme/etc/di.xml @@ -214,6 +214,10 @@ design/footer/absolute_footer other_settings/footer + + design/footer/report_bugs + other_settings/footer + design/search_engine_robots/default_robots other_settings/search_engine_robots diff --git a/app/code/Magento/Theme/i18n/en_US.csv b/app/code/Magento/Theme/i18n/en_US.csv index db641b5da1f74..c8c586f0bc684 100644 --- a/app/code/Magento/Theme/i18n/en_US.csv +++ b/app/code/Magento/Theme/i18n/en_US.csv @@ -188,3 +188,4 @@ Settings,Settings ID,ID View,View Action,Action +"Display Report Bugs Link","Display Report Bugs Link" diff --git a/app/code/Magento/Theme/view/adminhtml/ui_component/design_config_form.xml b/app/code/Magento/Theme/view/adminhtml/ui_component/design_config_form.xml index 48adca3b1a12e..8d4580f90c7b1 100644 --- a/app/code/Magento/Theme/view/adminhtml/ui_component/design_config_form.xml +++ b/app/code/Magento/Theme/view/adminhtml/ui_component/design_config_form.xml @@ -233,6 +233,20 @@ footer_copyright + + + text + + footer_report_bugs + + + + +
diff --git a/app/code/Magento/Theme/view/frontend/layout/default.xml b/app/code/Magento/Theme/view/frontend/layout/default.xml index 716341f5a64a4..c84222be19c3c 100644 --- a/app/code/Magento/Theme/view/frontend/layout/default.xml +++ b/app/code/Magento/Theme/view/frontend/layout/default.xml @@ -119,7 +119,7 @@ - +