Prechádzať zdrojové kódy

header désactivé & titre

ouidade 3 rokov pred
rodič
commit
b87e461d98

+ 57 - 0
user/themes/epau-antimatter/templates/modular-event.html.twig

@@ -0,0 +1,57 @@
+{% extends 'partials/base.html.twig' %}
+
+{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
+{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
+
+{% block javascripts %}
+    {% if show_onpage_menu %}
+        {% do assets.add('theme://js/singlePageNav.min.js') %}
+
+    {% endif %}
+    {{ parent() }}
+{% endblock %}
+
+
+{% block bottom %}
+    {{ parent() }}
+    {% if show_onpage_menu %}
+        <script>
+        // singlePageNav initialization & configuration
+        $('#navbar').singlePageNav({
+            offset: $('#header').outerHeight(),
+            filter: ':not(.external)',
+            updateHash: true,
+            currentClass: 'active'
+        });
+        </script>
+    {% endif %}
+{% endblock %} 
+
+{# {% block header_navigation %}
+    {% if show_onpage_menu %}
+        <ul class="navigation">
+        {% for module in page.collection() %}
+            {% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
+            <li class="{{ current_module }}"><a href="#{{ _self.pageLinkName(module.menu) }}">{{ module.menu }}</a></li>
+        {% endfor %}
+        {% for mitem in site.menu %}
+            <li>
+                <a {% if mitem.class %}class="{{ mitem.class }}"{% endif %} href="{{ mitem.url }}">
+                    {% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
+                    {{ mitem.text }}
+                </a>
+            </li>
+        {% endfor %}
+        </ul>
+    {% else %}
+        {{  parent() }}
+    {% endif %}
+{% endblock %} #}
+
+{% block content %}
+    {{ page.content|raw }}
+    {% for module in page.collection() %}
+        <div id="{{ _self.pageLinkName(module.menu) }}"></div>
+        {{ module.content|raw }}
+    {% endfor %}
+{% endblock %}

+ 1 - 1
user/themes/epau-antimatter/templates/modular/intervenants.html.twig

@@ -3,7 +3,7 @@
 
   <div class="titre_nsb">
 
-    <h1>Intervenants</h1>
+    <h1>Allocution ministérielle</h1>
 
     <div class="souligne toright" >
       <svg width="100%" height="0.5rem">

+ 3 - 3
user/themes/epau-antimatter/templates/modular/titre-event.html.twig

@@ -11,9 +11,9 @@
   </div>     -->
 
   <div class="titre_bsn">
-    <div class="logo-event">
-    {# <img id="explog" src="Republique-francaise-logo-sans-text.svg" alt="logo Expérimentation Logement"> #}
-    </div>
+    {# <div class="logo-event">
+    <img id="explog" src="Republique-francaise-logo-sans-text.svg" alt="logo Expérimentation Logement">
+    </div> #}
 
     <div class="text-titre-event"> 
       <h1>Lancement du programme </br>Expérimentation Logement</h1>