Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eric Rasmussen
UNL-CMS
Commits
5b59253a
Commit
5b59253a
authored
Nov 15, 2012
by
Eric Rasmussen
Browse files
[gh-541] Check isset for $page keys in unl_wdn's page.tpl.php
parent
7a92754d
Changes
1
Hide whitespace changes
Inline
Side-by-side
sites/all/themes/unl_wdn/page.tpl.php
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
);
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment