Commit 829cd0f8 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-3365: fixing which images styles are used on the homepage banners

parent e32efb8d
...@@ -212,10 +212,10 @@ function uw_virtual_site_homepage_page_alter(&$page) { ...@@ -212,10 +212,10 @@ function uw_virtual_site_homepage_page_alter(&$page) {
// Set the picture using the picture tag. // Set the picture using the picture tag.
$html .= '<picture> $html .= '<picture>
<source srcset="' . $banner_xl . '" media="(min-width: 1280px)"> <source srcset="' . $banner_xl . '" media="(min-width: 1280px)">
<source srcset="' . $banner_med . '" media="(min-width: 1024px)"> <source srcset="' . $banner_large . '" media="(min-width: 1024px)">
<source srcset="' . $banner_large . '" media="(min-width: 769px)"> <source srcset="' . $banner_med . '" media="(min-width: 769px)">
<source srcset="' . $banner_square . '" media="(min-width: 480px)"> <source srcset="' . $banner_square . '" media="(min-width: 480px)">
<source srcset="' . $banner_large . '" media="(min-width: 320px)"> <source srcset="' . $banner_small . '" media="(min-width: 320px)">
<source srcset="' . $banner_large . '">'; <source srcset="' . $banner_large . '">';
$html .= '<img src="' . $banner_xl . '" alt="' . $banner_alt . '">'; $html .= '<img src="' . $banner_xl . '" alt="' . $banner_alt . '">';
$html .= '</picture>'; $html .= '</picture>';
......
Markdown is supported
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