You are here

image-effects-resize-percentage-summary.html.twig in Image Effects 8

Default theme implementation for summary of resize percentage image effect.

Available variables:

  • data: The current configuration for this set canvas effect, including:

    • width: the width in px or as % of source image.
    • height: the height in px or as % of source image.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/image-effects-resize-percentage-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for summary of resize percentage image effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this set canvas effect, including:
  8. * - width: the width in px or as % of source image.
  9. * - height: the height in px or as % of source image.
  10. * - effect: The effect information, including:
  11. * - id: The effect identifier.
  12. * - label: The effect name.
  13. * - description: The effect description.
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. {% spaceless %}
  19. - {{ 'Width'|t }}:
  20. {% if data.width %}
  21. {{ data.width|e }}
  22. {% else %}
  23. {{ '(scaled)'|t }}
  24. {% endif %}
  25. - {{ 'Height'|t }}:
  26. {% if data.height %}
  27. {{ data.height|e }}
  28. {% else %}
  29. {{ '(scaled)'|t }}
  30. {% endif %}
  31. {% endspaceless %}