Skip to content
Snippets Groups Projects
Commit df017dfb authored by hahn's avatar hahn
Browse files

add banner on all pages

parent 7d2f7ba5
No related branches found
No related tags found
1 merge request!195534 add docker
...@@ -25,6 +25,8 @@ return [ ...@@ -25,6 +25,8 @@ return [
] ]
], ],
'banner' => '',
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
'phases' => [ 'phases' => [
......
...@@ -63,6 +63,7 @@ return [ ...@@ -63,6 +63,7 @@ return [
'ip'=> ['127.0.0.1'], 'ip'=> ['127.0.0.1'],
], ],
'projectgroups' => [], 'projectgroups' => [],
'banner' => '',
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// build settings // build settings
......
...@@ -69,6 +69,7 @@ foreach ($aConfig["phases"] as $sPhase => $aData) { ...@@ -69,6 +69,7 @@ foreach ($aConfig["phases"] as $sPhase => $aData) {
} }
$sHeader.='</style>'; $sHeader.='</style>';
$sTopArea=getTopArea(); $sTopArea=getTopArea();
$sBanner=isset($aConfig['banner']) && $aConfig['banner'] ? '<div class="alert alert-info">'.$aConfig['banner'].'</div>' : '';
$sTopAction=getAction(); $sTopAction=getAction();
// ------ action // ------ action
...@@ -114,7 +115,7 @@ $sPhpOut = ' ...@@ -114,7 +115,7 @@ $sPhpOut = '
<br> <br>
' . $sTopArea .' ' . $sTopArea .'
<div id="content"> <div id="content">
' . $sTopAction . ' ' . $sBanner . $sTopAction . '
' . $sPhpOut . ' ' . $sPhpOut . '
</div> </div>
<div id="footer"> <div id="footer">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment