You are here

iek-image-padding-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:

    • padding_top: image top padding, in pixels.
    • padding_right: image right padding, in pixels.
    • padding_bottom: image bottom padding, in pixels.
    • padding_left: image left padding, in pixels.
    • bg_color: image background color, in Hex format as #cccccc.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/iek-image-padding-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. * - padding_top: image top padding, in pixels.
  9. * - padding_right: image right padding, in pixels.
  10. * - padding_bottom: image bottom padding, in pixels.
  11. * - padding_left: image left padding, in pixels.
  12. * - bg_color: image background color, in Hex format as #cccccc.
  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.padding_top %}
  23. {% trans %}padding top{% endtrans %}: <b>{{ data.padding_top }}px</b>,
  24. {% endif %}
  25. {% if data.padding_right %}
  26. {% trans %}padding right{% endtrans %}: <b>{{ data.padding_right }}px</b>,
  27. {% endif %}
  28. {% if data.padding_bottom %}
  29. {% trans %}padding bottom{% endtrans %}: <b>{{ data.padding_bottom }}px</b>,
  30. {% endif %}
  31. {% if data.padding_left %}
  32. {% trans %}padding left{% endtrans %}: <b>{{ data.padding_left }}px</b>,
  33. {% endif %}
  34. {% if data.bg_color %}
  35. {% trans %}BG color{% endtrans %}: <b>{{ data.bg_color }}</b>
  36. {% endif %}
  37. )</i>