Mercurial > hg > isophonics-drupal-site
comparison core/modules/system/templates/block--system-branding-block.html.twig @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 {% extends "block.html.twig" %} | |
2 {# | |
3 /** | |
4 * @file | |
5 * Default theme implementation 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 * @ingroup themeable | |
16 */ | |
17 #} | |
18 {% block content %} | |
19 {% if site_logo %} | |
20 <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home"> | |
21 <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" /> | |
22 </a> | |
23 {% endif %} | |
24 {% if site_name %} | |
25 <a href="{{ path('<front>') }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a> | |
26 {% endif %} | |
27 {{ site_slogan }} | |
28 {% endblock %} |