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-openscholar
uw_virtual_site_homepage
Commits
829cd0f8
Commit
829cd0f8
authored
Oct 11, 2019
by
Eric Bremner
Browse files
ISTWCMS-3365: fixing which images styles are used on the homepage banners
parent
e32efb8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
uw_virtual_site_homepage.module
uw_virtual_site_homepage.module
+3
-3
No files found.
uw_virtual_site_homepage.module
View file @
829cd0f8
...
...
@@ -212,10 +212,10 @@ function uw_virtual_site_homepage_page_alter(&$page) {
// Set the picture using the picture tag.
$html
.
=
'<picture>
<source srcset="'
.
$banner_xl
.
'" media="(min-width: 1280px)">
<source srcset="'
.
$banner_
med
.
'" media="(min-width: 1024px)">
<source srcset="'
.
$banner_
large
.
'" media="(min-width: 769px)">
<source srcset="'
.
$banner_
large
.
'" media="(min-width: 1024px)">
<source srcset="'
.
$banner_
med
.
'" media="(min-width: 769px)">
<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
.
'">'
;
$html
.
=
'<img src="'
.
$banner_xl
.
'" alt="'
.
$banner_alt
.
'">'
;
$html
.
=
'</picture>'
;
...
...
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