You are here

iek-image-resize-summary.html.twig in Image effect kit 8

Default theme implementation for a summary of an image effect.

Available variables:

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

    • width: The width of the resized image.
    • height: The height of the resized image.
    • blank_margin: Blank margin.
    • blank_margin_bg_color: Blank margin background color.
    • position: Align position.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/iek-image-resize-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of an image effect.
  5. *
  6. * Available variables:
  7. * - data: The current configuration for this effect, including:
  8. * - width: The width of the resized image.
  9. * - height: The height of the resized image.
  10. * - blank_margin: Blank margin.
  11. * - blank_margin_bg_color: Blank margin background color.
  12. * - position: Align position.
  13. * - effect: The effect information, including:
  14. * - id: The effect identifier.
  15. * - label: The effect name.
  16. * - description: The effect description.
  17. *
  18. * @ingroup themeable
  19. */
  20. #}
  21. <i>(
  22. {% if data.width %}
  23. {% trans %}width{% endtrans %}: <b>{{ data.width }}px</b>,
  24. {% endif %}
  25. {% if data.height %}
  26. {% trans %}height{% endtrans %}: <b>{{ data.height }}px</b>,
  27. {% endif %}
  28. {% if data.blank_margin %}
  29. {% trans %}blank margin{% endtrans %}: <b>{{ data.blank_margin }}</b>,
  30. {% endif %}
  31. {% if data.blank_margin_bg_color %}
  32. {% trans %}BG color{% endtrans %}: <b>{{ data.blank_margin_bg_color }}</b>,
  33. {% endif %}
  34. {% if data.position %}
  35. {% trans %}position{% endtrans %}: <b>{{ data.position }}</b>
  36. {% endif %}
  37. )</i>