culturefeed_agenda-1.0.x-dev/templates/culturefeed-event--teaser.html.twig

templates/culturefeed-event--teaser.html.twig
{#
/**
 * @file
 * Default theme implementation for an event teaser.
 *
 * Available variables:
 * - id: The ID of the event
 * - name: The name of the event
 * - teaser: Indicates if this is a teaser or not
 * - view_mode: The view mode currently used
 * - id: The Cdbid of the event
 * - description: The description of the event
 * - summary: The shortened description
 * - where: The location where the event takes place
 *   - name: The location name
 *   - address: Address parts
 *     - street: The address street
 *     - postalcode: The address postal code
 *     - city: The address city
 * - location: Formatted location
 * - when_summary: Summary of when the location takes place
 * - organizer: Organizer of the event
 * - age_range: The age range of the event
 * - vlieg: Boolean or minimum age if "Vlieg" event
 * - uitpas: Boolean indicating if the event is an "Uitpas" event
 * - copyright: Copyright string
 * - age_from: The "age from" of the event
 * - for_kids: Boolean indicating if the event is for kids
 * - themes: The event themes
 * - labels: The event labels
 * - image: Image url
 * - type: Type labels
 * - url: Url to detail page
 *
 * @see template_preprocess_culturefeed_event()
 *
 * @ingroup themeable
 */
#}

<div>
  <h2>{{ name }}</h2>
  <img src="{{ image }}" alt="{{ name }}"/>
  {% if age_from %}
    <div>
      <strong>{{ age_from }}+</strong>
    </div>
  {% endif %}
  <p>
    {% if type %}
      {{ type|join(', ') }}
    {% endif %}
      {% if location and type %}|{% endif %}
    {% if location %}
      {{ location }}
    {% endif %}
  </p>
  <p>{{ summary }}</p>
  <div><a href="{{ url }}">{{ 'Read more'|t }}</a></div>
</div>

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

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