You are here

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

    • text: the text of watermark.
    • font: the font of watermark.
    • color: the font color of watermark.
    • size: the font size of watermark, in pixels.
    • angle: the rotate angle of watermark.
    • position: align position.
    • 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.
  • effect: The effect information, including:
    • id: The effect identifier.
    • label: The effect name.
    • description: The effect description.

File

templates/iek-image-watermark-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. * - text: the text of watermark.
  9. * - font: the font of watermark.
  10. * - color: the font color of watermark.
  11. * - size: the font size of watermark, in pixels.
  12. * - angle: the rotate angle of watermark.
  13. * - position: align position.
  14. * - padding_top: image top padding, in pixels.
  15. * - padding_right: image right padding, in pixels.
  16. * - padding_bottom: image bottom padding, in pixels.
  17. * - padding_left: image left padding, in pixels.
  18. * - effect: The effect information, including:
  19. * - id: The effect identifier.
  20. * - label: The effect name.
  21. * - description: The effect description.
  22. *
  23. * @ingroup themeable
  24. */
  25. #}
  26. <i>(
  27. {% if data.text %}
  28. {% trans %}text{% endtrans %}: <b>{{ data.text }}</b>,
  29. {% endif %}
  30. {% if data.font %}
  31. {% trans %}font{% endtrans %}: <b>{{ data.font }}</b>,
  32. {% endif %}
  33. {% if data.color %}
  34. {% trans %}color{% endtrans %}: <b>{{ data.color }}</b>,
  35. {% endif %}
  36. {% if data.size %}
  37. {% trans %}size{% endtrans %}: <b>{{ data.size }}px</b>,
  38. {% endif %}
  39. {% if data.angle %}
  40. {% trans %}angle{% endtrans %}: <b>{{ data.angle }}%</b>,
  41. {% endif %}
  42. {% if data.position %}
  43. {% trans %}position{% endtrans %}: <b>{{ data.position }}</b>,
  44. {% endif %}
  45. {% if data.padding_top %}
  46. {% trans %}padding top{% endtrans %}: <b>{{ data.padding_top }}px</b>,
  47. {% endif %}
  48. {% if data.padding_right %}
  49. {% trans %}padding right{% endtrans %}: <b>{{ data.padding_right }}px</b>,
  50. {% endif %}
  51. {% if data.padding_bottom %}
  52. {% trans %}padding bottom{% endtrans %}: <b>{{ data.padding_bottom }}px</b>,
  53. {% endif %}
  54. {% if data.padding_left %}
  55. {% trans %}padding left{% endtrans %}: <b>{{ data.padding_left }}px</b>
  56. {% endif %}
  57. )</i>