block--system-branding-block.html.twig 941 B

123456789101112131415161718192021222324252627282930
  1. {% extends "block.html.twig" %}
  2. {#
  3. /**
  4. * @file
  5. * Theme override for a branding block.
  6. *
  7. * Each branding element variable (logo, name, slogan) is only available if
  8. * enabled in the block configuration.
  9. *
  10. * Available variables:
  11. * - site_logo: Logo for site as defined in Appearance or theme settings.
  12. * - site_name: Name for site as defined in Site information settings.
  13. * - site_slogan: Slogan for site as defined in Site information settings.
  14. */
  15. #}
  16. {% block content %}
  17. {% if site_logo %}
  18. <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home" class="site-logo">
  19. <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
  20. </a>
  21. {% endif %}
  22. {% if site_name %}
  23. <div class="site-name">
  24. <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
  25. </div>
  26. {% endif %}
  27. {% if site_slogan %}
  28. <div class="site-slogan">{{ site_slogan }}</div>
  29. {% endif %}
  30. {% endblock %}