Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
32e8398e
Commit
32e8398e
authored
May 01, 2012
by
Nathaniel Catchpole
Browse files
Issue
#1532512
by Liam Morland, xjm: Fixed Ensure empty item-list title h3's are never generated.
parent
fd9a2104
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/theme.inc
View file @
32e8398e
...
...
@@ -2097,7 +2097,7 @@ function theme_mark($variables) {
*/
function
theme_item_list
(
$variables
)
{
$items
=
$variables
[
'items'
];
$title
=
$variables
[
'title'
];
$title
=
(
string
)
$variables
[
'title'
];
$type
=
$variables
[
'type'
];
$list_attributes
=
$variables
[
'attributes'
];
...
...
@@ -2158,7 +2158,7 @@ function theme_item_list($variables) {
// Check to see whether the block title exists before adding a header.
// Empty headers are not semantic and present accessibility challenges.
if
(
$output
!==
''
)
{
if
(
isset
(
$title
)
&&
$title
!==
''
)
{
if
(
$title
!==
''
)
{
$title
=
'<h3>'
.
$title
.
'</h3>'
;
}
$output
=
'<div class="item-list">'
.
$title
.
$output
.
'</div>'
;
...
...
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