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

{% 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 %}
{% include "orga/includes/base_form.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 %}

{{ 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 }}"></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|get_feature_flag:"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 settings_content %}