Skip to content

Commit 1ab485e

Browse files
author
Stanislav Idolov
authored
ENGCOM-3179: [Backport] Make it possible to disable report bugs link #18569
2 parents 77d82e1 + fee7c85 commit 1ab485e

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

app/code/Magento/Theme/etc/config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Disallow: /*SID=
4646
</header>
4747
<footer translate="copyright">
4848
<copyright>Copyright &#169; 2013-present Magento, Inc. All rights reserved.</copyright>
49+
<report_bugs>1</report_bugs>
4950
</footer>
5051
</design>
5152
<theme>

app/code/Magento/Theme/etc/di.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@
213213
<item name="path" xsi:type="string">design/footer/absolute_footer</item>
214214
<item name="fieldset" xsi:type="string">other_settings/footer</item>
215215
</item>
216+
<item name="footer_report_bugs" xsi:type="array">
217+
<item name="path" xsi:type="string">design/footer/report_bugs</item>
218+
<item name="fieldset" xsi:type="string">other_settings/footer</item>
219+
</item>
216220
<item name="default_robots" xsi:type="array">
217221
<item name="path" xsi:type="string">design/search_engine_robots/default_robots</item>
218222
<item name="fieldset" xsi:type="string">other_settings/search_engine_robots</item>

app/code/Magento/Theme/i18n/en_US.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,7 @@ Settings,Settings
185185
"2 columns with left bar","2 columns with left bar"
186186
"2 columns with right bar","2 columns with right bar"
187187
"3 columns","3 columns"
188+
ID,ID
189+
View,View
190+
Action,Action
191+
"Display Report Bugs Link","Display Report Bugs Link"

app/code/Magento/Theme/view/adminhtml/ui_component/design_config_form.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,20 @@
234234
<dataScope>footer_copyright</dataScope>
235235
</settings>
236236
</field>
237+
<field name="footer_report_bugs" formElement="select">
238+
<settings>
239+
<dataType>text</dataType>
240+
<label translate="true">Display Report Bugs Link</label>
241+
<dataScope>footer_report_bugs</dataScope>
242+
</settings>
243+
<formElements>
244+
<select>
245+
<settings>
246+
<options class="Magento\Config\Model\Config\Source\Yesno"/>
247+
</settings>
248+
</select>
249+
</formElements>
250+
</field>
237251
</fieldset>
238252
<fieldset name="search_engine_robots" sortOrder="120">
239253
<settings>

app/code/Magento/Theme/view/frontend/layout/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
</arguments>
120120
</block>
121121
<block class="Magento\Theme\Block\Html\Footer" name="copyright" template="Magento_Theme::html/copyright.phtml"/>
122-
<block class="Magento\Framework\View\Element\Template" name="report.bugs" template="Magento_Theme::html/bugreport.phtml" />
122+
<block class="Magento\Framework\View\Element\Template" name="report.bugs" template="Magento_Theme::html/bugreport.phtml" ifconfig="design/footer/report_bugs"/>
123123
</container>
124124
</referenceContainer>
125125
<referenceContainer name="before.body.end">

0 commit comments

Comments
 (0)