{% if post_form is defined %}
{{ form_start(post_form) }}
{{ form_label(post_form.to) }}
{{ form_widget(post_form.to) }}
{{ form_row(post_form.visibility) }}
{{ form_widget(post_form.attachments) }}
{{ form_row(post_form.post) }}
{{ form_end(post_form) }}
{% endif %}
{% set current_path = app.request.get('_route') %}
{% if right_panel_vars is defined %}
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
{{ block | raw }}
{% endfor %}
{% else %}
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
{{ block | raw }}
{% endfor %}
{% endif %}