diff options
| author | Eric Poirier | 2021-05-17 19:05:56 +0000 |
|---|---|---|
| committer | Christopher Guindon | 2021-06-11 15:33:07 +0000 |
| commit | c1414d0953e5aeac0a3b83b31124945e4438d2bd (patch) | |
| tree | 81098c8e7776abc7be0266b148097930582e45b9 | |
| parent | cbc1a52bd3a21ef9861aca92928b927cf4e90383 (diff) | |
| download | eclipse.org-common-c1414d0953e5aeac0a3b83b31124945e4438d2bd.tar.gz eclipse.org-common-c1414d0953e5aeac0a3b83b31124945e4438d2bd.tar.xz eclipse.org-common-c1414d0953e5aeac0a3b83b31124945e4438d2bd.zip | |
Bug 573350 - Update footer
Change-Id: I9c66629401b94d9ee82250e91e54fd7ee12f953b
Signed-off-by: Eric Poirier <eric.poirier@eclipse-foundation.org>
Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
| -rw-r--r-- | classes/themes/baseTheme.class.php | 30 | ||||
| -rw-r--r-- | themes/solstice/footer.php | 1 |
2 files changed, 30 insertions, 1 deletions
diff --git a/classes/themes/baseTheme.class.php b/classes/themes/baseTheme.class.php index b41b0178..3a625d38 100644 --- a/classes/themes/baseTheme.class.php +++ b/classes/themes/baseTheme.class.php @@ -57,6 +57,13 @@ class BaseTheme { protected $display_footer_prefix = TRUE; /** + * Footer content prefix + * + * @var bool + */ + protected $footer_content_prefix = ""; + + /** * Display header right html * * @var bool @@ -84,7 +91,6 @@ class BaseTheme { */ protected $display_toolbar = TRUE; - /** * Display google search in output * @@ -1379,6 +1385,28 @@ EOHTML; } /** + * Get Html of Footer content prefix + * + * This is a way for sub-themes to inject + * html in the footer. + */ + public function getFooterContentPrefix() { + return $this->footer_content_prefix; + } + + /** + * Get Html of Footer content prefix + * + * This is a way for sub-themes to inject + * html in the footer. + */ + public function setFooterContentPrefix($content) { + if (!empty($content)) { + $this->footer_content_prefix = $content; + } + } + + /** * Get Html of Footer Region 1 */ public function getFooterRegion1() { diff --git a/themes/solstice/footer.php b/themes/solstice/footer.php index aed478ca..8841c043 100644 --- a/themes/solstice/footer.php +++ b/themes/solstice/footer.php @@ -17,6 +17,7 @@ <?php print $this->getFooterPrexfix();?> <?php endif; ?> <footer<?php print $this->getAttributes('footer');?>> + <?php print $this->getFooterContentPrefix();?> <div<?php print $this->getAttributes('footer-container');?>> <div class="row"> <section<?php print $this->getAttributes('footer1');?>> |
