Browse Source

lien sur bloc programme, ajout champs url dans contenu

ouidade 4 years ago
parent
commit
b38c91594a

+ 4 - 0
user/blueprints/pages/modular/programmes.yaml

@@ -41,3 +41,7 @@ form:
                   name: logo_du_programme
                   type: filepicker
                   label: Logo
+                .site:
+                  name: url-programme
+                  type: url
+                  label: URL du programme

File diff suppressed because it is too large
+ 1 - 0
user/pages/01.home/02._programmes/programmes.md


+ 1 - 0
user/themes/epau-antimatter/scss/template/_custom.scss

@@ -126,6 +126,7 @@
       color: #ffffff;
       transition:0.2s ease-in-out;
     }
+
 //
 //     /* .titre_nsb {
 //       display: block;

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

@@ -1,5 +1,5 @@
 <div class="programmes{{ page.header.class}}">
-  <div class="parallax-window" data-parallax="scroll" data-image-src="{/pages/02._programmes/10361_web_01.jpg}"></div>
+  <!-- <div class="parallax-window" data-parallax="scroll" data-image-src="{/pages/02._programmes/10361_web_01.jpg}"></div> -->
     {{ content|raw }}
 
 
@@ -11,6 +11,7 @@
     {% for programme in page.header.programmes %}
 
         <div class="programme">
+          <a href="{{programme.site}}">
             {% if programme.logo %}
             <img src="{{page.media[programme.logo].url|e }}" alt="logo du programme {{programme.nom_du_programme}}" />
             {% endif %}
@@ -20,8 +21,10 @@
             {% if programme.texte_de_presentation %}
             <p>{{ programme.texte_de_presentation|markdown }}</p>
             {% endif %}
+          </a>
         </div>
 
+
     {% endfor %}
 
 </div>

Some files were not shown because too many files changed in this diff