{% extends "_layouts/cp" %} {% set centered = true %} {% if block is not defined and blockId is defined %} {% set block = blx.globals.getBlockById(blockId) %} {% if not block %}{% exit 404 %}{% endif %} {% endif %} {% set isNewBlock = block is not defined or not block.id %} {% if isNewBlock %} {% set title = "Create a new global block"|t %} {% else %} {% set title = "{name} Settings"|t({ name: ''~block.name|t~'' }) %} {% endif %} {% set header %}

{{ title|raw }}

{% endset %} {% set content %}
{% if not isNewBlock %}{% endif %} {% include "_includes/blocksettings" with { block: (block is defined ? block : null) } only %}
{% endset %}