diff --git a/doc/development/api/general.rst b/doc/development/api/general.rst index 952f957e01..51c618427d 100644 --- a/doc/development/api/general.rst +++ b/doc/development/api/general.rst @@ -26,7 +26,7 @@ Frontend -------- .. automodule:: pretix.presale.signals - :members: html_head, html_footer, footer_link, front_page_top, front_page_bottom, fee_calculation_for_cart, contact_form_fields, question_form_fields, checkout_confirm_messages, checkout_confirm_page_content, checkout_all_optional, html_page_header, sass_preamble, sass_postamble, render_seating_plan, checkout_flow_steps, position_info, item_description + :members: html_head, html_footer, footer_link, front_page_top, front_page_bottom, front_page_bottom_widget, fee_calculation_for_cart, contact_form_fields, question_form_fields, checkout_confirm_messages, checkout_confirm_page_content, checkout_all_optional, html_page_header, sass_preamble, sass_postamble, render_seating_plan, checkout_flow_steps, position_info, item_description .. automodule:: pretix.presale.signals diff --git a/src/pretix/presale/signals.py b/src/pretix/presale/signals.py index 08a37838a3..278d2cf7e0 100644 --- a/src/pretix/presale/signals.py +++ b/src/pretix/presale/signals.py @@ -246,6 +246,17 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve receivers are expected to return HTML. """ +front_page_bottom_widget = EventPluginSignal( + providing_args=["request", "subevent"] +) +""" +This signal is sent out to display additional information on the frontpage below the list +of products if the front page is shown in the widget. + +As with all plugin signals, the ``sender`` keyword argument will contain the event. The +receivers are expected to return HTML. +""" + checkout_all_optional = EventPluginSignal( providing_args=['request'] ) diff --git a/src/pretix/presale/templates/pretixpresale/event/index.html b/src/pretix/presale/templates/pretixpresale/event/index.html index 60e4b2cd4d..e83159660a 100644 --- a/src/pretix/presale/templates/pretixpresale/event/index.html +++ b/src/pretix/presale/templates/pretixpresale/event/index.html @@ -290,5 +290,7 @@
+ {% else %} + {% eventsignal event "pretix.presale.signals.front_page_bottom_widget" subevent=subevent request=request %} {% endif %} {% endblock %}