Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{#
/**
* @file
* Template file for the theming of announcement_feed admin page.
*
* This template will get rendered when the user navigates to the announcements_feed.announcement route.
*
* Available variables:
* - count: Contains the total number of announcements.
* - featured: A list of featured announcement objects.
* - standard: A list of non-featured announcement objects.
*
* Announcement objects have the following variables:
* - id: Unique id of the announcement.
* - title: Title of the standard announcement.
* - content: Short description of the announcement.
* - datePublishedTimestamp: Timestamp of the announcement.
* - url: Learn more link of the standard announcement.
*
* @see announcements_feed_theme()
*
* @ingroup themeable
*/
#}
{{ attach_library('announcements_feed/drupal.announcements_feed.page') }}
{% include '@announcements_feed/announcements.html.twig' %}

View File

@ -0,0 +1,25 @@
{#
/**
* @file
* Template file for the theming of announcement_feed off-canvas dialog.
*
* This template will get rendered when the user clicks the announcement button in the toolbar.
*
* Available variables:
* - count: Contains the total number of announcements.
* - featured: A list of featured announcement objects.
* - standard: A list of non-featured announcement objects.
*
* Announcement objects have the following variables:
* - id: Unique id of the announcement.
* - title: Title of the standard announcement.
* - content: Short description of the announcement.
* - datePublishedTimestamp: Timestamp of the announcement.
* - url: Learn more link of the standard announcement.
*
* @see announcements_feed_theme()
*
* @ingroup themeable
*/
#}
{% include '@announcements_feed/announcements.html.twig' %}

View File

@ -0,0 +1,37 @@
{% if count %}
<nav class="announcements">
<ul>
{% if featured|length %}
{% for announcement in featured %}
<li class="announcement announcement--featured" data-drupal-featured>
<div class="announcement__title">
<h4>{{ announcement.title }}</h4>
</div>
<div class="announcement__teaser">
{{ announcement.content }}
</div>
<div class="announcement__link">
<a href="{{ announcement.url }}">{{ 'Learn More'|t }}</a>
</div>
</li>
{% endfor %}
{% endif %}
{% for announcement in standard %}
<li class="announcement announcement--standard">
<div class="announcement__title">
<a href="{{ announcement.url }}">{{ announcement.title }}</a>
<div class="announcement__date">{{ announcement.datePublishedTimestamp|format_date('short') }}</div>
</div>
</li>
{% endfor %}
</ul>
</nav>
{% if feed_link %}
<p class="announcements--view-all">
<a target="_blank" href="{{ feed_link }}">{{ 'View all announcements'|t }}</a>
</p>
{% endif %}
{% else %}
<div class="announcements announcements--empty"><p> {{ 'No announcements available'|t }}</p></div>
{% endif %}