{% import 'custom/page/settings/int-website.html' as config %}
{%- set contentTitle = config.events.title -%}{%- set contentTableID = config.events.tableID -%}{%- set filterPlaceholder = config.events.filterPlaceholder -%}{%- set filterNoResults = config.events.filterNoResults -%}{%- set placeholderSuffix = config.label.filterSuffix -%}{%- set eventRows = hubdb_table_rows(contentTableID, dbQuery) -%}
{%- if content.absolute_url|replace('https:', '')|replace('http:', '') == config.homeUrl -%} {%- set homeClass = homeClass + "active-branch active" -%} {%- elif content.absolute_url is string_containg config.homeUrl -%} {%- set homeClass = "active-branch" -%} {%- endif -%}{%- if content.absolute_url == config.menuItemLogIn.url -%} {%- set loginItemClass = " active-branch active" -%} {%- elif (contentSlug) and (config.menuItemLogIn.url is string_containing contentSlug) -%} {%- set loginItemClass = " active-branch" -%} {%- endif -%}{%- if content.absolute_url == config.menuItemContact.url -%} {%- set contactItemClass = " active-branch active" -%} {%- elif (contentSlug) and (config.menuItemContact.url is string_containing contentSlug) -%} {%- set contactItemClass = " active-branch" -%} {%- endif -%}
{%- for prodNav in config.prodSubNavSettings -%} {%- set activeBranch = False -%} {%- set wrapClass = "" -%} {%- if buffer_mode.preview -%} {%- set wrapClass = " is-defaultState" -%} {%- endif -%} {%- if (content.slug == prodNav.path) or (content.slug is string_startingwith prodNav.path + "/") -%} {%- set activeBranch = True -%} {%- set wrapClass = wrapClass + " active-branch" -%} {%- endif -%} {%- if activeBranch -%} {%- endif -%} {%- endfor -%}
{%- if contentTitle is undefined -%} {%- set contentTitle = "Untitled" -%} {%- endif -%}{%- if contentTableID is undefined -%} {%- set contentTableID = False -%} {%- endif -%}{%- if filterPlaceholder is undefined -%} {%- set filterPlaceholder = config.label.filter -%} {%- endif -%}{%- if filterNoResults is undefined -%} {%- set filterNoResults = "No results :(" -%} {%- endif -%}{%- if placeholderSuffix is undefined -%} {%- set placeholderSuffix = config.label.filterSuffix -%} {%- endif -%}
{{ app.heroHeaderFooter() }}
{%- if eventRows|length > 0 -%}
{%- if not buffer_mode.preview -%}
{%- endif -%}
{%- if buffer_mode.preview -%} {%- endif -%}
    {%- for row in eventRows -%} {%- if row.start_date != row.end_date -%} {%- set dateStr = datetimeformat(row.start_date, '%e') -%} {%- set dateStr = dateStr + '–' -%} {%- if datetimeformat(row.start_date, '%Y') != datetimeformat(local_dt|unixtimestamp, '%Y') -%} {%- set dateStr = dateStr + datetimeformat(row.end_date, '%e %b %Y') -%} {%- else -%} {%- set dateStr = dateStr + datetimeformat(row.end_date, '%e %b') -%} {%- endif -%} {%- set longDateStr = datetimeformat(row.start_date, '%e') -%} {%- set longDateStr = longDateStr + '–' -%} {%- set longDateStr = longDateStr + datetimeformat(row.end_date, '%e %B %Y') -%} {%- else -%} {%- if datetimeformat(row.start_date, '%Y') != datetimeformat(local_dt|unixtimestamp, '%Y') -%} {%- set dateStr = datetimeformat(row.start_date, '%e %b %Y') -%} {%- else -%} {%- set dateStr = datetimeformat(row.start_date, '%e %b') -%} {%- endif -%} {%- set longDateStr = datetimeformat(row.start_date, '%e %B %Y') -%} {%- endif -%}
  • {{ row.title|safe }} ({{ row.type.name }})

    {{ dateStr }}

    {{ row.city }}, {{ row.country}}

    {%- if row.venue -%}

    @ {{ row.venue }}

    {% endif %} {%- if row.summary -%}

    {{ row.summary|replace('

    ', '')|replace('

    ', '
    ') }}

    {% endif %} {%- if row.url -%}

    {{ row.url }}

    {% endif %} {%- if row.body -%}

    {{ row.body|replace('

    ', '')|replace('

    ', '
    ') }}

    {% endif %}
  • {%- endfor -%}
{%- elif eventRows is defined -%}

There are no upcoming events at the moment :(

{%- elif buffer_mode.preview -%}

Events Table ID is missing!

{%- endif -%}
Preview image