Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_ct_event
Commits
0a1a708f
Commit
0a1a708f
authored
Feb 22, 2019
by
Liam Morland
Browse files
RT#950608: Validation: Use 'div' for 'home-listing-block-summary'
parent
dba4112b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
uw_ct_event.module
uw_ct_event.module
+2
-2
No files found.
uw_ct_event.module
View file @
0a1a708f
...
@@ -655,13 +655,13 @@ function uw_ct_event_block_view($delta = '') {
...
@@ -655,13 +655,13 @@ function uw_ct_event_block_view($delta = '') {
$summary
=
check_markup
(
preg_replace
(
',<(/?)h\d,'
,
'<$1p'
,
$summary
),
'uw_tf_basic'
);
$summary
=
check_markup
(
preg_replace
(
',<(/?)h\d,'
,
'<$1p'
,
$summary
),
'uw_tf_basic'
);
$summary
=
_filter_htmlcorrector
(
$summary
);
$summary
=
_filter_htmlcorrector
(
$summary
);
$summary
=
preg_replace
(
"/<img[^>]+\>/i"
,
""
,
$summary
);
$summary
=
preg_replace
(
"/<img[^>]+\>/i"
,
""
,
$summary
);
$items
[
$count
]
.
=
'<
span
class="home-listing-block-summary">'
;
$items
[
$count
]
.
=
'<
div
class="home-listing-block-summary">'
;
if
(
!
empty
(
$node
->
field_event_image
[
LANGUAGE_NONE
][
0
][
'uri'
]))
{
if
(
!
empty
(
$node
->
field_event_image
[
LANGUAGE_NONE
][
0
][
'uri'
]))
{
$listing_image
=
$node
->
field_event_image
[
LANGUAGE_NONE
][
0
][
'uri'
];
$listing_image
=
$node
->
field_event_image
[
LANGUAGE_NONE
][
0
][
'uri'
];
$themed_image
=
'<img alt="'
.
$node
->
field_event_image
[
LANGUAGE_NONE
][
0
][
'alt'
]
.
'" src="'
.
file_create_url
(
$listing_image
)
.
'" typeof="foaf:Image">'
;
$themed_image
=
'<img alt="'
.
$node
->
field_event_image
[
LANGUAGE_NONE
][
0
][
'alt'
]
.
'" src="'
.
file_create_url
(
$listing_image
)
.
'" typeof="foaf:Image">'
;
$items
[
$count
]
.
=
$themed_image
;
$items
[
$count
]
.
=
$themed_image
;
}
}
$items
[
$count
]
.
=
$summary
.
'</
span
>'
;
$items
[
$count
]
.
=
$summary
.
'</
div
>'
;
}
}
$count
++
;
$count
++
;
...
...
Write
Preview
Markdown
is supported
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