Mercurial > hg > isophonics-drupal-site
annotate core/modules/image/templates/image-resize-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 resize effect. |
Chris@0 | 5 * |
Chris@0 | 6 * Available variables: |
Chris@0 | 7 * - data: The current configuration for this resize effect, including: |
Chris@0 | 8 * - width: The width of the resized image. |
Chris@0 | 9 * - height: The height of the resized image. |
Chris@0 | 10 * - effect: The effect information, including: |
Chris@0 | 11 * - id: The effect identifier. |
Chris@0 | 12 * - label: The effect name. |
Chris@0 | 13 * - description: The effect description. |
Chris@0 | 14 * |
Chris@0 | 15 * @ingroup themeable |
Chris@0 | 16 */ |
Chris@0 | 17 #} |
Chris@0 | 18 {% if data.width and data.height -%} |
Chris@0 | 19 {{ data.width }}×{{ data.height }} |
Chris@0 | 20 {%- else -%} |
Chris@0 | 21 {% if data.width %} |
Chris@0 | 22 {% trans %} |
Chris@0 | 23 width {{ data.width }} |
Chris@0 | 24 {% endtrans %} |
Chris@0 | 25 {% elseif data.height %} |
Chris@0 | 26 {% trans %} |
Chris@0 | 27 height {{ data.height }} |
Chris@0 | 28 {% endtrans %} |
Chris@0 | 29 {% endif %} |
Chris@0 | 30 {%- endif %} |