Skip to content
Snippets Groups Projects
Commit 3b8421ee authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Implement site notice

parent 2a89ec52
No related branches found
No related tags found
No related merge requests found
...@@ -106,16 +106,16 @@ ...@@ -106,16 +106,16 @@
}, },
{ {
"name": "unl/php-wdn-templates", "name": "unl/php-wdn-templates",
"version": "v5.3.0", "version": "v5.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/unl/phpunltemplates.git", "url": "https://github.com/unl/phpunltemplates.git",
"reference": "090d6c7c8ac8ab2828165bd06574ecb48caf1a88" "reference": "845d8e05a6ae636797b350659f64b5f03b466166"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/unl/phpunltemplates/zipball/090d6c7c8ac8ab2828165bd06574ecb48caf1a88", "url": "https://api.github.com/repos/unl/phpunltemplates/zipball/845d8e05a6ae636797b350659f64b5f03b466166",
"reference": "090d6c7c8ac8ab2828165bd06574ecb48caf1a88", "reference": "845d8e05a6ae636797b350659f64b5f03b466166",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -161,9 +161,9 @@ ...@@ -161,9 +161,9 @@
"homepage": "http://wdn.unl.edu/", "homepage": "http://wdn.unl.edu/",
"support": { "support": {
"issues": "https://github.com/unl/phpunltemplates/issues", "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", "name": "zaininnari/html-minifier",
...@@ -333,5 +333,5 @@ ...@@ -333,5 +333,5 @@
"prefer-lowest": false, "prefer-lowest": false,
"platform": [], "platform": [],
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "2.0.0" "plugin-api-version": "2.1.0"
} }
...@@ -13,5 +13,13 @@ require __DIR__ . '/vendor/autoload.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/ // the following key is only "valid" for http://ucommabel.unl.edu/workspace/UNL_Search/www/
// UNL_Search::$jsapiKeys[] = 'ABQIAAAAGAtSvF89-VbesSJ07TEeoBTpxXZziuBpIcFFfJO7Mm8wj1oQWRRwVSIfGRIEAC9DlOSQX7rAAWHjhA'; // UNL_Search::$jsapiKeys[] = 'ABQIAAAAGAtSvF89-VbesSJ07TEeoBTpxXZziuBpIcFFfJO7Mm8wj1oQWRRwVSIfGRIEAC9DlOSQX7rAAWHjhA';
// UNL_Search::$mode = 'debug'; // 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') { ...@@ -62,6 +62,10 @@ if ($isEmbed && $_GET['embed'] === '1') {
$page->setLocalIncludePath(__DIR__); $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->doctitle = '<title>Search | University of Nebraska&ndash;Lincoln</title>';
$page->head .= '<link rel="home" href="./" />'; $page->head .= '<link rel="home" href="./" />';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment