Skip to content

Commit 1302b14

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-51905' into BUGS
2 parents 5471bca + d46fb12 commit 1302b14

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

app/code/Magento/Theme/Block/Html/Footer.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ class Footer extends \Magento\Framework\View\Element\Template implements \Magent
1919
*/
2020
protected $_copyright;
2121

22+
/**
23+
* Miscellaneous HTML information
24+
*
25+
* @var string
26+
*/
27+
private $miscellaneousHtml;
28+
2229
/**
2330
* @var \Magento\Framework\App\Http\Context
2431
*/
@@ -85,6 +92,22 @@ public function getCopyright()
8592
return __($this->_copyright);
8693
}
8794

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+
88111
/**
89112
* Return identifiers for produced content
90113
*

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@
122122
<block class="Magento\Framework\View\Element\Template" name="report.bugs" template="Magento_Theme::html/bugreport.phtml" />
123123
</container>
124124
</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>
125128
<referenceContainer name="content">
126129
<block class="Magento\Framework\View\Element\FormKey" name="formkey"/>
127130
</referenceContainer>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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();

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ protected function _loadCache()
10441044
*/
10451045
protected function _saveCache($data)
10461046
{
1047-
if ($this->getCacheLifetime() === null || !$this->_cacheState->isEnabled(self::CACHE_GROUP)) {
1047+
if (!$this->getCacheLifetime() || !$this->_cacheState->isEnabled(self::CACHE_GROUP)) {
10481048
return false;
10491049
}
10501050
$cacheKey = $this->getCacheKey();

0 commit comments

Comments
 (0)