Tessier před 4 roky
rodič
revize
6674b8054d

+ 117 - 0
web/app/themes/la_mine/src/assets/images/picto_transition.svg

@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="50"
+   height="50"
+   viewBox="0 0 13.229167 13.229167"
+   version="1.1"
+   id="svg8"
+   inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
+   sodipodi:docname="picto_transition.svg">
+  <defs
+     id="defs2">
+    <clipPath
+       clipPathUnits="userSpaceOnUse"
+       id="clipPath40102-2">
+      <path
+         d="M 0,0 H 23.5 V -23 H 0 Z"
+         id="path40100-8"
+         inkscape:connector-curvature="0"
+         style="clip-rule:evenodd" />
+    </clipPath>
+    <clipPath
+       clipPathUnits="userSpaceOnUse"
+       id="clipPath40112-4">
+      <path
+         d="M 0,-546.76986 H 1190.5512 V 546.76986 H 0 Z"
+         id="path40110-7"
+         inkscape:connector-curvature="0" />
+    </clipPath>
+    <clipPath
+       clipPathUnits="userSpaceOnUse"
+       id="clipPath39622-6">
+      <path
+         d="M 0,-23.41984 H 1190.5512 V 23.41984 H 0 Z"
+         id="path39620-9"
+         inkscape:connector-curvature="0" />
+    </clipPath>
+    <clipPath
+       clipPathUnits="userSpaceOnUse"
+       id="clipPath39626-2">
+      <path
+         d="M 0,0 H 19 V -19.4103 H 0 Z"
+         id="path39624-2"
+         inkscape:connector-curvature="0"
+         style="clip-rule:evenodd" />
+    </clipPath>
+    <clipPath
+       clipPathUnits="userSpaceOnUse"
+       id="clipPath39630-4">
+      <path
+         d="M 0,-89.861 H 1190.5512 V 89.861 H 0 Z"
+         id="path39628-7"
+         inkscape:connector-curvature="0" />
+    </clipPath>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="8"
+     inkscape:cx="43.732134"
+     inkscape:cy="23.211849"
+     inkscape:document-units="mm"
+     inkscape:current-layer="g878"
+     showgrid="false"
+     units="px"
+     inkscape:window-width="1816"
+     inkscape:window-height="924"
+     inkscape:window-x="2063"
+     inkscape:window-y="96"
+     inkscape:window-maximized="0"
+     inkscape:document-rotation="0" />
+  <metadata
+     id="metadata5">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Calque 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-283.77079)">
+    <circle
+       style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.19367;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke"
+       id="path815"
+       cx="6.6145835"
+       cy="290.38538"
+       r="6.5" />
+    <g
+       id="g40108-9"
+       transform="matrix(0.02910455,0,0,-0.02849496,28.470053,297.77305)" />
+    <g
+       id="g878"
+       transform="matrix(0.26458333,0,0,0.26458333,-109.72655,214.01403)">
+      <path
+         style="fill:#ffffff;fill-opacity:1;stroke-width:0.538474"
+         d="m 438.7722,269.23517 c -3.177,0 -5.81594,2.5851 -5.81594,5.81595 v 0.2156 h 4.68535 v 1.72269 h -4.68535 v 1.34619 h 4.68535 v 1.72375 h -4.68535 v 1.34619 h 4.68535 v 1.7227 h -4.68535 v 1.34618 h 4.68535 v 1.7227 h -4.68535 v 6.62366 c 0,3.177 2.58509,5.81595 5.81594,5.81595 h 1.88466 c 3.177,0 5.81594,-2.5851 5.81594,-5.81595 v -6.62366 h -4.36248 v -1.7227 h 4.36248 v -1.34618 h -4.36248 v -1.7227 h 4.36248 v -1.34619 h -4.36248 v -1.72375 h 4.36248 v -1.34619 h -4.36248 v -1.72269 h 4.36248 v -0.2156 c 0,-3.177 -2.58509,-5.81595 -5.81594,-5.81595 z m -8.88483,13.62384 v 11.09235 c 0,4.25396 3.50029,7.75425 7.75424,7.75425 h 0.69939 v 4.36143 h -4.30779 v 1.99299 h 11.36264 v -1.99299 h -4.36248 v -4.36143 h 0.75408 c 4.25395,0 7.75424,-3.44645 7.75424,-7.75425 v -10.9304 h -2.04663 v 10.9304 c 0,3.12316 -2.53061,5.70762 -5.70761,5.70762 h -4.14584 c -3.12315,0 -5.70761,-2.53062 -5.70761,-5.70762 v -11.09235 z"
+         id="path2" />
+    </g>
+  </g>
+</svg>

+ 27 - 16
web/app/themes/la_mine/templates/single.twig

@@ -60,29 +60,40 @@
 					 {{ post.meta('description') }}
 				</div>
 				<footer>
+			
+				{% if group.piece_jointe %}				
+					<div class="pj">
+						<h3>Pièce-jointe</h3>
+						<div>
+							<a download target="_blank" href="{{group.piece_jointe}}">Télécharger la pièce jointe</a>
+						</div>
+					</div>
+				{% endif %}
+
 				<div class="tarif">
 					<h3>Tarif</h3>
 					<p>{{group.type_tarif}}</p>
 				</div>
 
 				<div class="inscription">
-					{% if group.inscription %}
-					<h3>Inscription</h3>
-						{% for Items in group.inscription %}
-							{% for detail in Items %}
-								{% if detail.acf_fc_layout == 'en_libre_acces' %}
-									<p class="texte_details">{{ detail.texte }}</p>
-								{% endif %}
-								{% if detail.acf_fc_layout == 'lien_dinscription' %}
-									<div class="Btn group_link">
-										<a target="_blank" href="{{detail.url}}">{{detail.texte}}</a>
-									</div>
-								{% endif %}
-							{% endfor %}
-								{% for detail in Items.type_dinscription %}
-								{% endfor %}
+			
+				{% if group.inscription %}
+				<h3>Inscription</h3>
+					{% for Items in group.inscription %}
+						{% for detail in Items %}
+							{% if detail.acf_fc_layout == 'en_libre_acces' %}
+								<p class="texte_details">{{ detail.texte }}</p>
+							{% endif %}
+							{% if detail.acf_fc_layout == 'lien_dinscription' %}
+								<div class="Btn group_link">
+									<a target="_blank" href="{{detail.url}}">{{detail.texte}}</a>
+								</div>
+							{% endif %}
 						{% endfor %}
-						{% endif %}
+							{% for detail in Items.type_dinscription %}
+							{% endfor %}
+					{% endfor %}
+					{% endif %}
 				</div>
 				<div class="Btn voir_event">
 						<a href="{{post.meta('voir_evenement_facebook').lien_facebook}}">{{post.meta('voir_evenement_facebook').texte}}</a>