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_wcms_gesso
Commits
f62872d9
Commit
f62872d9
authored
Jan 18, 2022
by
Eric Bremner
Browse files
ISTWCMS-5329: adding logic for profiles listing image
parent
be3b09b2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
source/_patterns/04-components/card/card--teaser/_card--teaser.twig
...tterns/04-components/card/card--teaser/_card--teaser.twig
+1
-0
source/_patterns/04-components/card/card-elements/_header.twig
...e/_patterns/04-components/card/card-elements/_header.twig
+10
-0
source/_patterns/04-components/card/card.twig
source/_patterns/04-components/card/card.twig
+5
-3
No files found.
source/_patterns/04-components/card/card--teaser/_card--teaser.twig
View file @
f62872d9
...
...
@@ -7,6 +7,7 @@
{%
set
modifier_classes
=
'teaser--'
~
teaser.bundle
%}
{%
include
'@components/card/card.twig'
with
{
'bundle'
:
node.bundle
,
'modifier_classes'
:
modifier_classes
,
'type'
:
type
,
'url'
:
teaser.url
,
...
...
source/_patterns/04-components/card/card-elements/_header.twig
View file @
f62872d9
<div
class=
"card__header"
>
{%
if
bundle
==
'uw_ct_profile'
%}
<div
class=
"uw-image__profiles"
style=
"width: 150px; height: 180px;"
>
{%
include
'@components/card/card-elements/_image.twig'
with
{
'image'
:
image
,
'bundle'
:
bundle
}
%}
</div>
{%
endif
%}
{%
if
header.date
%}
{%
if
type
==
'event'
%}
...
...
source/_patterns/04-components/card/card.twig
View file @
f62872d9
...
...
@@ -17,7 +17,7 @@
}
%}
{%
endif
%}
{%
if
image
%}
{%
if
image
and
show_image
==
'yes'
%}
{%
include
'@components/card/card-elements/_image.twig'
with
{
'image'
:
image
}
%}
...
...
@@ -27,7 +27,9 @@
{%
include
'@components/card/card-elements/_header.twig'
with
{
'header'
:
header
,
'show_title'
:
show_title
,
'type'
:
type
'type'
:
type
,
'image'
:
image
,
'bundle'
:
bundle
}
%}
{%
endif
%}
...
...
@@ -41,7 +43,7 @@
{%
if
content
%}
{%
include
'@components/card/card-elements/_content.twig'
with
{
'content'
:
content
'content'
:
content
,
}
%}
{%
endif
%}
</div>
...
...
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