File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed
lib/internal/Magento/Framework/View/Element Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ class Footer extends \Magento\Framework\View\Element\Template implements \Magent
19
19
*/
20
20
protected $ _copyright ;
21
21
22
+ /**
23
+ * Miscellaneous HTML information
24
+ *
25
+ * @var string
26
+ */
27
+ private $ miscellaneousHtml ;
28
+
22
29
/**
23
30
* @var \Magento\Framework\App\Http\Context
24
31
*/
@@ -85,6 +92,22 @@ public function getCopyright()
85
92
return __ ($ this ->_copyright );
86
93
}
87
94
95
+ /**
96
+ * Retrieve Miscellaneous HTML information
97
+ *
98
+ * @return string
99
+ */
100
+ public function getMiscellaneousHtml ()
101
+ {
102
+ if ($ this ->miscellaneousHtml === null ) {
103
+ $ this ->miscellaneousHtml = $ this ->_scopeConfig ->getValue (
104
+ 'design/footer/absolute_footer ' ,
105
+ \Magento \Store \Model \ScopeInterface::SCOPE_STORE
106
+ );
107
+ }
108
+ return $ this ->miscellaneousHtml ;
109
+ }
110
+
88
111
/**
89
112
* Return identifiers for produced content
90
113
*
Original file line number Diff line number Diff line change 122
122
<block class =" Magento\Framework\View\Element\Template" name =" report.bugs" template =" Magento_Theme::html/bugreport.phtml" />
123
123
</container >
124
124
</referenceContainer >
125
+ <referenceContainer name =" before.body.end" >
126
+ <block class =" Magento\Theme\Block\Html\Footer" name =" absolute_footer" template =" html/absolute_footer.phtml" />
127
+ </referenceContainer >
125
128
<referenceContainer name =" content" >
126
129
<block class =" Magento\Framework\View\Element\FormKey" name =" formkey" />
127
130
</referenceContainer >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © 2016 Magento. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ ?>
7
+ <?php /* @escapeNotVerified */ echo $ block ->getMiscellaneousHtml ();
Original file line number Diff line number Diff line change @@ -1044,7 +1044,7 @@ protected function _loadCache()
1044
1044
*/
1045
1045
protected function _saveCache ($ data )
1046
1046
{
1047
- if ($ this ->getCacheLifetime () === null || !$ this ->_cacheState ->isEnabled (self ::CACHE_GROUP )) {
1047
+ if (! $ this ->getCacheLifetime () || !$ this ->_cacheState ->isEnabled (self ::CACHE_GROUP )) {
1048
1048
return false ;
1049
1049
}
1050
1050
$ cacheKey = $ this ->getCacheKey ();
You can’t perform that action at this time.
0 commit comments