Mercurial > hg > cmmr2012-drupal-site
annotate core/modules/image/templates/image-scale-and-crop-summary.html.twig @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
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 %} |