Loading core/profiles/demo_umami/themes/umami/components/badge/badge.component.yml +3 −3 Original line number Diff line number Diff line Loading @@ -27,10 +27,10 @@ props: - timer - serves - difficulty slots: label: type: string description: Label text slots: text: type: string description: Text core/profiles/demo_umami/themes/umami/components/badge/badge.twig +2 −2 Original line number Diff line number Diff line Loading @@ -5,8 +5,8 @@ {{ source(componentMetadata.path ~ '/icons/' ~ icon|default('knife') ~ '.svg') }} </div> {% endif %} {% if label %} <div class="umami-badge__label">{{~ label ~}}</div> {% if block('label') is defined and block('label')|trim %} <div class="umami-badge__label">{% block label %}{% endblock %}</div> {% endif %} {% block text %}{% endblock %} </div> Loading core/profiles/demo_umami/themes/umami/components/branding/branding.component.yml +14 −3 Original line number Diff line number Diff line Loading @@ -18,8 +18,19 @@ props: type: object properties: attributes: type: Drupal\Core\Template\Attribute title: Attributes description: Wrapper attributes. site_logo: type: string format: iri-reference url: type: string title: Branding url format: iri-reference slots: site_name: type: string site_slogan: Loading core/profiles/demo_umami/themes/umami/components/branding/branding.twig +9 −4 Original line number Diff line number Diff line <div class="branding"> <div{{ attributes.addClass('branding') }}> {% if site_logo %} <a href="{{ path('<front>') }}" rel="home" class="branding__site-logo"> <a href="{{ url }}" rel="home" class="branding__site-logo"> <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" /> </a> {% endif %} {% if site_name %} <div class="branding__site-name"> <a href="{{ path('<front>') }}" rel="home">{{ site_name }}</a> <a href="{{ url }}" rel="home"> {% block site_name %}{% endblock %} </a> </div> {% endif %} {% if site_slogan %} <div class="branding__site-slogan">{{ site_slogan }}</div> <div class="branding__site-slogan"> {% block site_slogan %}{% endblock %} </div> {% endif %} </div> core/profiles/demo_umami/themes/umami/components/disclaimer/disclaimer.component.yml +14 −8 Original line number Diff line number Diff line Loading @@ -15,6 +15,12 @@ props: type: object properties: attributes: type: Drupal\Core\Template\Attribute title: Attributes description: Wrapper attributes. slots: disclaimer: type: string description: Disclaimer text Loading Loading
core/profiles/demo_umami/themes/umami/components/badge/badge.component.yml +3 −3 Original line number Diff line number Diff line Loading @@ -27,10 +27,10 @@ props: - timer - serves - difficulty slots: label: type: string description: Label text slots: text: type: string description: Text
core/profiles/demo_umami/themes/umami/components/badge/badge.twig +2 −2 Original line number Diff line number Diff line Loading @@ -5,8 +5,8 @@ {{ source(componentMetadata.path ~ '/icons/' ~ icon|default('knife') ~ '.svg') }} </div> {% endif %} {% if label %} <div class="umami-badge__label">{{~ label ~}}</div> {% if block('label') is defined and block('label')|trim %} <div class="umami-badge__label">{% block label %}{% endblock %}</div> {% endif %} {% block text %}{% endblock %} </div> Loading
core/profiles/demo_umami/themes/umami/components/branding/branding.component.yml +14 −3 Original line number Diff line number Diff line Loading @@ -18,8 +18,19 @@ props: type: object properties: attributes: type: Drupal\Core\Template\Attribute title: Attributes description: Wrapper attributes. site_logo: type: string format: iri-reference url: type: string title: Branding url format: iri-reference slots: site_name: type: string site_slogan: Loading
core/profiles/demo_umami/themes/umami/components/branding/branding.twig +9 −4 Original line number Diff line number Diff line <div class="branding"> <div{{ attributes.addClass('branding') }}> {% if site_logo %} <a href="{{ path('<front>') }}" rel="home" class="branding__site-logo"> <a href="{{ url }}" rel="home" class="branding__site-logo"> <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" /> </a> {% endif %} {% if site_name %} <div class="branding__site-name"> <a href="{{ path('<front>') }}" rel="home">{{ site_name }}</a> <a href="{{ url }}" rel="home"> {% block site_name %}{% endblock %} </a> </div> {% endif %} {% if site_slogan %} <div class="branding__site-slogan">{{ site_slogan }}</div> <div class="branding__site-slogan"> {% block site_slogan %}{% endblock %} </div> {% endif %} </div>
core/profiles/demo_umami/themes/umami/components/disclaimer/disclaimer.component.yml +14 −8 Original line number Diff line number Diff line Loading @@ -15,6 +15,12 @@ props: type: object properties: attributes: type: Drupal\Core\Template\Attribute title: Attributes description: Wrapper attributes. slots: disclaimer: type: string description: Disclaimer text Loading