Version 1
[yaffs-website] / web / core / themes / stable / templates / admin / admin-block.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for an administrative block.
5  *
6  * Available variables:
7  * - block: An array of information about the block, including:
8  *   - show: A flag indicating if the block should be displayed.
9  *   - title: The block title.
10  *   - content: (optional) The content of the block.
11  *   - description: (optional) A description of the block.
12  *     (Description should only be output if content is not available).
13  */
14 #}
15 <div class="panel">
16   {% if block.title %}
17     <h3 class="panel__title">{{ block.title }}</h3>
18   {% endif %}
19   {% if block.content %}
20     <div class="panel__content">{{ block.content }}</div>
21   {% elseif block.description %}
22     <div class="panel__description">{{ block.description }}</div>
23   {% endif %}
24 </div>