Unverified Commit 5ba3d676 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Hide header on demand

parent 85e74a57
......@@ -22,7 +22,7 @@
<body class="gogo-load-css {% if pageName is defined %}{{ pageName }}{% endif %} base-layout"> {# use this class to load the css vendors encapsulated inside gogocarto.css #}
{# Header #}
{{ render(controller('App\\Controller\\CoreController::headerAction', {'title': navTitle|default(''), 'iframe': app.request.get('iframe') } ))}}
{{ render(controller('App\\Controller\\CoreController::headerAction', {'title': navTitle|default(''), 'iframe': app.request.get('iframe'), 'noheader': app.request.get('noheader') } ))}}
{% block body %}
{% endblock %}
......
......@@ -5,7 +5,8 @@
{% include 'modals/loginModal.html.twig' %}
{% endblock %}
<header>
{% set noheader = app.request.get('noheader') %}
<header {% if noheader %}class="hidden" style="display:none"{% endif %}>
<nav>
<div id="menu" class="row">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment