X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fthemes%2Fstable%2Ftemplates%2Fadmin%2Fimage-scale-and-crop-summary.html.twig;fp=web%2Fcore%2Fthemes%2Fstable%2Ftemplates%2Fadmin%2Fimage-scale-and-crop-summary.html.twig;h=f5d5654a701e40da4bab302faddd7ae854c00de9;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0000000000000000000000000000000000000000;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/themes/stable/templates/admin/image-scale-and-crop-summary.html.twig b/web/core/themes/stable/templates/admin/image-scale-and-crop-summary.html.twig new file mode 100644 index 000000000..f5d5654a7 --- /dev/null +++ b/web/core/themes/stable/templates/admin/image-scale-and-crop-summary.html.twig @@ -0,0 +1,30 @@ +{# +/** + * @file + * Theme override for a summary of an image scale and crop effect. + * + * Available variables: + * - data: The current configuration for this resize effect, including: + * - width: The width of the resized image. + * - height: The height of the resized image. + * - anchor: The part of the image that will be retained after cropping. + * - anchor_label: The translated label of the crop anchor. + * - effect: The effect information, including: + * - id: The effect identifier. + * - label: The effect name. + * - description: The effect description. + */ +#} +{% if data.width and data.height -%} + {{ data.width }}×{{ data.height }} +{%- else -%} + {% if data.width %} + {% trans %} + width {{ data.width }} + {% endtrans %} + {% elseif data.height %} + {% trans %} + height {{ data.height }} + {% endtrans %} + {% endif %} +{%- endif %}