Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL-CMS
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
Ryan Klusman
UNL-CMS
Commits
5b59253a
Commit
5b59253a
authored
12 years ago
by
Eric Rasmussen
Browse files
Options
Downloads
Patches
Plain Diff
[gh-541] Check isset for $page keys in unl_wdn's page.tpl.php
parent
7a92754d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sites/all/themes/unl_wdn/page.tpl.php
+10
-10
10 additions, 10 deletions
sites/all/themes/unl_wdn/page.tpl.php
with
10 additions
and
10 deletions
sites/all/themes/unl_wdn/page.tpl.php
+
10
−
10
View file @
5b59253a
...
...
@@ -79,9 +79,9 @@ if (isset($breadcrumb)) {
$t
->
navlinks
=
PHP_EOL
.
render
(
$page
[
'navlinks'
]);
// Site Title and Page Title
if
(
isset
(
$site_name
)
&&
$site_name
)
{
if
(
theme_get_setting
(
'site_name_abbreviation'
))
{
$t
->
titlegraphic
=
'<abbr title="'
.
$site_name
.
'">'
if
(
isset
(
$site_name
)
&&
!
empty
(
$site_name
)
)
{
if
(
theme_get_setting
(
'site_name_abbreviation'
))
{
$t
->
titlegraphic
=
'<abbr title="'
.
$site_name
.
'">'
.
theme_get_setting
(
'site_name_abbreviation'
)
.
'</abbr>'
;
}
...
...
@@ -92,7 +92,7 @@ if (isset($site_name) && $site_name) {
$t
->
titlegraphic
.
=
'<span>'
.
$site_slogan
.
'</span>'
;
}
}
if
(
isset
(
$title
)
&&
$title
)
{
if
(
isset
(
$title
)
&&
!
empty
(
$title
)
)
{
$t
->
pagetitle
=
'<h1>'
.
render
(
$title_prefix
)
.
$title
.
render
(
$title_suffix
)
.
'</h1>'
;
}
...
...
@@ -107,31 +107,31 @@ else {
.
render
(
$action_links
)
.
PHP_EOL
;
}
if
(
$page
[
'sidebar_first'
])
{
if
(
isset
(
$page
[
'sidebar_first'
])
)
{
$t
->
maincontentarea
.
=
render
(
$page
[
'sidebar_first'
])
.
PHP_EOL
;
}
$t
->
maincontentarea
.
=
render
(
$page
[
'content'
])
.
PHP_EOL
;
if
(
$page
[
'sidebar_second'
])
{
if
(
isset
(
$page
[
'sidebar_second'
])
)
{
$t
->
maincontentarea
.
=
render
(
$page
[
'sidebar_second'
])
.
PHP_EOL
;
}
// Related Links
if
(
$page
[
'leftcollinks'
])
{
if
(
isset
(
$page
[
'leftcollinks'
])
)
{
$t
->
leftcollinks
=
render
(
$page
[
'leftcollinks'
]);
}
// Contact Us
if
(
$page
[
'contactinfo'
])
{
if
(
isset
(
$page
[
'contactinfo'
])
)
{
$t
->
contactinfo
=
render
(
$page
[
'contactinfo'
]);
}
// Optional Footer
if
(
$page
[
'optionalfooter'
])
{
if
(
isset
(
$page
[
'optionalfooter'
])
)
{
$t
->
optionalfooter
=
render
(
$page
[
'optionalfooter'
]);
}
// Copyright Area
if
(
$page
[
'footercontent'
])
{
if
(
isset
(
$page
[
'footercontent'
])
)
{
$t
->
footercontent
=
PHP_EOL
.
render
(
$page
[
'footercontent'
]);
}
$t
->
footercontent
=
preg_replace
(
array
(
'/©\s*[0-9]{4}/'
,
'/©\s*[0-9]{4}/'
),
'© '
.
date
(
'Y'
),
$t
->
footercontent
);
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