You are here

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

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

Available variables:

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

    • placement: The position of the source image on the background image.
    • x_offset: The X offset vs placement.
    • y_offset: The Y offset vs placement.
    • opacity: The opacity of the source image when overlaid on the background image.
    • background_image: The background image file URI/path.
    • background_image_width: The background image width.
    • background_image_height: The background image height.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/image-effects-background-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an image background effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this background effect, including:
  8. * - placement: The position of the source image on the background image.
  9. * - x_offset: The X offset vs placement.
  10. * - y_offset: The Y offset vs placement.
  11. * - opacity: The opacity of the source image when overlaid on the background
  12. * image.
  13. * - background_image: The background image file URI/path.
  14. * - background_image_width: The background image width.
  15. * - background_image_height: The background image height.
  16. * - effect: The effect information, including:
  17. * - id: The effect identifier.
  18. * - label: The effect name.
  19. * - description: The effect description.
  20. *
  21. * @ingroup themeable
  22. */
  23. #}
  24. {% spaceless %}
  25. - {{ 'Image'|t }}: <strong>{{ data.background_image|e }}</strong> ({{ data.background_image_width|e }}x{{ data.background_image_height|e }}),
  26. {{ 'Placement'|t }}: {{ data.placement|e }},
  27. {% if data.x_offset %}{{ 'X offset'|t }}: {{ data.x_offset|e }}px,{% endif %}
  28. {% if data.y_offset %}{{ 'Y offset'|t }}: {{ data.y_offset|e }}px,{% endif %}
  29. {{ 'Opacity'|t }}: {{ data.opacity|e }}%
  30. {% endspaceless %}