You are here

image-effects-contrast-summary.html.twig in Image Effects 8

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

Available variables:

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

    • level: The contrast 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-contrast-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an image contrast effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this contrast effect, including:
  8. * - level: The contrast 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. {% 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. {% endspaceless %}