auctions-1.0.x-dev/modules/auctions_core/templates/auction-time.html.twig
modules/auctions_core/templates/auction-time.html.twig
{#
/**
* @file auction-time.html.twig
*
* This template is used when viewing Auction Item Countdown.
*
*
* Available variables:
* - unix: unix timestamp for javascript
* - font-size: px. size JS will user to display clock digits.
* - datetime: <time> element attribute
* - formatter: <time> html content
*
* @see template_preprocess_auction_bid()
*
* @ingroup themeable
*/
#}
<{{ wrapper_tag }} class="auction-countdown {% if is_closed is not null %} countdown-over{% endif %}" data-auction-id="{{ aid }}" data-unix="{{ unix }}" data-font-size="{{ font_size }}">
{% if is_closed is null %}
{{ attach_library('auctions_core/countdown') }}
<{{ countdown_tag }} class="countdown" role="timer"></{{ countdown_tag }}>
<time datetime="{{ datetime }}"{% if hide_time == true %} class="visually-hidden"{% endif %}>{{ formatted }}</time>
{% if hide_interval == false %}<{{ interval_tag }} class="auction-item-interval" data-auction-id="{{ aid }}" role="timer"></{{ interval_tag }}>{% endif %}
{% else %}
{{ is_closed }}
{% endif %}
</{{ wrapper_tag }}>
