Skip to content

Commit

Permalink
CIL-712 Add skin config option to display text in an informational ba…
Browse files Browse the repository at this point in the history
…nner at the top of the page.
  • Loading branch information
terrencegf committed May 27, 2020
1 parent d3f5daf commit 1562a64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Service/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ public static function printHeader($title = '', $csrfcookie = true)

static::printNoScript();

// CIL-712 Add skin config option to display a info banner.
$skinbanner = (string)$skin->getConfigOption('banner');
if (strlen($skinbanner) > 0) {
echo '
<div class="alert alert-secondary alert-dismissible fade show" role="alert">
', $skinbanner , '
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
';
}

if ((defined('BANNER_TEXT')) && (!empty(BANNER_TEXT))) {
echo '
<div class="alert alert-warning alert-dismissible fade show" role="alert">
Expand Down

0 comments on commit 1562a64

Please sign in to comment.