You are here

image-effects-mask-summary.html.twig in Image Effects 8.2

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

Available variables:

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

    • mask_image: The mask image.
    • mask_width: The mask resize width.
    • mask_height: The mask resize height.
    • placement: The position of the mask on the underlying image.
    • x_offset: The x_offset of the mask image.
    • y_offset: The y_offset of the mask image.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/image-effects-mask-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an image mask effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this mask effect, including:
  8. * - mask_image: The mask image.
  9. * - mask_width: The mask resize width.
  10. * - mask_height: The mask resize height.
  11. * - placement: The position of the mask on the underlying image.
  12. * - x_offset: The x_offset of the mask image.
  13. * - y_offset: The y_offset of the mask image.
  14. * - effect: The effect information, including:
  15. * - id: The effect identifier.
  16. * - label: The effect name.
  17. * - description: The effect description.
  18. *
  19. * @ingroup themeable
  20. */
  21. #}
  22. {% spaceless %}
  23. - {{ 'Image'|t }}: <strong>{{ data.mask_image|e }}</strong>
  24. {% if data.mask_width or data.mask_height %}
  25. - {{ 'Mask width'|t }}:
  26. {% if data.mask_width %}{{ data.mask_width|e }}{% else %}{{ '(scaled)'|t }}{% endif %},
  27. {{ 'height'|t }}:
  28. {% if data.mask_height %}{{ data.mask_height|e }}{% else %}{{ '(scaled)'|t }}{% endif %}
  29. {% endif %}
  30. - {{ 'Placement'|t }}: {{ data.placement|e }}
  31. {% if data.x_offset %}- {{ 'X offset'|t }}: {{ data.x_offset|e }}{% endif %}
  32. {% if data.y_offset %}- {{ 'Y offset'|t }}: {{ data.y_offset|e }}{% endif %}
  33. {% endspaceless %}