{% if g.settings['footer_code'] %} {{ g.settings['footer_code']|safe }} {% endif %} {% if session['user_id'] %} {% endif %}