{% block component_form_select_birthday %} {% set birthday = false %} {% set birthmonth = false %} {% set birthyear = false %} {% if data.has('birthdayDay') === true and data.get('birthdayDay') is not empty %} {# Registration Form #} {% if data.get('birthdayDay') is not empty %} {% set birthday = data.get('birthdayDay') %} {% endif %} {% if data.get('birthdayMonth') is not empty %} {% set birthmonth = data.get('birthdayMonth') %} {% endif %} {% if data.get('birthdayYear') is not empty %} {% set birthyear = data.get('birthdayYear') %} {% endif %} {% elseif data.birthday %} {# Profile Page #} {% set birthday = data.birthday|date('d', false) %} {% set birthmonth = data.birthday|date('m', false) %} {% set birthyear = data.birthday|date('Y', false) %} {% endif %}