Commit 3b8421ee authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Implement site notice

parent 2a89ec52
......@@ -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"
}
......@@ -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.';
......@@ -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&ndash;Lincoln</title>';
$page->head .= '<link rel="home" href="./" />';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment