Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL_Search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
UNL_Search
Commits
c5f7cea2
Commit
c5f7cea2
authored
3 years ago
by
Jeff Sturek
Browse files
Options
Downloads
Plain Diff
Merge branch 'implement-site-message' into 'master'
Implement site notice See merge request
!43
parents
2a89ec52
3b8421ee
No related branches found
Branches containing commit
No related tags found
1 merge request
!43
Implement site notice
Pipeline
#46279
passed
3 years ago
Stage: Test
Stage: Security
Stage: QA
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
composer.lock
+7
-7
7 additions, 7 deletions
composer.lock
config.sample.php
+9
-1
9 additions, 1 deletion
config.sample.php
www/index.php
+4
-0
4 additions, 0 deletions
www/index.php
with
20 additions
and
8 deletions
composer.lock
+
7
−
7
View file @
c5f7cea2
...
...
@@ -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"
}
This diff is collapsed.
Click to expand it.
config.sample.php
+
9
−
1
View file @
c5f7cea2
...
...
@@ -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.'
;
This diff is collapsed.
Click to expand it.
www/index.php
+
4
−
0
View file @
c5f7cea2
...
...
@@ -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="./" />'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment