diff --git a/composer.lock b/composer.lock index a755d41e5ea6290c9bc236a0e82417babc5fdcfa..f42ce12ecce1a6d76f3f1fefbf67e6d00268e5c0 100644 --- a/composer.lock +++ b/composer.lock @@ -106,16 +106,16 @@ }, { "name": "unl/php-wdn-templates", - "version": "v5.3.0", + "version": "v5.3.4", "source": { "type": "git", "url": "https://github.com/unl/phpunltemplates.git", - "reference": "090d6c7c8ac8ab2828165bd06574ecb48caf1a88" + "reference": "845d8e05a6ae636797b350659f64b5f03b466166" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/unl/phpunltemplates/zipball/090d6c7c8ac8ab2828165bd06574ecb48caf1a88", - "reference": "090d6c7c8ac8ab2828165bd06574ecb48caf1a88", + "url": "https://api.github.com/repos/unl/phpunltemplates/zipball/845d8e05a6ae636797b350659f64b5f03b466166", + "reference": "845d8e05a6ae636797b350659f64b5f03b466166", "shasum": "" }, "require": { @@ -161,9 +161,9 @@ "homepage": "http://wdn.unl.edu/", "support": { "issues": "https://github.com/unl/phpunltemplates/issues", - "source": "https://github.com/unl/phpunltemplates/tree/v5.3.0" + "source": "https://github.com/unl/phpunltemplates/tree/v5.3.4" }, - "time": "2021-01-27T17:05:21+00:00" + "time": "2022-01-24T19:05:47+00:00" }, { "name": "zaininnari/html-minifier", @@ -333,5 +333,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.1.0" } diff --git a/config.sample.php b/config.sample.php index cb8ec5323e4eb4e21e278ea707b4ae607b308f7e..72194c3256bd01e42ae606d3e1b966370c7b92cd 100644 --- a/config.sample.php +++ b/config.sample.php @@ -13,5 +13,13 @@ require __DIR__ . '/vendor/autoload.php'; // the following key is only "valid" for http://ucommabel.unl.edu/workspace/UNL_Search/www/ // UNL_Search::$jsapiKeys[] = 'ABQIAAAAGAtSvF89-VbesSJ07TEeoBTpxXZziuBpIcFFfJO7Mm8wj1oQWRRwVSIfGRIEAC9DlOSQX7rAAWHjhA'; - // UNL_Search::$mode = 'debug'; + +// Site Notice +$siteNotice = new stdClass(); +$siteNotice->display = false; +$siteNotice->noticePath = 'dcf-notice'; +$siteNotice->containerID = 'dcf-main'; +$siteNotice->type = 'dcf-notice-info'; +$siteNotice->title = 'Maintenance Notice'; +$siteNotice->message = 'We will be performing site maintenance on February 4th from 4:30 to 5:00 pm CST. This site may not be available during this time.'; diff --git a/www/index.php b/www/index.php index cad444ade3c8b61402609c0a5c9f2eccfeb149c9..7f671c3ba7d3244722e93757ef496974d360189c 100644 --- a/www/index.php +++ b/www/index.php @@ -62,6 +62,10 @@ if ($isEmbed && $_GET['embed'] === '1') { $page->setLocalIncludePath(__DIR__); } + if (isset($siteNotice) && $siteNotice->display) { + $page->displayDCFNoticeMessage($siteNotice->title, $siteNotice->message, $siteNotice->type, $siteNotice->noticePath, $siteNotice->containerID); + } + $page->doctitle = '<title>Search | University of Nebraska–Lincoln</title>'; $page->head .= '<link rel="home" href="./" />';