Skip to content

Commit

Permalink
MAJ Flux 3.3 + compatibilité SPIP 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
psychoz971 committed Feb 1, 2023
1 parent a5df73a commit 53ba130
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 5 deletions.
4 changes: 2 additions & 2 deletions comarquage_fonctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ function filtre_type_categorie_dist($categorie) {
break;

case 'entreprises':
$parametres_xml['XMLURL'] = "http://lecomarquage.service-public.fr/vdd/3.0/pro/xml/";
$parametres_xml['XMLURL'] = "http://lecomarquage.service-public.fr/vdd/3.3/pro/xml/";
$parametres_xml['CATEGORIE'] = "pro";
break;

default:
$parametres_xml['XMLURL'] = "http://lecomarquage.service-public.fr/vdd/3.0/part/xml/";
$parametres_xml['XMLURL'] = "http://lecomarquage.service-public.fr/vdd/3.3/part/xml/";
$parametres_xml['CATEGORIE'] = "part";
break;
}
Expand Down
6 changes: 3 additions & 3 deletions paquet.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<paquet
prefix="comarquage"
categorie="divers"
version="1.1.0"
version="1.1.1"
etat="stable"
compatibilite="[3.0.0;4.0.*]"
compatibilite="[3.0.0;4.1.*]"
logo="prive/themes/spip/images/picto-comarquage-service-public.png"
documentation="https://contrib.spip.net/?article4858"
developpement="https://github.com/ipeos-and-co/spip_comarquagev3/"
Expand All @@ -15,4 +15,4 @@
<auteur>Morgan Lejuez</auteur>
<credit lien="http://www.ipeos.com">IPEOS I-Solutions</credit>
<licence lien="http://www.gnu.org/licenses/gpl-3.0.html">GPLv3</licence>
</paquet>
</paquet>
1 change: 1 addition & 0 deletions xml_templates/balises/0.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/5.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/6.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/7.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/8.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
1 change: 1 addition & 0 deletions xml_templates/balises/9.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[(#REM) Balise non utilisé - BUG apparu en v4.1 - Rechercher l'utilite de cette balise]
26 changes: 26 additions & 0 deletions xml_templates/menu/itemmenu.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[(#REM)
Variables:
data : Contenu a parser
-->]

<BOUCLE_menu_item(DATA){source tableau, #ENV{data}}>
<div class="d-flex">
<div class="float-start me-2 flex-shrink-0">
<a href="[(#SELF|parametre_url{xml,#VALEUR{attributes/id}})]">
[(#CHEMIN{images/[(#VALEUR{attributes/id}|media_local)]}|balise_img{[(#VALEUR{children/titre/0/text})]}|image_reduire{50,50})]
</a>
</div>
<div class="flex-grow-1">
<h4>[<a href="[(#SELF|parametre_url{xml,#VALEUR{attributes/id}})]">(#VALEUR{children/titre/0/text})</a>]</h4>
<ul class="list-inline">#SET{limite,4}
<BOUCLE_soustheme(DATA){source tableau, #VALEUR{children/itemmenu}}>
<BOUCLE_dossier(DATA){source tableau, #VALEUR{children/itemmenu}}{0, #GET{limite}}>
<li class="list-inline-item">[(#SET{limite,#GET{limite}|moins{1}})]
<a href="[(#SELF|parametre_url{xml, #VALEUR{attributes/id}})]">[(#VALEUR{children/titre/0/text}|couper{40,...})]</a></li>
</BOUCLE_dossier>
</BOUCLE_soustheme>
</ul>
</div>
</div>
<hr />
</BOUCLE_menu_item>

0 comments on commit 53ba130

Please sign in to comment.