Add signal pretix.presale.signals.front_page_bottom_widget

This commit is contained in:
Raphael Michel
2019-12-11 17:04:59 +01:00
parent 99f3db04a9
commit 3cb7482bae
3 changed files with 14 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ Frontend
-------- --------
.. automodule:: pretix.presale.signals .. 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 .. automodule:: pretix.presale.signals

View File

@@ -246,6 +246,17 @@ As with all plugin signals, the ``sender`` keyword argument will contain the eve
receivers are expected to return HTML. 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( checkout_all_optional = EventPluginSignal(
providing_args=['request'] providing_args=['request']
) )

View File

@@ -290,5 +290,7 @@
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
</section> </section>
{% else %}
{% eventsignal event "pretix.presale.signals.front_page_bottom_widget" subevent=subevent request=request %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}