-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
D8CORE-4539 Removed "Role" attribute on figure element
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
themes/stanford_basic/templates/content/filter-caption.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for a filter caption. | ||
* | ||
* Returns HTML for a captioned image, audio, video or other tag. | ||
* | ||
* Available variables | ||
* - string node: The complete HTML tag whose contents are being captioned. | ||
* - string tag: The name of the HTML tag whose contents are being captioned. | ||
* - string caption: The caption text. | ||
* - string classes: The classes of the captioned HTML tag. | ||
*/ | ||
#} | ||
<figure {%- if classes %} class="{{ classes }}"{%- endif %}> | ||
{{ node }} | ||
<figcaption>{{ caption }}</figcaption> | ||
</figure> |