{% extends "orga/settings/base.html" %} {% load compress %} {% load event_tags %} {% load i18n %} {% load static %} {% block extra_title %}{% translate "Widget generation" %} :: {% endblock extra_title %} {% block stylesheets %} {% compress css %} {% endcompress %} {% endblock stylesheets %} {% block scripts %} {% compress js %} {% endcompress %} {% endblock scripts %} {% block settings_content %}
{% blocktranslate trimmed %} The pretalx schedule widget is a way to embed your schedule into your event website. This way, your attendees can see your schedule without leaving your website, and you can style the schedule to fit right in with your website. {% endblocktranslate %}
{% blocktranslate trimmed %} Using this form, you can generate code to copy and paste to your website source. {% endblocktranslate %}
{{ extra_form }}
{% blocktranslate trimmed %}
To embed the widget into your website, copy the following code to the <head>
section of your website:
{% endblocktranslate %}
<script type="text/javascript" src="{{ request.event.urls.schedule_widget_script.full }}"></script>
{% blocktranslate trimmed %} Then, copy the following code to the place of your website where you want the widget to show up: {% endblocktranslate %}
<pretalx-schedule event-url="{{ request.event.urls.base.full }}" locale="LOCALE" format="FORMAT" style="--pretalx-clr-primary: {{ request.event.visible_primary_color }}"FILTER_DAYS></pretalx-schedule> <noscript> <div class="pretalx-widget"> <div class="pretalx-widget-info-message"> JavaScript is disabled in your browser. To access our schedule without JavaScript, please <a target="_blank" href="{{ request.event.urls.schedule.full }}">click here</a>. </div> </div> </noscript>
{% blocktranslate trimmed with link="https://docs.pretalx.org/user/event/widget.html" %} Please look at our documentation for more information. {% endblocktranslate %}
{% blocktranslate trimmed %} This is roughly what your widget will look like if you choose the grid format: {% endblocktranslate %}