Mercurial > hg > isophonics-drupal-site
annotate core/modules/image/templates/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 * Default theme implementation 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 * @ingroup themeable |
Chris@17 | 18 */ |
Chris@17 | 19 #} |
Chris@17 | 20 {% if data.width and data.height -%} |
Chris@17 | 21 {{ data.width }}×{{ data.height }} |
Chris@17 | 22 {%- else -%} |
Chris@17 | 23 {% if data.width %} |
Chris@17 | 24 {% trans %} |
Chris@17 | 25 width {{ data.width }} |
Chris@17 | 26 {% endtrans %} |
Chris@17 | 27 {% elseif data.height %} |
Chris@17 | 28 {% trans %} |
Chris@17 | 29 height {{ data.height }} |
Chris@17 | 30 {% endtrans %} |
Chris@17 | 31 {% endif %} |
Chris@17 | 32 {%- endif %} |