lingotek-source-status.html.twig in Lingotek Translation 3.1.x
Same filename and directory in other branches
- 8.2 templates/lingotek-source-status.html.twig
- 4.0.x templates/lingotek-source-status.html.twig
- 3.0.x templates/lingotek-source-status.html.twig
- 3.2.x templates/lingotek-source-status.html.twig
- 3.3.x templates/lingotek-source-status.html.twig
- 3.4.x templates/lingotek-source-status.html.twig
- 3.5.x templates/lingotek-source-status.html.twig
- 3.6.x templates/lingotek-source-status.html.twig
- 3.7.x templates/lingotek-source-status.html.twig
- 3.8.x templates/lingotek-source-status.html.twig
Default theme implementation of the Lingotek source status.
Available variables:
- status: The attributes of the <source> tags for this <picture> tag.
- status_title: The controlling image, with the fallback image in srcset.
- language: The language.
- url: (optional) The url to link to.
1 theme call to lingotek-source-status.html.twig
- LingotekSourceStatus::getInfo in src/
Element/ LingotekSourceStatus.php - Returns the element properties for this element.
File
templates/lingotek-source-status.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation of the Lingotek source status.
- *
- * Available variables:
- * - status: The attributes of the <source> tags for this <picture> tag.
- * - status_title: The controlling image, with the fallback image in srcset.
- * - language: The language.
- * - url: (optional) The url to link to.
- *
- * @see template_preprocess()
- * @see template_preprocess_lingotek_source_status()
- *
- * @ingroup themeable
- */
- #}
- <span class="language-icon source-{{status|lower}}" title="{{status_title}}">{% if url %}<a href="{{url}}">{%endif%}{{language.id|upper}}{%if url %}</a>{%endif%}</span>