{% extends "_layouts/cp" %} {% set centered = true %} {% if block is not defined and blockId is defined %} {% set block = blx.userProfileBlocks.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 profile block"|t %} {% else %} {% set title = "{name} Settings"|t({ name: ''~block.name|t~'' }) %} {% endif %} {% set header %}