countdown-8.x-1.8/templates/countdown.html.twig

templates/countdown.html.twig
{#
/**
 * @file
 * Default theme implementation for a countdown timer.
 *
 * Available variables:
 * - library: The countdown library being used.
 * - target_date: The target date for the countdown.
 * - countdown_url: Optional URL to link to.
 * - countdown_event_name: The name of the event.
 * - format: The display format for the countdown.
 * - attributes: HTML attributes for the countdown container.
 * - settings: Additional settings for the countdown JavaScript.
 *
 * @see template_preprocess_countdown()
 *
 * @ingroup themeable
 */
#}
<div{{ attributes }}>
  {% if countdown_event_name %}
    <div class="countdown-event">
      {% if countdown_url %}
        <h3 class="countdown-event-name">
          <a href="{{ countdown_url }}" class="countdown-event-link">{{ countdown_event_name }}</a>
        </h3>
      {% else %}
        <h3 class="countdown-event-name">{{ countdown_event_name }}</h3>
      {% endif %}
    </div>
  {% endif %}

  <div class="countdown-display">
    {# The countdown will be initialized by JavaScript #}
    <div class="countdown-loading">{{ 'Loading countdown...'|t }}</div>
  </div>

  {% if countdown_url and not countdown_event_name %}
    <div class="countdown-link">
      <a href="{{ countdown_url }}">{{ 'More information'|t }}</a>
    </div>
  {% endif %}
</div>
{# EOF countdown.html.twig #}

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

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