Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Digital Experience Group
UNL_Search
Commits
3b8421ee
Commit
3b8421ee
authored
Jan 27, 2022
by
Jeff Sturek
Browse files
Implement site notice
parent
2a89ec52
Changes
3
Hide whitespace changes
Inline
Side-by-side
composer.lock
View file @
3b8421ee
...
...
@@ -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": "202
1
-01-2
7
T1
7
:05:
21
+00:00"
"time": "202
2
-01-2
4
T1
9
: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"
}
config.sample.php
View file @
3b8421ee
...
...
@@ -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.'
;
www/index.php
View file @
3b8421ee
...
...
@@ -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="./" />'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment