You are here

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

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

Available variables:

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

    • watermark_image: The watermark image.
    • watermark_width: The watermark image width.
    • watermark_height: The watermark image height.
    • placement: The position of the watermark on the underlying image.
    • x_offset: The x_offset of the watermark image.
    • y_offset: The y_offset of the watermark image.
    • opacity: The opacity of the watermark image.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

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