{% set pathInfo = path(
    app.request.attributes.get('_route'),
    app.request.attributes.get('_route_params'))
%}

{# Profile block #}
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
    {{ render(controller('ChamiloThemeBundle:Sidebar:userPanel', {'pathInfo': pathInfo })) }}
    {#{{ render(controller('ChamiloThemeBundle:Sidebar:searchForm')) }}#}
    {{ render(controller('ChamiloThemeBundle:Sidebar:socialPanel', {'pathInfo': pathInfo })) }}
{% endif %}