annotate core/themes/stable/templates/admin/image-scale-and-crop-summary.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 129ea1e6d783
children
rev   line source
Chris@17 1 {#
Chris@17 2 /**
Chris@17 3 * @file
Chris@17 4 * Theme override for a summary of an image scale and crop effect.
Chris@17 5 *
Chris@17 6 * Available variables:
Chris@17 7 * - data: The current configuration for this resize effect, including:
Chris@17 8 * - width: The width of the resized image.
Chris@17 9 * - height: The height of the resized image.
Chris@17 10 * - anchor: The part of the image that will be retained after cropping.
Chris@17 11 * - anchor_label: The translated label of the crop anchor.
Chris@17 12 * - effect: The effect information, including:
Chris@17 13 * - id: The effect identifier.
Chris@17 14 * - label: The effect name.
Chris@17 15 * - description: The effect description.
Chris@17 16 */
Chris@17 17 #}
Chris@17 18 {% if data.width and data.height -%}
Chris@17 19 {{ data.width }}×{{ data.height }}
Chris@17 20 {%- else -%}
Chris@17 21 {% if data.width %}
Chris@17 22 {% trans %}
Chris@17 23 width {{ data.width }}
Chris@17 24 {% endtrans %}
Chris@17 25 {% elseif data.height %}
Chris@17 26 {% trans %}
Chris@17 27 height {{ data.height }}
Chris@17 28 {% endtrans %}
Chris@17 29 {% endif %}
Chris@17 30 {%- endif %}