{% extends "orga/settings/base.html" %} {% load bootstrap4 %} {% load compress %} {% load i18n %} {% load static %} {% block settings_content %} {% compress js %} {% endcompress %}
{% csrf_token %}

{% translate "Widget settings" %}

{% blocktranslate trimmed %} You can configure a pretalx schedule widget to show your event schedule on your homepage, instead of using this page. If you want to disable the schedule on here entirely, please activate the setting below. {% endblocktranslate %}
{% bootstrap_form form layout='event' %} {% include "orga/includes/submit_row.html" %}

{% translate "Widget generation" %}

{% 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 %}

{% bootstrap_form extra_form layout='event' %}

{% 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.get_primary_color }}"></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 %}

{% if request.event.is_public and request.event.feature_flags.show_schedule and request.event.current_schedule and not request.event.custom_domain %}

{% translate "Widget preview" %}

{% blocktranslate trimmed %} This is roughly what your widget will look like if you choose the grid format: {% endblocktranslate %}

{% endif %} {% endblock %}