{# Pseudo metabox container. Allows us to render metaboxes properly on pages that originally don't support it. Usage: Add your metaboxes via add_meta_box(). You can use different Twig templates for each of them. Then, simply include this template: {% include '@toolset/pseudo_metabox_container.twig' %} @since m2m #} {# Everything that's not toolset-prefixed absolutely must be here, otherwise the styling breaks completely. #}
{# Note that postbox containers must be numbered from the right side to the left, otherwise the styling is not applied properly. It was a couple of fun hours figuring this out. #}
{% block postboxesDefault %} {{ do_meta_boxes() }} {% endblock %}
{% block postboxesSide %} {{ do_meta_boxes( 'side' ) }} {% endblock %}