uikit_admin-8.x-3.0/templates/content-edit/image-widget.html.twig

templates/content-edit/image-widget.html.twig
{#
/**
 * @file
 * Theme override for an image field widget.
 *
 * Available variables:
 * - attributes: HTML attributes for the containing element.
 * - data: Render elements of the image widget.
 *
 * @see template_preprocess_image_widget()
 */
#}
<div{{ attributes }}>
  {% if data.preview %}
    <div class="image-preview uk-float-left uk-margin-right">
      {{ data.preview }}
    </div>
  {% endif %}
  <div class="image-widget-data uk-float-left">
    {# Render widget data without the image preview that was output already. #}
    {{ data|without('preview')|without('remove_button') }}

    {% if (data.remove_button) %}
      <div class="image-widget-remove-button uk-display-inline-block uk-margin-left uk-margin-top">
        {{ data.remove_button }}
      </div>
    {% endif %}
  </div>
</div>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc