annotate core/modules/image/templates/image-rotate-summary.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 {#
Chris@0 2 /**
Chris@0 3 * @file
Chris@0 4 * Default theme implementation for a summary of an image rotate effect.
Chris@0 5 *
Chris@0 6 * Available variables:
Chris@0 7 * - data: The current configuration for this resize effect, including:
Chris@0 8 * - degrees: Degrees to rotate the image, positive values will rotate the
Chris@0 9 * image clockwise, negative values counter-clockwise.
Chris@0 10 * - bgcolor: The hex background color of the new areas created as consequence
Chris@0 11 * of rotation.
Chris@0 12 * - random: If the rotation angle is randomized.
Chris@0 13 * - effect: The effect information, including:
Chris@0 14 * - id: The effect identifier.
Chris@0 15 * - label: The effect name.
Chris@0 16 * - description: The effect description.
Chris@0 17 *
Chris@0 18 * @ingroup themeable
Chris@0 19 */
Chris@0 20 #}
Chris@0 21 {% if data.random %}
Chris@0 22 {% set degrees = data.degrees|abs %}
Chris@0 23 {% trans %}
Chris@0 24 random between -{{ degrees }}° and {{ degrees }}°
Chris@0 25 {% endtrans %}
Chris@0 26 {% else %}
Chris@0 27 {{ data.degrees }}°
Chris@0 28 {% endif %}