countdown-8.x-1.8/templates/countdown-preview.html.twig
templates/countdown-preview.html.twig
{#
/**
* @file
* Default theme implementation for countdown preview.
*
* Available variables:
* - attributes: HTML attributes for the preview container.
* - config: The preview configuration array.
* - countdown_markup: The rendered countdown element.
* - debug_info: Debug information array (when debug mode is enabled).
*
* @see template_preprocess_countdown_preview()
* @see CountdownPreview::preRenderCountdownPreview()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('countdown-preview-container') }}>
{% if debug_info %}
<div class="countdown-debug-info">
<h4>{{ 'Debug Information'|t }}</h4>
<dl>
<dt>{{ 'Library'|t }}</dt>
<dd>{{ debug_info.library }}</dd>
<dt>{{ 'Method'|t }}</dt>
<dd>{{ debug_info.method }}</dd>
{% if debug_info.extensions %}
<dt>{{ 'Extensions'|t }}</dt>
<dd>{{ debug_info.extensions|join(', ') }}</dd>
{% endif %}
<dt>{{ 'Timestamp'|t }}</dt>
<dd>{{ debug_info.timestamp|date('Y-m-d H:i:s') }}</dd>
</dl>
</div>
{% endif %}
{# The countdown markup already contains the #countdown-preview element #}
{{ countdown_markup }}
</div>
