You are here

lingotek-source-status.html.twig in Lingotek Translation 3.1.x

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.

File

templates/lingotek-source-status.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of the Lingotek source status.
  5. *
  6. * Available variables:
  7. * - status: The attributes of the <source> tags for this <picture> tag.
  8. * - status_title: The controlling image, with the fallback image in srcset.
  9. * - language: The language.
  10. * - url: (optional) The url to link to.
  11. *
  12. * @see template_preprocess()
  13. * @see template_preprocess_lingotek_source_status()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <span class="language-icon source-{{status|lower}}" title="{{status_title}}">{% if url %}<a href="{{url}}">{%endif%}{{language.id|upper}}{%if url %}</a>{%endif%}</span>