{% extends (blx.hasPackage('Users') ? "users/_edit/layout" : "_layouts/cp") %} {% if blx.hasPackage('Users') %} {% set selectedTab = 'account' %} {% else %} {% set title = "My Account"|t %} {% endif %} {% import "_includes/forms" as forms %} {% if account is not defined and blx.request.segment(1) == 'myaccount' %} {% set account = user %} {% endif %} {% if blx.hasPackage('Users') %} {% if account is not defined and userId is defined %} {% set account = blx.users.status('*').id(userId).first %} {% if not account %}{% exit 404 %}{% endif %} {% endif %} {% endif %} {% set isNewAccount = (account is not defined or not account.id) %} {% set content %}
{% endset %}