You are here

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

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

Available variables:

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

    • x_axis: Horizontal flop.
    • y_axis: Vertical flip.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/image-effects-mirror-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an image mirror effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this mirror effect, including:
  8. * - x_axis: Horizontal flop.
  9. * - y_axis: Vertical flip.
  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. {% if data.x_axis and data.y_axis %}
  20. {{ 'both horizontal and vertical'|t }}
  21. {% elseif data.x_axis %}
  22. {{ 'horizontal'|t }}
  23. {% elseif data.y_axis %}
  24. {{ 'vertical'|t }}
  25. {% endif %}
  26. {% endspaceless %}