|
|
@ -62,7 +62,6 @@ |
|
|
|
<div class="tt-token-replace">{{ 'Site name: [site:name]'|token_replace }}</div> |
|
|
|
<div class="tt-token-replace">{{ 'Site name: [site:name]'|token_replace }}</div> |
|
|
|
<div class="tt-preg-replace">{{ 'FOO'|preg_replace('/(foo)/i', '$1-bar') }}</div> |
|
|
|
<div class="tt-preg-replace">{{ 'FOO'|preg_replace('/(foo)/i', '$1-bar') }}</div> |
|
|
|
<div class="tt-image-style">{{ 'public://images/ocean.jpg'|image_style('thumbnail') }}</div> |
|
|
|
<div class="tt-image-style">{{ 'public://images/ocean.jpg'|image_style('thumbnail') }}</div> |
|
|
|
<div class="tt-image-style-from-file-uri-from-media-field">{{ node.field_media|file_uri|image_style('thumbnail') }}</div> |
|
|
|
|
|
|
|
<div class="tt-transliterate">{{ 'Привет!'|transliterate('ru') }}</div> |
|
|
|
<div class="tt-transliterate">{{ 'Привет!'|transliterate('ru') }}</div> |
|
|
|
<div class="tt-check-markup">{{ '<b>bold</b> <strong>strong</strong>'|check_markup('twig_tweak_test') }}</div> |
|
|
|
<div class="tt-check-markup">{{ '<b>bold</b> <strong>strong</strong>'|check_markup('twig_tweak_test') }}</div> |
|
|
|
<div class="tt-format-size">{{ 12345|format_size() }}</div> |
|
|
|
<div class="tt-format-size">{{ 12345|format_size() }}</div> |
|
|
@ -88,7 +87,11 @@ |
|
|
|
<div class="tt-field-item-view">{{ node.title[0]|view }}</div> |
|
|
|
<div class="tt-field-item-view">{{ node.title[0]|view }}</div> |
|
|
|
<div class="tt-file-uri-from-image-field">{{ node.field_image|file_uri }}</div> |
|
|
|
<div class="tt-file-uri-from-image-field">{{ node.field_image|file_uri }}</div> |
|
|
|
<div class="tt-file-uri-from-image-field-delta">{{ node.field_image[0]|file_uri }}</div> |
|
|
|
<div class="tt-file-uri-from-image-field-delta">{{ node.field_image[0]|file_uri }}</div> |
|
|
|
<div class="tt-file-uri-from-media-field">{{ node.field_media|file_uri }}</div> |
|
|
|
{% set media_uri = node.field_media|file_uri %} |
|
|
|
|
|
|
|
<div class="tt-file-uri-from-media-field">{{ media_uri }}</div> |
|
|
|
|
|
|
|
{% if media_uri is not null %} |
|
|
|
|
|
|
|
<div class="tt-image-style-from-file-uri-from-media-field">{{ media_uri|image_style('thumbnail') }}</div> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
<div class="tt-file-url-from-uri">{{ 'public://image-test.png'|file_url }}</div> |
|
|
|
<div class="tt-file-url-from-uri">{{ 'public://image-test.png'|file_url }}</div> |
|
|
|
<div class="tt-file-url-from-image-field">{{ node.field_image|file_url }}</div> |
|
|
|
<div class="tt-file-url-from-image-field">{{ node.field_image|file_url }}</div> |
|
|
|
<div class="tt-file-url-from-image-field-delta">{{ node.field_image[0]|file_url }}</div> |
|
|
|
<div class="tt-file-url-from-image-field-delta">{{ node.field_image[0]|file_url }}</div> |
|
|
|