simplytest-8.x-4.x-dev/themes/simplytest_theme/templates/block/block--system-branding-block.html.twig

themes/simplytest_theme/templates/block/block--system-branding-block.html.twig
{% extends "block.html.twig" %}
{#
/**
 * @file
 * Theme override for a branding block.
 *
 * Each branding element variable (logo, name, slogan) is only available if
 * enabled in the block configuration.
 *
 * Available variables:
 * - site_logo: Logo for site as defined in Appearance or theme settings.
 * - site_name: Name for site as defined in Site information settings.
 * - site_slogan: Slogan for site as defined in Site information settings.
 */
#}
{% block content %}
  {% if site_logo or site_name or site_slogan %}
    <div class = "site-branding">
      {% if site_logo %}
        <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home" class="site-branding__logo">
          <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
        </a>
      {% endif %}
      <div class = "site-branding__text">
        {% if site_name %}
          <div class="site-branding__name">
            <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home"><h1>{{ site_name }}</h1></a>
          </div>
        {% endif %}
        {% if site_slogan %}
          <div class="site-branding__slogan"><h4>{{ site_slogan }}</h4></div>
        {% endif %}
      </div>
    </div>
  {% endif %}
{% endblock %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc