{% if date(event.startDate) < date() and date(event.endDate) > date() %} {% endif %}
{% set array = [] %} {% for sourceConfiguration in event.socialSettings.configurations %} {% if attribute(event.socialSettings, sourceConfiguration.type).status %} {% set timestampToday = date().timestamp %} {% if sourceConfiguration.type == 'instagram' %} {% if timestampToday >= sourceConfiguration.expiration_timestamp %} {% set array = array|merge(['Instagram ('~sourceConfiguration.account_username~')']) %} {% endif %} {% elseif sourceConfiguration.type == 'facebook' %} {% if timestampToday >= sourceConfiguration.expiration_timestamp %} {% set array = array|merge(['Facebook ('~sourceConfiguration.page_name~')']) %} {% endif %} {% elseif sourceConfiguration.type == 'linkedin' %} {% if timestampToday >= sourceConfiguration.expiration_timestamp %} {% set array = array|merge(['LinkedIn ('~sourceConfiguration.page_name~')']) %} {% endif %} {% endif %} {% endif %} {% endfor %} {% if array %}

Token(s) à regénérer:

{% for arr in array %}

- {{ arr }}

{% endfor %}
{% endif %}
{% if event.type == 'event-responsive' or event.type == 'mosaic' or event.type == 'hopscotch' %} {% elseif event.type == 'web' or event.type == 'slideshow' %} {% elseif event.type == 'retail-cast' %} {% endif %}

{{ event.name }}

{% trans %}Du{% endtrans %} {{ event.startDate | date('d M Y') }} {% trans %}au{% endtrans %} {{ event.endDate | date('d M Y') }}
{% trans %}Voir{% endtrans %} {% trans %}Editer{% endtrans %} {% if event.settings.setting('accessModeration') == true or is_granted('ROLE_AGENT') %} {% trans %}Modération{% endtrans %} {% endif %} {% trans %}Stats{% endtrans %} {% if dissociate is defined %}   {% trans %}Dissocier{% endtrans %} {% endif %}

{% for network, config in event.socialSettings if config.status %} {% if network == 'photobooth' %} {% set networkName = 'Borne Photo' %} {% else %} {% set networkName = network | capitalize %} {% endif %} {% if network == 'photobooth' %} {% for source in config.ouibeatfeed %} {{ networkName }} : {{ source.gallery }} {% endfor %} {% endif %} {% for source in config.feed %} {% if network == 'photobooth' %} {{ networkName }} : {{ source.event }} {% else %} {{ networkName }} : {% if network in ['twitter', 'instagram'] %}#{% endif %}{{ source }} {% endif %} {% endfor %} {% if ( config.usernames is defined ) %} {% for source in config.usernames %} {{ networkName }} : @{{ source }} {% endfor %} {% endif %} {% endfor %} {% for sourceConfiguration in event.socialSettings.configurations %} {% if attribute(event.socialSettings, sourceConfiguration.type).status %} {% if sourceConfiguration.type == 'twitter' %} {% set sourceType = sourceConfiguration.type | capitalize %} {% set sourceName = '@' ~ sourceConfiguration.account %} {% elseif sourceConfiguration.type == 'instagram' %} {% set sourceType = sourceConfiguration.type | capitalize %} {% set sourceName = '@' ~ sourceConfiguration.account_username %} {% elseif sourceConfiguration.type == 'facebook' %} {% set sourceType = sourceConfiguration.type | capitalize %} {% set sourceName = '@' ~ sourceConfiguration.page_name %} {% elseif sourceConfiguration.type == 'linkedin' %} {% set sourceType = 'LinkedIn' %} {% set sourceName = sourceConfiguration.page_name %} {% elseif sourceConfiguration.type == 'youtube' %} {% set sourceType = 'YouTube' %} {% set sourceName = sourceConfiguration.page_name %} {% elseif sourceConfiguration.type == 'photobooth' %} {% set sourceType = 'Borne Photo' %} {% set sourceName = sourceConfiguration.folder_id %} {% else %} {% set sourceType = sourceConfiguration.type | capitalize %} {% endif %} {{ sourceType }} : {{ sourceName }} {% endif %} {% endfor %}

{% if event.oauthToken is not null and event.oauthTokenSecret is not null %} {% trans %}Lié à Twitter avec : {% endtrans %} {{ event.oauthPseudo }}  |  {% endif %} {% if event.instagramAccessToken is not null and event.instagramAccessTokenUser is not null %} {% trans %}Lié à Instagram avec : {% endtrans %} {{ event.instagramAccessTokenUser }}  |  {% endif %} Mémoire : {{ event | calc_event_size }}