Initial Drupal 11 with DDEV setup
This commit is contained in:
22
web/core/modules/file/templates/file-audio.html.twig
Normal file
22
web/core/modules/file/templates/file-audio.html.twig
Normal file
@ -0,0 +1,22 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display the file entity as an audio tag.
|
||||
*
|
||||
* Available variables:
|
||||
* - attributes: An array of HTML attributes, intended to be added to the
|
||||
* audio tag.
|
||||
* - files: And array of files to be added as sources for the audio tag. Each
|
||||
* element is an array with the following elements:
|
||||
* - file: The full file object.
|
||||
* - source_attributes: An array of HTML attributes for to be added to the
|
||||
* source tag.
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<audio {{ attributes }}>
|
||||
{% for file in files %}
|
||||
<source {{ file.source_attributes }} />
|
||||
{% endfor %}
|
||||
</audio>
|
||||
19
web/core/modules/file/templates/file-link.html.twig
Normal file
19
web/core/modules/file/templates/file-link.html.twig
Normal file
@ -0,0 +1,19 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation for a link to a file.
|
||||
*
|
||||
* Available variables:
|
||||
* - attributes: The HTML attributes for the containing element.
|
||||
* - link: A link to the file.
|
||||
* - file_size: The size of the file.
|
||||
*
|
||||
* @see template_preprocess_file_link()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<span{{ attributes }}>{{ link }}</span>
|
||||
{% if file_size %}
|
||||
<span>({{ file_size }})</span>
|
||||
{% endif %}
|
||||
23
web/core/modules/file/templates/file-managed-file.html.twig
Normal file
23
web/core/modules/file/templates/file-managed-file.html.twig
Normal file
@ -0,0 +1,23 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a file form widget.
|
||||
*
|
||||
* Available variables:
|
||||
* - element: Form element for the file upload.
|
||||
* - attributes: HTML attributes for the containing element.
|
||||
*
|
||||
* @see template_preprocess_file_managed_file()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{%
|
||||
set classes = [
|
||||
'js-form-managed-file',
|
||||
'form-managed-file',
|
||||
]
|
||||
%}
|
||||
<div{{ attributes.addClass(classes) }}>
|
||||
{{ element }}
|
||||
</div>
|
||||
14
web/core/modules/file/templates/file-upload-help.html.twig
Normal file
14
web/core/modules/file/templates/file-upload-help.html.twig
Normal file
@ -0,0 +1,14 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display help text for file fields.
|
||||
*
|
||||
* Available variables:
|
||||
* - descriptions: Lines of help text for uploading a file.
|
||||
*
|
||||
* @see template_preprocess_file_upload_help()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{{ descriptions|safe_join('<br />') }}
|
||||
22
web/core/modules/file/templates/file-video.html.twig
Normal file
22
web/core/modules/file/templates/file-video.html.twig
Normal file
@ -0,0 +1,22 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display the file entity as a video tag.
|
||||
*
|
||||
* Available variables:
|
||||
* - attributes: An array of HTML attributes, intended to be added to the
|
||||
* video tag.
|
||||
* - files: And array of files to be added as sources for the video tag. Each
|
||||
* element is an array with the following elements:
|
||||
* - file: The full file object.
|
||||
* - source_attributes: An array of HTML attributes for to be added to the
|
||||
* source tag.
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<video {{ attributes }}>
|
||||
{% for file in files %}
|
||||
<source {{ file.source_attributes }} />
|
||||
{% endfor %}
|
||||
</video>
|
||||
@ -0,0 +1,16 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a multi file form widget.
|
||||
*
|
||||
* Available variables:
|
||||
* - table: Table of previously uploaded files.
|
||||
* - element: The form element for uploading another file.
|
||||
*
|
||||
* @see template_preprocess_file_widget_multiple()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{{ table }}
|
||||
{{ element }}
|
||||
Reference in New Issue
Block a user