annotate core/modules/image/templates/image-scale-and-crop-summary.html.twig @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents
children
rev   line source
Chris@4 1 {#
Chris@4 2 /**
Chris@4 3 * @file
Chris@4 4 * Default theme implementation for a summary of an image scale and crop effect.
Chris@4 5 *
Chris@4 6 * Available variables:
Chris@4 7 * - data: The current configuration for this resize effect, including:
Chris@4 8 * - width: The width of the resized image.
Chris@4 9 * - height: The height of the resized image.
Chris@4 10 * - anchor: The part of the image that will be retained after cropping.
Chris@4 11 * - anchor_label: The translated label of the crop anchor.
Chris@4 12 * - effect: The effect information, including:
Chris@4 13 * - id: The effect identifier.
Chris@4 14 * - label: The effect name.
Chris@4 15 * - description: The effect description.
Chris@4 16 *
Chris@4 17 * @ingroup themeable
Chris@4 18 */
Chris@4 19 #}
Chris@4 20 {% if data.width and data.height -%}
Chris@4 21 {{ data.width }}×{{ data.height }}
Chris@4 22 {%- else -%}
Chris@4 23 {% if data.width %}
Chris@4 24 {% trans %}
Chris@4 25 width {{ data.width }}
Chris@4 26 {% endtrans %}
Chris@4 27 {% elseif data.height %}
Chris@4 28 {% trans %}
Chris@4 29 height {{ data.height }}
Chris@4 30 {% endtrans %}
Chris@4 31 {% endif %}
Chris@4 32 {%- endif %}