diff --git a/agaric/sass/agaric/_base.figure.scss b/agaric/sass/agaric/_base.figure.scss index 37177fc..5889a54 100644 --- a/agaric/sass/agaric/_base.figure.scss +++ b/agaric/sass/agaric/_base.figure.scss @@ -24,3 +24,8 @@ text-align: left; color: $dark; } + +.license img { + float: left; + margin-right: 10px; +} diff --git a/agaric/templates/layout/layout--onecol--taxonomy-term-license-teaser.html.twig b/agaric/templates/layout/layout--onecol--taxonomy-term-license-teaser.html.twig new file mode 100644 index 0000000..ec8a957 --- /dev/null +++ b/agaric/templates/layout/layout--onecol--taxonomy-term-license-teaser.html.twig @@ -0,0 +1,26 @@ +{# +/** + * @file + * Override of default theme implementation to display a one-column layout. + * + * Available variables: + * - content: The content for this layout. + * - attributes: HTML attributes for the layout
. + * + * @ingroup themeable + */ +#} +{% + set classes = [ + 'layout', + 'layout--onecol', + ] +%} +{% if content %} + +
+ {{ content.field_license_icon }} + {{ content.description}} +
+
+{% endif %} diff --git a/agaric/templates/layout/node--case-study--full.html.twig b/agaric/templates/layout/node--case-study--full.html.twig index 54267ba..d6e5747 100644 --- a/agaric/templates/layout/node--case-study--full.html.twig +++ b/agaric/templates/layout/node--case-study--full.html.twig @@ -111,6 +111,9 @@ {% endif %} {# No, i do not understand why content doesn't print the paragraphs but only content.content does that #} + {% if content.field_license %} + {{ content.field_license }} + {% endif %}
@@ -136,7 +139,7 @@ {{ content|without('content', 'field_body_paragraph', 'field_case_study_client', 'field_case_study_partners', 'field_case_study_status', 'field_case_study_team', 'field_case_study_year', 'field_technologies', - 'field_services', 'uid', 'created' + 'field_services', 'uid', 'created', 'field_license' ) }}