Sfoglia il codice sorgente

Add blocks before and after main navigation

This commit adds two blocks before and after main navigation.

I will use this to add :

- locale switcher for admin
- store switcher
.....
Nicolas Bastien 11 anni fa
parent
commit
f720aaf0a6
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      Resources/views/standard_layout.html.twig

+ 5 - 0
Resources/views/standard_layout.html.twig

@@ -116,6 +116,8 @@ file that was distributed with this source code.
                             </a>
                             </a>
                         {% endblock %}
                         {% endblock %}
 
 
+                        {% block sonata_nav_menu_before %}{% endblock %}
+
                         {% block sonata_nav_menu %}
                         {% block sonata_nav_menu %}
                             <div class="nav-collapse">
                             <div class="nav-collapse">
                                 <ul class="nav">
                                 <ul class="nav">
@@ -168,6 +170,9 @@ file that was distributed with this source code.
 
 
                             </div>
                             </div>
                         {% endblock %}
                         {% endblock %}
+                        
+                        {% block sonata_nav_menu_after %}{% endblock %}
+                        
                     {% endif %}
                     {% endif %}
                 </div>
                 </div>
             </div>
             </div>