clean install

This commit is contained in:
2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 changed files with 3555714 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
{#
/**
* @file
* Gin's theme implementation for the content of an administrative block.
*
* Available variables:
* - content: List of administrative menu items. Each menu item contains:
* - link: Link to the admin section.
* - title: Short name of the section.
* - description: Description of the administrative menu item.
* - attributes: HTML attributes to be added to the element.
* - compact: Boolean indicating whether compact mode is turned on or not.
*
* @see template_preprocess_admin_block_content()
* @see claro_preprocess_admin_block_content()
*/
#}
{%
set item_classes = [
'admin-item',
]
%}
{% if content %}
<div{{ attributes.addClass('admin-list', 'gin-layer-wrapper') }}>
{% for item in content %}
{% set description_id = item.title|render|clean_id ~ '-desc' %}
<div{{ create_attribute({class: item_classes}) }}>
{{ item.link }}
<div class="admin-item__title" aria-details="{{ description_id }}">{{ item.title }}</div>
{% if item.description %}
<div class="admin-item__description" id="{{ description_id }}">{{ item.description }}</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}

View File

@@ -0,0 +1,31 @@
{#
/**
* @file
* Theme override for an administrative block.
*
* Available variables:
* - block: An array of information about the block, including:
* - show: A flag indicating if the block should be displayed.
* - title: The block title.
* - content: (optional) The content of the block.
* - description: (optional) A description of the block.
* (Description should only be output if content is not available).
* - attributes: HTML attributes for the containing div element.
*/
#}
{%
set classes = [
'panel',
'gin-layer-wrapper',
]
%}
<div{{ attributes.addClass(classes) }}>
{% if block.title %}
<h3 class="panel__title">{{ block.title }}</h3>
{% endif %}
{% if block.content %}
<div class="panel__content">{{ block.content }}</div>
{% elseif block.description %}
<div class="panel__description">{{ block.description }}</div>
{% endif %}
</div>

View File

@@ -0,0 +1,20 @@
{#
/**
* @file
* Gin's theme implementation to display a list of custom block types.
*
* Available variables:
* - bundles: List of blockcontent types, each with the following properties:
* - label: Block content type label
* - add_link: \Drupal\Core\Link link instance to create an entity of this
* block content type. This is a GeneratedLink originally and is switched by
* claro_preprocess_block_content_add_list().
* - description: A description of this custom block type.
*
* @todo Revisit after https://www.drupal.org/node/3026221 has been solved.
*
* @see template_preprocess_block_content_add_list()
* @see claro_preprocess_block_content_add_list()
*/
#}
{% extends '@gin/admin/entity-add-list.html.twig' %}

View File

@@ -0,0 +1,55 @@
{#
/**
* @file
* Theme override to present a list of available bundles.
*
* Available variables:
* - bundles: A list of bundles, each with the following properties:
* - label: Bundle label.
* - description: Bundle description.
* - add_link: \Drupal\Core\Link link instance to create an entity of this
* bundle.
* - add_bundle_message: The message shown when there are no bundles. Only
* available if the entity type uses bundle entities.
*
* @see template_preprocess_entity_add_list()
*/
#}
{%
set item_classes = [
'admin-item',
]
%}
{% if bundles is not empty %}
<div class="panel gin-layer-wrapper">
{% if title %}
<h3 class="panel__title">{{ title }}</h3>
{% endif %}
<div{{ attributes.addClass('admin-list', 'panel__content', 'gin-layer-wrapper') }}>
{% for bundle in bundles %}
{#
Add 'admin-item__link' class to the link attributes.
This is needed for keeping the original attributes of the link's url.
#}
{% set bundle_attributes = bundle.add_link.url.getOption('attributes') ?: {} %}
{% set link_attributes = create_attribute(bundle_attributes).addClass('admin-item__link') %}
{% set description_id = bundle.add_link.text|clean_id ~ '-desc' %}
<div{{ create_attribute({ class: item_classes }) }}>
<a class="admin-item__link" title="{{ bundle.add_link.text }}" href="{{ bundle.add_link.url }}"></a>
<div class="admin-item__title"{% if bundle.description %} aria-details="{{ description_id }}"{% endif %}>
{{ bundle.add_link.text }}
</div>
{# Don't print empty description wrapper if there is no description #}
{% if bundle.description %}
<div class="admin-item__description" id="{{ description_id }}">{{ bundle.description }}</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% elseif add_bundle_message is not empty %}
<p>
{{ add_bundle_message }}
</p>
{% endif %}

View File

@@ -0,0 +1,25 @@
{#
/**
* @file
* Gin's theme implementation to list node types available for adding content.
*
* Available variables:
* - bundles: A list of content types, each with the following properties:
* - label: Content type label.
* - add_link: \Drupal\Core\Link link instance to create an entity of this
* content type. This is a GeneratedLink originally and is switched by
* claro_preprocess_node_add_list().
* - description: Description of this type of content.
*
* @todo Revisit after https://www.drupal.org/node/3026221 has been solved.
*
* @see template_preprocess_node_add_list()
* @see claro_preprocess_node_add_list()
*/
#}
{% extends '@gin/admin/entity-add-list.html.twig' %}
{% set create_content = path('node.type_add') %}
{%
set add_bundle_message = 'You have not created any content types yet. Go to the <a href="@create-content">content type creation page</a> to add a new content type.'|t({ '@create-content': create_content })
%}