diff --git a/core/themes/classy/file/file-link.html.twig b/core/themes/classy/file/file-link.html.twig new file mode 100644 index 0000000..fbbf08b --- /dev/null +++ b/core/themes/classy/file/file-link.html.twig @@ -0,0 +1,16 @@ +{# +/** + * @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. + * - icon: The icon image representing the file type. + * + * @see template_preprocess_file_link() + * + * @ingroup themeable + */ +#} +{{ icon }} {{ link }} diff --git a/core/themes/classy/file/file-managed-file.html.twig b/core/themes/classy/file/file-managed-file.html.twig new file mode 100644 index 0000000..9a33ae1 --- /dev/null +++ b/core/themes/classy/file/file-managed-file.html.twig @@ -0,0 +1,17 @@ +{# +/** + * @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 + */ +#} + + {{ element }} + diff --git a/core/themes/classy/file/file-upload-help.html.twig b/core/themes/classy/file/file-upload-help.html.twig new file mode 100644 index 0000000..8fa6b3e --- /dev/null +++ b/core/themes/classy/file/file-upload-help.html.twig @@ -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('
') }} diff --git a/core/themes/classy/file/file-widget-multiple.html.twig b/core/themes/classy/file/file-widget-multiple.html.twig new file mode 100644 index 0000000..25534a5 --- /dev/null +++ b/core/themes/classy/file/file-widget-multiple.html.twig @@ -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 }} diff --git a/core/themes/classy/file/file-widget.html.twig b/core/themes/classy/file/file-widget.html.twig new file mode 100644 index 0000000..892ed3d --- /dev/null +++ b/core/themes/classy/file/file-widget.html.twig @@ -0,0 +1,17 @@ +{# +/** + * @file + * Default theme implementation to display a file widget. + * + * Available variables: + * - element: Form element for the managed file. + * - attributes: Remaining HTML attributes for the containing element. + * + * @see template_preprocess_file_widget() + * + * @ingroup themeable + */ +#} + + {{ element }} +