You are here

image-effects-brightness-summary.html.twig in Image Effects 8.3

Default theme implementation for a summary of an image brightness effect.

Available variables:

  • data: The current configuration for this brightness effect, including:

    • level: The brightness adjustment level in percent.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/image-effects-brightness-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an image brightness effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this brightness effect, including:
  8. * - level: The brightness adjustment level in percent.
  9. * - effect: The effect information, including:
  10. * - id: The effect identifier.
  11. * - label: The effect name.
  12. * - description: The effect description.
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% apply spaceless %}
  18. {% if data.level > 0 %}
  19. {% trans %}
  20. +{{ data.level }}%
  21. {% endtrans %}
  22. {% elseif data.level < 0 %}
  23. {% trans %}
  24. {{ data.level }}%
  25. {% endtrans %}
  26. {% else %}
  27. <em>{{ 'Unchanged'|t }}</em>
  28. {% endif %}
  29. {% endapply %}