Commit 0a1a708f authored by Liam Morland's avatar Liam Morland
Browse files

RT#950608: Validation: Use 'div' for 'home-listing-block-summary'

parent dba4112b
......@@ -655,13 +655,13 @@ function uw_ct_event_block_view($delta = '') {
$summary = check_markup(preg_replace(',<(/?)h\d,', '<$1p', $summary), 'uw_tf_basic');
$summary = _filter_htmlcorrector($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'])) {
$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">';
$items[$count] .= $themed_image;
}
$items[$count] .= $summary . '</span>';
$items[$count] .= $summary . '</div>';
}
$count++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment