views_timeline-1.0.x-dev/templates/views-timeline-layouts/layout-four.html.twig

templates/views-timeline-layouts/layout-four.html.twig
<div class="views-timeline{{ row_class ? ' ' ~ row_class }}">
	<div class="views-time-block">
		{% if timeline_data.views_timeline_date %}
			<div class="views-timeline-date">
				{{ view.style_plugin.getField(key, timeline_data.views_timeline_date) }}
			</div>
		{% endif %}

		<div class="views-timeline-heading">
			{% if timeline_data.views_timeline_icon %}
				<div class="view-timeline-icon">
					{{ view.style_plugin.getField(key, timeline_data.views_timeline_icon) }}
				</div>
			{% endif %}
			{% if timeline_data.views_timeline_title %}
				<div class="view-timeline-title">
					{{ view.style_plugin.getField(key, timeline_data.views_timeline_title) }}
				</div>
			{% endif %}
		</div>
		<div
			class="views-timeline-content">
			{# Loop over description fields to avoid repetition #}
			{% for i in 1..4 %}
				{% set description_key = 'views_timeline_description' ~ i %}
				{% if timeline_data[description_key] %}
					{{ view.style_plugin.getField(key, timeline_data[description_key]) }}
				{% endif %}
			{% endfor %}
		</div>
	</div>
</div>

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

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