Explorar el Código

Merge pull request #1777 from nicolas-bastien/patch-1

Add blocks before and after main navigation
Thomas hace 11 años
padre
commit
1d31e97c8b
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      Resources/views/standard_layout.html.twig

+ 6 - 1
Resources/views/standard_layout.html.twig

@@ -94,7 +94,7 @@ file that was distributed with this source code.
             {% endif%}
         </title>
     </head>
-    <body class="sonata-bc {% if _side_menu is empty %}sonata-ba-no-side-menu{% endif %}">
+    <body {% block body_attributes %}class="sonata-bc {% if _side_menu is empty %}sonata-ba-no-side-menu{% endif %}"{% endblock %}>
         {# initialize block value #}
 
         <div class="navbar navbar-fixed-top">
@@ -116,6 +116,8 @@ file that was distributed with this source code.
                             </a>
                         {% endblock %}
 
+                        {% block sonata_nav_menu_before %}{% endblock %}
+
                         {% block sonata_nav_menu %}
                             <div class="nav-collapse">
                                 <ul class="nav">
@@ -168,6 +170,9 @@ file that was distributed with this source code.
 
                             </div>
                         {% endblock %}
+                        
+                        {% block sonata_nav_menu_after %}{% endblock %}
+                        
                     {% endif %}
                 </div>
             </div>